mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-03 00:46:55 +02:00
ERM is now a separate project, linking to ./Scripting/ERM.dll and consisting all ERM* files from ./lib.
Little changes around handling ERM. New class in lib: CFileUtility, so the code for scanning files with given extension is not duplicated.
This commit is contained in:
22
Scripting/ERM/ERMScriptModule.cpp
Normal file
22
Scripting/ERM/ERMScriptModule.cpp
Normal file
@ -0,0 +1,22 @@
|
||||
#include "ERMScriptModule.h"
|
||||
#include "ERMInterpreter.h"
|
||||
|
||||
IGameEventRealizer *acb;
|
||||
CPrivilagedInfoCallback *icb;
|
||||
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define strcpy_s(a, b, c) strncpy(a, c, b)
|
||||
#endif
|
||||
|
||||
const char *g_cszAiName = "(V)ERM interpreter";
|
||||
|
||||
extern "C" DLL_F_EXPORT void GetAiName(char* name)
|
||||
{
|
||||
strcpy_s(name, strlen(g_cszAiName) + 1, g_cszAiName);
|
||||
}
|
||||
|
||||
extern "C" DLL_F_EXPORT CScriptingModule* GetNewModule()
|
||||
{
|
||||
return new ERMInterpreter();
|
||||
}
|
Reference in New Issue
Block a user