hello everybody my name is config and welcome to one early return at geode

This commit is contained in:
ConfiG 2024-06-25 03:34:11 +03:00 committed by GitHub
parent c2e9eb9718
commit 14efdd86d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -86,17 +86,18 @@ void tryShowForwardCompat() {
#ifdef GEODE_IS_WINDOWS
bool safeModeCheck() {
// yes this is quite funny
if (GetAsyncKeyState(VK_SHIFT) != 0) {
auto choice = MessageBoxA(
NULL,
"(This has been triggered because you were holding SHIFT)\n"
"Do you want to activate Geode Safe Mode? This disables loading any mods.",
"Attention",
MB_YESNO | MB_ICONINFORMATION
);
return choice == IDYES;
if (GetAsyncKeyState(VK_SHIFT) == 0) {
return false;
}
return false;
auto choice = MessageBoxA(
NULL,
"(This has been triggered because you were holding SHIFT)\n"
"Do you want to activate Geode Safe Mode? This disables loading any mods.",
"Attention",
MB_YESNO | MB_ICONINFORMATION
);
return choice == IDYES;
}
#else !defined(GEODE_IS_MACOS)
// macos is defined in load.mm, this is for android