Previously we were just saving the loaded modules which resulted in zero modules being saved to disk.
- size_t offset = p_module_bank->i_loaded_cache;
+ size_t offset = p_module_bank->i_cache;
if( b_reset )
CacheDelete( p_this, path );
else
if( b_reset )
CacheDelete( p_this, path );
else
/* Don't go deeper than 5 subdirectories */
AllocatePluginDir( p_this, p_bank, path, 5 );
/* Don't go deeper than 5 subdirectories */
AllocatePluginDir( p_this, p_bank, path, 5 );
- CacheSave( p_this, path, p_module_bank->pp_loaded_cache + offset,
- p_module_bank->i_loaded_cache - offset );
+ CacheSave( p_this, path, p_module_bank->pp_cache + offset,
+ p_module_bank->i_cache - offset );