Skip to content

Commit 9e46313

Browse files
committed
add some console output to Y2K38Patcher
1 parent daf0b50 commit 9e46313

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

patches/Y2K38Patcher/Y2K38Patcher/Y2K38Patcher.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,12 @@ int main() {
6767
ZeroMemory(&si, sizeof(si));
6868
ZeroMemory(&pi, sizeof(pi));
6969
BOOL success = CreateProcess(NULL, loaderExePath, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi);
70+
printf("When you done playing your DEV7 game, set the Date back to the one you currently have.\n");
7071

7172
if (!success) {
7273
std::cerr << "Failed to execute Loader7.exe." << std::endl;
74+
std::cout << "Press Enter to exit\n" << std::endl;
75+
std::cin.get();
7376
return 1;
7477
}
7578

@@ -85,6 +88,8 @@ int main() {
8588

8689
if (!success) {
8790
std::cerr << "Failed to execute Dev7VM.EXE." << std::endl;
91+
std::cout << "Press Enter to exit\n" << std::endl;
92+
std::cin.get();
8893
return 1;
8994
}
9095

@@ -95,10 +100,11 @@ int main() {
95100
SetSystemTime(&originalSysTime);
96101

97102
// Close process and thread handles
103+
printf("When you done playing your DEV7 game, set the Date back to the one you currently have.\n");
104+
printf("Pres Enter to exit Y2K38Patcher\n");
105+
std::cin.get();
98106
CloseHandle(pi.hProcess);
99107
CloseHandle(pi.hThread);
100108

101-
std::cout << "Y2K38Patcher" << std::endl;
102-
103109
return 0;
104110
}

0 commit comments

Comments
 (0)