From b2414e4195ae1fa1b2330c79d49474d0e4b4e15e Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Tue, 12 Apr 2011 23:08:54 -0700 Subject: [PATCH] (TEMP) Read server info from a server.ini in the game root --- Sources/Plasma/Apps/plClient/winmain.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Sources/Plasma/Apps/plClient/winmain.cpp b/Sources/Plasma/Apps/plClient/winmain.cpp index 8a1cada9..bbf6ab4f 100644 --- a/Sources/Plasma/Apps/plClient/winmain.cpp +++ b/Sources/Plasma/Apps/plClient/winmain.cpp @@ -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);