Advertisement
04348

gw.cpp

Aug 26th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.74 KB | None | 0 0
  1. // Gw2RsU.cpp : définit le point d'entrée pour l'application console.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "Gw2RsU.h"
  6.  
  7.  
  8. int _tmain(int argc, _TCHAR* argv[])
  9. {
  10.     SetConsoleTitle(L"Gw2 ReShade Enhancer");
  11.     int nTry = 0, maxTry = 5;
  12.     ClearLog("Starting Gw2 ReShade Enhancer");
  13.     SetWindowSize(20, 2);
  14.     std::cout << "Gw2 ReShade Enhancer" << std::endl;
  15.     SetWindowSize(20, 1);
  16.     int MapID = 0;
  17.     WriteMapID(MapID, getTOD());
  18.     unlockReShade();
  19.  
  20.     HANDLE hMapObject = InitMumbleLink();
  21.     log("Starting MapID & Time writing.");
  22.     reTry:
  23.     while (CheckGw2(L"Guild Wars 2")) {
  24.         nTry = 0;
  25.         MapID = checkMapID(hMapObject, MapID);
  26.         Sleep(1000);
  27.     }
  28.     if (nTry < maxTry) {
  29.         nTry++;
  30.         Sleep(1000);
  31.         goto reTry;
  32.     }
  33.     log("Closing...");
  34.     return 0;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement