From 53c0c3310ae9367f0c8e92ec8db8f5998172e50e Mon Sep 17 00:00:00 2001 From: Rosalie Wanders Date: Tue, 3 Sep 2024 21:25:25 +0200 Subject: [PATCH] RMG-Core: add static keyword to local functions in Plugins.cpp --- Source/RMG-Core/Plugins.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Source/RMG-Core/Plugins.cpp b/Source/RMG-Core/Plugins.cpp index 3d225307..15afff33 100644 --- a/Source/RMG-Core/Plugins.cpp +++ b/Source/RMG-Core/Plugins.cpp @@ -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) @@ -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; @@ -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; @@ -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; @@ -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; @@ -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; @@ -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; @@ -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;