Skip to content

Commit

Permalink
RMG-Core: add static keyword to local functions in Plugins.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie241 committed Sep 3, 2024
1 parent 0a7c109 commit 53c0c33
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Source/RMG-Core/Plugins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ static char l_PluginContext[(int)CorePluginType::Input][20];
// Local Functions
//

m64p::PluginApi* get_plugin(CorePluginType type)
static m64p::PluginApi* get_plugin(CorePluginType type)
{
if (type == CorePluginType::Invalid ||
(int)type < 0 || (int)type > 4)
Expand All @@ -49,7 +49,7 @@ m64p::PluginApi* get_plugin(CorePluginType type)
return &l_Plugins[(int)type - 1];
}

CorePluginType get_plugin_type(m64p::PluginApi* plugin)
static CorePluginType get_plugin_type(m64p::PluginApi* plugin)
{
m64p_error ret;
m64p_plugin_type m64p_type = M64PLUGIN_NULL;
Expand All @@ -68,7 +68,7 @@ CorePluginType get_plugin_type(m64p::PluginApi* plugin)
return (CorePluginType)m64p_type;
}

std::string get_plugin_name(m64p::PluginApi* plugin, std::string filename)
static std::string get_plugin_name(m64p::PluginApi* plugin, std::string filename)
{
m64p_error ret;
const char* name = nullptr;
Expand All @@ -83,7 +83,7 @@ std::string get_plugin_name(m64p::PluginApi* plugin, std::string filename)
return std::string(name);
}

std::string get_plugin_type_name(CorePluginType type)
static std::string get_plugin_type_name(CorePluginType type)
{
std::string name;

Expand Down Expand Up @@ -112,7 +112,7 @@ std::string get_plugin_type_name(CorePluginType type)
return name + " Plugin";
}

std::string get_plugin_context_name(CorePluginType type)
static std::string get_plugin_context_name(CorePluginType type)
{
std::string name;

Expand All @@ -138,7 +138,7 @@ std::string get_plugin_context_name(CorePluginType type)
return name;
}

std::string get_plugin_path(CorePluginType type, std::string settingsValue)
static std::string get_plugin_path(CorePluginType type, std::string settingsValue)
{
std::string pluginPath;
std::string path;
Expand Down Expand Up @@ -186,7 +186,7 @@ std::string get_plugin_path(CorePluginType type, std::string settingsValue)
return path;
}

bool apply_plugin_settings(std::string pluginSettings[4])
static bool apply_plugin_settings(std::string pluginSettings[4])
{
std::string error;
std::string settingValue;
Expand Down Expand Up @@ -303,7 +303,7 @@ bool apply_plugin_settings(std::string pluginSettings[4])
return true;
}

bool open_plugin_config(CorePluginType type, bool romConfig)
static bool open_plugin_config(CorePluginType type, bool romConfig)
{
std::string error;
m64p_error ret;
Expand Down

0 comments on commit 53c0c33

Please sign in to comment.