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
Make it look like this, but obviously edit the text and .exeCode:if(strstr(__r3dCmdLine, "-WOUpdatedOk") == NULL && strstr(__r3dCmdLine, "-gna") == NULL)
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); }




Reply With Quote![[SNIPPET] Open launcher if user uses WarZ.exe to open the game](http://ragezone.com/hyper728.png)

