38BOOL APIENTRY
DllMain(HMODULE hModule, DWORD ul_reason_for_call,
41 switch (ul_reason_for_call)
43 case DLL_PROCESS_ATTACH:
53 FILE *file = fopen(
"sfsf.log",
"w");
56 log_info(
"Spellforce Version Accepted; Starting SFSF");
59 OutputDebugStringA(
"[SFSF] |======================| Injection Complete |======================|");
64 case DLL_PROCESS_DETACH:
void initialize_beta_hooks()
void log_info(const char *message)
bool __stdcall CheckSFVersion(SF_Version sf_version)
check version of the game that was hooked into
bool Init(HMODULE lib_module)
required for everything to work... why?
void initialize_framework()
Initializes the Spellforce Spell Framework (SFSF).
BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
Entry point for the DLL.