Skip to content

Commit 29e14e7

Browse files
committed
very slightly more informative error messages in loader
1 parent 0335de9 commit 29e14e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TobExLoader/src/TobExLoader.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int n
2727
if (FindFirstFileA(szFileName, &FileData) != INVALID_HANDLE_VALUE) {
2828
if (!checkFileVersion(szFileName, "2, 5, 0, 2")) return -1;
2929
} else {
30-
displayErrorMessage("WinMain(): FindFirstFileA() failed.", GetLastError());
30+
displayErrorMessage("FindFirstFileA(): Could not find game executable.", GetLastError());
3131
return -1;
3232
}
3333

@@ -49,7 +49,7 @@ int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int n
4949
CloseHandle(pi.hProcess);
5050
if (!dwExitCode) return -1;
5151
} else {
52-
displayErrorMessage("WinMain(): CreateProcessA() failed.", GetLastError());
52+
displayErrorMessage("CreateProcessA(): Unable to start game.", GetLastError());
5353
}
5454

5555
return 0;

0 commit comments

Comments
 (0)