Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

Multi mod support

Go down  Message [Page 1 of 1]

1Multi mod support Empty Multi mod support Tue Dec 07, 2010 7:22 am

ZiPp3R



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...
};

Back to top  Message [Page 1 of 1]

Similar topics

-

» Cheats Talk & Support rules

Permissions in this forum:
You cannot reply to topics in this forum