Multi Mod support:
- Code:
bool Detect_my_version_of_game()
{
myProcess = GetModuleHandleA("game.exe");
if(Progress)
{
hx CRC32 = CRC32FromFile("game.exe");
static int bv = sizeof(modchecks) / sizeof(modcheck_t);
for(int x=0; x < bv; x++)
{
if(CRC32 == modchecks[x].CRC32)
{
myversion = &modchecks[x];
ex_AddLog(Game version detected: %s", ex.wolfet.version);
return TRUE;
}
}
}
ex_AddLog("This game is not supported!");
return FALSE;
}
const static modcheck_t modchecks[] =
{
{
"2.55", // Version game
0x000000, // offset
},
{ "2.60",
0x000000,
},
etc...
};