Advertisement
Ember

cpp

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