1
0
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:
Michał W. Urbańczyk
2011-06-20 11:41:04 +00:00
parent e7bbfb615c
commit 580c4e4c9b
24 changed files with 445 additions and 244 deletions

View 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();
}