2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 10:37:41 -04:00

(TEMP) Read server info from a server.ini in the game root

This commit is contained in:
2011-04-12 23:08:54 -07:00
parent 7eac0222e6
commit b2414e4195

View File

@ -1558,6 +1558,7 @@ LONG WINAPI plCustomUnhandledExceptionFilter( struct _EXCEPTION_POINTERS *Except
return EXCEPTION_EXECUTE_HANDLER;
}
#include "pfConsole/pfConsoleEngine.h"
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nCmdShow)
{
// Set global handle
@ -1677,6 +1678,12 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nC
return PARABLE_NORMAL_EXIT;
}
/////////<<<<<<<<
pfConsoleEngine *tempConsole = TRACKED_NEW pfConsoleEngine();
tempConsole->ExecuteFile("server.ini");
delete tempConsole;
/////////<<<<<<<<
NetCliAuthAutoReconnectEnable(false);
NetCommSetReadIniAccountInfo(!doIntroDialogs);