#include "modules/modules.h"
#include "modules/builtin.h"
-module_bank_t *p_module_bank = NULL;
+static module_bank_t *p_module_bank = NULL;
/*****************************************************************************
* Local prototypes
config_AutoSaveConfigFile( p_this );
#ifdef HAVE_DYNAMIC_PLUGINS
- if( p_bank->b_cache ) CacheSave( p_this );
+ if( p_bank->b_cache ) CacheSave( p_this, p_module_bank );
while( p_bank->i_loaded_cache-- )
{
if( p_bank->pp_loaded_cache[p_bank->i_loaded_cache] )
p_module_bank->b_cache = true;
if( p_module_bank->b_cache || b_cache_delete )
- CacheLoad( p_this, b_cache_delete );
+ CacheLoad( p_this, p_module_bank, b_cache_delete );
AllocateAllPlugins( p_this );
#endif
* Check our plugins cache first then load plugin if needed
*/
p_cache_entry =
- CacheFind( psz_file, i_file_time, i_file_size );
+ CacheFind( p_module_bank, psz_file, i_file_time, i_file_size );
if( !p_cache_entry )
{