mirror of
https://github.com/geode-sdk/geode.git
synced 2025-04-16 06:55:04 -04:00
hello everybody my name is config and welcome to one early return at geode
This commit is contained in:
parent
c2e9eb9718
commit
14efdd86d4
1 changed files with 11 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue