Allow TSExtension to load under the new modloader - add PlayGUI.project

This commit is contained in:
Robert MacGregor 2017-08-07 14:23:25 -04:00
parent da08659d72
commit 3862a2f61d
2 changed files with 83 additions and 37 deletions

View file

@ -253,15 +253,17 @@ __declspec(dllexport) void __fastcall newAIMoveListGenerator(void* This, void* n
return;
}
__declspec(dllexport) void ModInitialize(void)
{
__declspec(dllexport) void ModInitialize(void)
{
Con::addMethodB(NULL,"enableNewAI",&conEnableNewAI,"Enables the new Move Generation code for the AI", 1,4);
Con::addMethodB(NULL,"disableNewAI",&conDisableNewAI,"Disables the new Move Generation code for the AI", 1,4);
}
__declspec(dllexport) void ServerProcess(unsigned int deltaTime)
{
Con::addMethodB(NULL,"disableNewAI",&conDisableNewAI,"Disables the new Move Generation code for the AI", 1,4);
Py_SetProgramName("AIInterpreter");
}
__declspec(dllexport) void ServerProcess(unsigned int deltaTime)
{
}