Advertisement
Ember

Main

Apr 1st, 2014
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.64 KB | None | 0 0
  1. // Application runtime ----------------------------------------------------------------
  2. int WINAPI WinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPSTR pScmdline, _In_ int iCmdshow)
  3. {
  4.     Game* Application;
  5.     bool result;
  6.  
  7.     // Create the system object
  8.     Application = new Game;
  9.     if(!Application) { return 0; }
  10.  
  11.     // Initialize and run the system object
  12.     result = Application->Initialize();
  13.     if(result) { Application->Run(); }
  14.  
  15.     // Shutdown and release the system object
  16.     Application->Shutdown();
  17.     delete Application;
  18.     Application = 0;
  19.  
  20.     _CrtDumpMemoryLeaks();
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement