[Scummvm-git-logs] scummvm master -> b7e4dfe669c021c64087aeb64e1ca6d7bc75d2d6
SupSuper
supsuper at gmail.com
Sat Mar 6 00:44:25 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
b7e4dfe669 AGS: Fix plugin name typo blocking Whispers of a Machine
Commit: b7e4dfe669c021c64087aeb64e1ca6d7bc75d2d6
https://github.com/scummvm/scummvm/commit/b7e4dfe669c021c64087aeb64e1ca6d7bc75d2d6
Author: SupSuper (supsuper at gmail.com)
Date: 2021-03-06T00:44:14Z
Commit Message:
AGS: Fix plugin name typo blocking Whispers of a Machine
WadjetUtil, not WadgetUtil
Changed paths:
engines/ags/plugins/ags_wadjet_util/ags_wadjet_util.cpp
engines/ags/plugins/ags_wadjet_util/ags_wadjet_util.h
engines/ags/plugins/plugin_base.cpp
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 f68036a020..1ed5716e33 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 a94915b334..b4746e059e 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 97d7ef089e..4a3235fe4a 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;
}
More information about the Scummvm-git-logs
mailing list