From b7e4dfe669c021c64087aeb64e1ca6d7bc75d2d6 Mon Sep 17 00:00:00 2001 From: SupSuper Date: Sat, 6 Mar 2021 00:44:14 +0000 Subject: [PATCH] AGS: Fix plugin name typo blocking Whispers of a Machine WadjetUtil, not WadgetUtil --- .../ags_wadjet_util/ags_wadjet_util.cpp | 34 +++++++++---------- .../plugins/ags_wadjet_util/ags_wadjet_util.h | 12 +++---- engines/ags/plugins/plugin_base.cpp | 4 +-- 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/engines/ags/plugins/ags_wadjet_util/ags_wadjet_util.cpp b/engines/ags/plugins/ags_wadjet_util/ags_wadjet_util.cpp index f68036a0206..1ed5716e33e 100644 --- a/engines/ags/plugins/ags_wadjet_util/ags_wadjet_util.cpp +++ b/engines/ags/plugins/ags_wadjet_util/ags_wadjet_util.cpp @@ -25,20 +25,20 @@ namespace AGS3 { namespace Plugins { -namespace AGSWadgetUtil { +namespace AGSWadjetUtil { -IAGSEngine *AGSWadgetUtil::_engine; +IAGSEngine *AGSWadjetUtil::_engine; -AGSWadgetUtil::AGSWadgetUtil() : PluginBase() { +AGSWadjetUtil::AGSWadjetUtil() : PluginBase() { DLL_METHOD(AGS_GetPluginName); DLL_METHOD(AGS_EngineStartup); } -const char *AGSWadgetUtil::AGS_GetPluginName() { - return "AGSWadgetUtil"; +const char *AGSWadjetUtil::AGS_GetPluginName() { + return "AGSWadjetUtil"; } -void AGSWadgetUtil::AGS_EngineStartup(IAGSEngine *engine) { +void AGSWadjetUtil::AGS_EngineStartup(IAGSEngine *engine) { _engine = engine; // Register functions @@ -54,40 +54,40 @@ void AGSWadgetUtil::AGS_EngineStartup(IAGSEngine *engine) { SCRIPT_METHOD(MobileResetAchievements); } -void AGSWadgetUtil::IsOnPhone(ScriptMethodParams ¶ms) { +void AGSWadjetUtil::IsOnPhone(ScriptMethodParams ¶ms) { params._result = false; } -void AGSWadgetUtil::FakeKeypress(ScriptMethodParams ¶ms) { +void AGSWadjetUtil::FakeKeypress(ScriptMethodParams ¶ms) { } -void AGSWadgetUtil::IosSetAchievementValue(ScriptMethodParams ¶ms) { +void AGSWadjetUtil::IosSetAchievementValue(ScriptMethodParams ¶ms) { } -void AGSWadgetUtil::IosGetAchievementValue(ScriptMethodParams ¶ms) { +void AGSWadjetUtil::IosGetAchievementValue(ScriptMethodParams ¶ms) { params._result = -1; } -void AGSWadgetUtil::IosShowAchievements(ScriptMethodParams ¶ms) { +void AGSWadjetUtil::IosShowAchievements(ScriptMethodParams ¶ms) { } -void AGSWadgetUtil::IosResetAchievements(ScriptMethodParams ¶ms) { +void AGSWadjetUtil::IosResetAchievements(ScriptMethodParams ¶ms) { } -void AGSWadgetUtil::MobileGetAchievement(ScriptMethodParams ¶ms) { +void AGSWadjetUtil::MobileGetAchievement(ScriptMethodParams ¶ms) { params._result = NumberPtr(); } -void AGSWadgetUtil::MobileSetAchievement(ScriptMethodParams ¶ms) { +void AGSWadjetUtil::MobileSetAchievement(ScriptMethodParams ¶ms) { params._result = 0; } -void AGSWadgetUtil::MobileShowAchievements(ScriptMethodParams ¶ms) { +void AGSWadjetUtil::MobileShowAchievements(ScriptMethodParams ¶ms) { } -void AGSWadgetUtil::MobileResetAchievements(ScriptMethodParams ¶ms) { +void AGSWadjetUtil::MobileResetAchievements(ScriptMethodParams ¶ms) { } -} // namespace AGSWadgetUtil +} // namespace AGSWadjetUtil } // namespace Plugins } // namespace AGS3 diff --git a/engines/ags/plugins/ags_wadjet_util/ags_wadjet_util.h b/engines/ags/plugins/ags_wadjet_util/ags_wadjet_util.h index a94915b3343..b4746e059e9 100644 --- a/engines/ags/plugins/ags_wadjet_util/ags_wadjet_util.h +++ b/engines/ags/plugins/ags_wadjet_util/ags_wadjet_util.h @@ -20,16 +20,16 @@ * */ -#ifndef AGS_PLUGINS_AGS_WADGET_UTIL_AGS_WADGET_UTIL_H -#define AGS_PLUGINS_AGS_WADGET_UTIL_AGS_WADGET_UTIL_H +#ifndef AGS_PLUGINS_AGS_WADJET_UTIL_AGS_WADJET_UTIL_H +#define AGS_PLUGINS_AGS_WADJET_UTIL_AGS_WADJET_UTIL_H #include "ags/plugins/plugin_base.h" namespace AGS3 { namespace Plugins { -namespace AGSWadgetUtil { +namespace AGSWadjetUtil { -class AGSWadgetUtil : public PluginBase { +class AGSWadjetUtil : public PluginBase { private: static IAGSEngine *_engine; private: @@ -49,10 +49,10 @@ private: static void MobileResetAchievements(ScriptMethodParams ¶ms); public: - AGSWadgetUtil(); + AGSWadjetUtil(); }; -} // namespace AGSWadgetUtil +} // namespace AGSWadjetUtil } // namespace Plugins } // namespace AGS3 diff --git a/engines/ags/plugins/plugin_base.cpp b/engines/ags/plugins/plugin_base.cpp index 97d7ef089e9..4a3235fe4a7 100644 --- a/engines/ags/plugins/plugin_base.cpp +++ b/engines/ags/plugins/plugin_base.cpp @@ -92,8 +92,8 @@ void *pluginOpen(const char *filename) { fname.equalsIgnoreCase("agsteam-disjoint")) return new AGSGalaxySteam::AGSSteam(); - if (fname.equalsIgnoreCase("AGSWadgetUtil")) - return new AGSWadgetUtil::AGSWadgetUtil(); + if (fname.equalsIgnoreCase("AGSWadjetUtil")) + return new AGSWadjetUtil::AGSWadjetUtil(); return nullptr; }