mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
AGS: Fix plugin name typo blocking Whispers of a Machine
WadjetUtil, not WadgetUtil
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user