From 563fdb5d28bfa13da959a692a8f1bccac10f4e99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 2 Feb 2026 12:54:37 +0100 Subject: [PATCH] Fix bug with fullscreen in SDL (and do a drive-by fix in LaunchUrl) --- SDL/SDLMain.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/SDL/SDLMain.cpp b/SDL/SDLMain.cpp index 2af8dd4d16..8c0e420bb1 100644 --- a/SDL/SDLMain.cpp +++ b/SDL/SDLMain.cpp @@ -430,7 +430,6 @@ bool System_MakeRequest(SystemRequestType type, int requestId, const std::string #endif case SystemRequestType::APPLY_FULLSCREEN_STATE: { - g_Config.bFullScreen = (param3 != 0); std::lock_guard guard(g_mutexWindow); g_windowState.update = true; g_windowState.applyFullScreenNextFrame = true; @@ -549,6 +548,13 @@ void System_LaunchUrl(LaunchUrlType urlType, std::string_view url) { #endif break; } + case LaunchUrlType::LOCAL_FILE: +#if defined(__APPLE__) + // If it's a folder and we're on a mac, open it in finder. + OSXShowInFinder(std::string(url).c_str()); +#endif + // INFO_LOG(Log::System, "LaunchUrlType::LOCAL_FILE not implemented on this platform"); + break; } }