[SNIPPET] Open launcher if user uses WarZ.exe to open the game

Results 1 to 2 of 2
  1. #1
    Your average Dutch guy Laenoar is offline
    MemberRank
    Apr 2013 Join Date
    The NetherlandsLocation
    384Posts

    [SNIPPET] Open launcher if user uses WarZ.exe to open the game

    This snippet is great for those people new to War Z/I:SS and accidentally open the wrong executable.

    In Eclipse Studio, Main.cpp, search for
    Code:
    if(strstr(__r3dCmdLine, "-WOUpdatedOk") == NULL && strstr(__r3dCmdLine, "-gna") == NULL)
    Make it look like this, but obviously edit the text and .exe
    Code:
    if(strstr(__r3dCmdLine, "-WOUpdatedOk") == NULL && strstr(__r3dCmdLine, "-gna") == NULL)    
        {
            MessageBox(NULL, "Please run the Days after Dead launcher next time. Press OK to open the launcher.", g_szApplicationName, MB_OK);
            ShellExecute(NULL, "open", "DaDLauncher.exe_0.1.exe", NULL, NULL, SW_SHOWDEFAULT);
            ExitProcess(0);
        }

    Last edited by Laenoar; 14-01-16 at 10:05 PM.


  2. #2
    Enthusiast darkwiings is offline
    MemberRank
    Jun 2014 Join Date
    BrasilLocation
    33Posts

    Re: [SNIPPET] Open launcher if user uses WarZ.exe to open the game

    Thank you so much!



Advertisement