Skip to content

Commit a737f61

Browse files
committed
Remove Rebuild
1 parent eb95a6a commit a737f61

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

ErScripts/main.cpp

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,38 +5,38 @@
55
#include "ErScripts.h"
66
#include "Overlay.h"
77

8-
#define APP_VERSION "1.1.8"
8+
#define APP_VERSION "1.1.9"
99

1010
int main(int argc, char* argv[]) {
1111
Logger::EnableANSIColors();
1212

1313
if (!IsDebuggerPresent()) {
1414
/* 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+
//}
2222

2323
// Check if program already running
2424
CreateMutexA(0, FALSE, "Local\\erscripts");
2525
if (GetLastError() == ERROR_ALREADY_EXISTS) {
26-
Rebuild::cleanupTempFiles();
26+
//Rebuild::cleanupTempFiles();
2727
Updater::cleanupTempFiles();
2828
MessageBoxA(NULL, "ErScripts is already running!", 0, MB_OK);
2929
return -1;
3030
}
3131

3232
// 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+
//}
4040

4141
/* Auto updater */
4242
Updater updater(APP_VERSION, "emp0ry", "cs2-ErScripts", "ErScripts");

0 commit comments

Comments
 (0)