D:/Zythum/DinoKod/Client/WinMain.cpp

00001 #include <conio.h>
00002 #include "Common/Console.h"
00003 #include "Common/Types.h"
00004 #include "Client/GameClient.h"
00005 
00006 #include <crtdbg.h>
00007 
00008 //---------------------------------------------------------------------------------------------------------------------
00009 int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow )
00010 {
00011 /*      _CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | 
00012                                         _CRTDBG_CHECK_ALWAYS_DF | 
00013                                         _CRTDBG_CHECK_CRT_DF |
00014                                         _CRTDBG_DELAY_FREE_MEM_DF |
00015                                         _CRTDBG_LEAK_CHECK_DF );
00016 */
00017         KGameClient             *pGameClient = new KGameClient( hInstance );
00018         
00019         if( !pGameClient->Init() )
00020         {
00021 //              g_Console << "InitGame FAILED, Press a key to exit..." << KENDL;
00022 //              getch();
00023                 Deletep( pGameClient );
00024                 return -1;
00025         }
00026 
00027         pGameClient->Run();
00028         pGameClient->End();
00029 
00030         Deletep( pGameClient );
00031 
00032 //      _CrtDumpMemoryLeaks();
00033 
00034         return 0;
00035 }

Generated on Sun Mar 25 20:02:10 2007 for Zythum Project by  doxygen 1.5.1-p1