fix safe mode dialog randomly appearing

This commit is contained in:
Cvolton 2024-11-10 20:17:44 +01:00
parent 76db1268bf
commit 038788bf57
No known key found for this signature in database

View file

@ -84,7 +84,7 @@ void tryShowForwardCompat() {
#ifdef GEODE_IS_WINDOWS
bool safeModeCheck() {
// yes this is quite funny
if (GetAsyncKeyState(VK_SHIFT) == 0) {
if (!(GetAsyncKeyState(VK_SHIFT) & (1 << 15))) {
return false;
}