Skip to content

Commit

Permalink
alter checkLuaScript to loadLuaScript
Browse files Browse the repository at this point in the history
  • Loading branch information
youneuoy committed Dec 12, 2024
1 parent 90e274f commit cca3570
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions M2TWEOP Code/M2TWEOP library/luaPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ int initLuaPlugin(bool isReload)
exit(0);
}
plugData::data.luaAll.addLegacy();
plugData::data.luaAll.checkLuaScript(luaFile);
plugData::data.luaAll.loadLuaScript(luaFile);
plugData::data.luaAll.onPluginLoadF();

if (isReload) {
Expand All @@ -68,7 +68,7 @@ int initLuaPlugin(bool isReload)
return 1;
}

void luaPlugin::checkLuaScript(std::string& luaFilePath)
void luaPlugin::loadLuaScript(std::string& luaFilePath)
{
UINT defaultFlags = MB_ABORTRETRYIGNORE | MB_ICONEXCLAMATION; // Default type with exclamation icon
// This checks the syntax of the script, but does not execute it
Expand Down
2 changes: 1 addition & 1 deletion M2TWEOP Code/M2TWEOP library/luaPlugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class luaPlugin

//lua functions and events controllers
void onPluginLoadF();
void checkLuaScript(std::string& luaFilePath);
void loadLuaScript(std::string& luaFilePath);
sol::state luaState;
void fillHashMaps();
void fillHashMapsNonCampaign();
Expand Down

0 comments on commit cca3570

Please sign in to comment.