diff options
author | tycho <tycho@localhost> | 2015-05-14 16:47:51 +0200 |
---|---|---|
committer | tycho <work.tycho@gmail.com> | 2015-05-16 11:46:51 +0200 |
commit | b9efa02c80b54e044326771bbffdddf206daef2e (patch) | |
tree | ab615f16b3c46b107f1df0e180c835300dbd19b7 /src/Bindings/PluginManager.h | |
parent | Added TCLAP (diff) | |
download | cuberite-b9efa02c80b54e044326771bbffdddf206daef2e.tar cuberite-b9efa02c80b54e044326771bbffdddf206daef2e.tar.gz cuberite-b9efa02c80b54e044326771bbffdddf206daef2e.tar.bz2 cuberite-b9efa02c80b54e044326771bbffdddf206daef2e.tar.lz cuberite-b9efa02c80b54e044326771bbffdddf206daef2e.tar.xz cuberite-b9efa02c80b54e044326771bbffdddf206daef2e.tar.zst cuberite-b9efa02c80b54e044326771bbffdddf206daef2e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Bindings/PluginManager.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/Bindings/PluginManager.h b/src/Bindings/PluginManager.h index d8c886b62..faabf3aec 100644 --- a/src/Bindings/PluginManager.h +++ b/src/Bindings/PluginManager.h @@ -24,6 +24,7 @@ class cPlayer; class cPlugin; class cProjectileEntity; class cWorld; +class cSettingsRepositoryInterface; struct TakeDamageInfo; typedef SharedPtr<cPlugin> cPluginPtr; @@ -364,20 +365,20 @@ private: /** Reloads all plugins, defaulting to settings.ini for settings location */ void ReloadPluginsNow(void); - /** Reloads all plugins with a cIniFile object expected to be initialised to settings.ini */ - void ReloadPluginsNow(cIniFile & a_SettingsIni); + /** Reloads all plugins with a settings repo expected to be initialised to settings.ini */ + void ReloadPluginsNow(cSettingsRepositoryInterface & a_Settings); /** Unloads all plugins */ void UnloadPluginsNow(void); - /** Handles writing default plugins if 'Plugins' key not found using a cIniFile object expected to be intialised to settings.ini */ - void InsertDefaultPlugins(cIniFile & a_SettingsIni); + /** Handles writing default plugins if 'Plugins' key not found using a settings repo expected to be intialised to settings.ini */ + void InsertDefaultPlugins(cSettingsRepositoryInterface & a_Settings); /** Tries to match a_Command to the internal table of commands, if a match is found, the corresponding plugin is called. Returns crExecuted if the command is executed. */ CommandResult HandleCommand(cPlayer & a_Player, const AString & a_Command, bool a_ShouldCheckPermissions); /** Returns the folders that are specified in the settings ini to load plugins from. */ - AStringVector GetFoldersToLoad(cIniFile & a_SettingsIni); + AStringVector GetFoldersToLoad(cSettingsRepositoryInterface & a_Settings); } ; // tolua_export |