|
5 | 5 | #include "ErScripts.h" |
6 | 6 | #include "Overlay.h" |
7 | 7 |
|
8 | | -#define APP_VERSION "1.1.8" |
| 8 | +#define APP_VERSION "1.1.9" |
9 | 9 |
|
10 | 10 | int main(int argc, char* argv[]) { |
11 | 11 | Logger::EnableANSIColors(); |
12 | 12 |
|
13 | 13 | if (!IsDebuggerPresent()) { |
14 | 14 | /* Rebuild */ |
15 | | - bool should_rebuild = true; |
16 | | - for (int i = 1; i < argc; ++i) { |
17 | | - if (std::string(argv[i]) == "--run") { |
18 | | - should_rebuild = false; |
19 | | - break; |
20 | | - } |
21 | | - } |
| 15 | + //bool should_rebuild = true; |
| 16 | + //for (int i = 1; i < argc; ++i) { |
| 17 | + // if (std::string(argv[i]) == "--run") { |
| 18 | + // should_rebuild = false; |
| 19 | + // break; |
| 20 | + // } |
| 21 | + //} |
22 | 22 |
|
23 | 23 | // Check if program already running |
24 | 24 | CreateMutexA(0, FALSE, "Local\\erscripts"); |
25 | 25 | if (GetLastError() == ERROR_ALREADY_EXISTS) { |
26 | | - Rebuild::cleanupTempFiles(); |
| 26 | + //Rebuild::cleanupTempFiles(); |
27 | 27 | Updater::cleanupTempFiles(); |
28 | 28 | MessageBoxA(NULL, "ErScripts is already running!", 0, MB_OK); |
29 | 29 | return -1; |
30 | 30 | } |
31 | 31 |
|
32 | 32 | // Rebuild or unpack |
33 | | - Rebuild rebuilder; |
34 | | - if (!rebuilder.rebuildAndRelaunch(should_rebuild)) { |
35 | | - std::cout << "[*] Rebuild or unpack failed. Continuing with current binary.\n"; |
36 | | - } |
37 | | - if (should_rebuild) { |
38 | | - return 0; // Exit after relaunch |
39 | | - } |
| 33 | + //Rebuild rebuilder; |
| 34 | + //if (!rebuilder.rebuildAndRelaunch(should_rebuild)) { |
| 35 | + // std::cout << "[*] Rebuild or unpack failed. Continuing with current binary.\n"; |
| 36 | + //} |
| 37 | + //if (should_rebuild) { |
| 38 | + // return 0; // Exit after relaunch |
| 39 | + //} |
40 | 40 |
|
41 | 41 | /* Auto updater */ |
42 | 42 | Updater updater(APP_VERSION, "emp0ry", "cs2-ErScripts", "ErScripts"); |
|
0 commit comments