dailydose

Source/main.cpp

Jul 30th, 2016
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <Trainer.h>
  2.  
  3. int main(int argc, char* argv[])
  4. {
  5.     // Only One Instance of Application
  6.     if (Trainer::TrainerIsRun())
  7.     {
  8.         return 0;
  9.     }
  10.  
  11.     Trainer trainer;
  12.     if (!trainer.ChooseConfig())
  13.     {
  14.         return 1; // EXIT_FAILURE
  15.     }
  16.  
  17.     // Waiting for Start a GAME...
  18.     while (!trainer.GameIsRun())
  19.     {
  20.         Sleep(1000);
  21.     }
  22.  
  23.     trainer.Start();
  24.     return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment