From 7161069cfc4026a8354d44e4bf5745cb39d0603f Mon Sep 17 00:00:00 2001 From: Eric Warmenhoven Date: Thu, 2 Jan 2025 01:24:57 -0500 Subject: [PATCH] overlay: reinitializing was causing the wrong overlay to show (#17331) --- input/input_driver.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/input/input_driver.c b/input/input_driver.c index 740ef40d4d8..4566b7171d0 100644 --- a/input/input_driver.c +++ b/input/input_driver.c @@ -5280,6 +5280,9 @@ static const char *input_overlay_path(bool want_osk) /* if there's an override, use it */ if (retroarch_override_setting_is_set(RARCH_OVERRIDE_SETTING_OVERLAY_PRESET, NULL)) return settings->paths.path_overlay; + /* if there's no core, just return the default */ + if (string_is_empty(path_get(RARCH_PATH_CORE))) + return settings->paths.path_overlay; /* let's go hunting */ fill_pathname_expand_special(overlay_directory,