From 48964f5470bfec03ead278bf27be0a614d216278 Mon Sep 17 00:00:00 2001 From: AllMeatball <181806857+AllMeatball@users.noreply.github.com> Date: Mon, 12 May 2025 17:25:01 -0500 Subject: [PATCH] isleapp: Don't create new config if manually set --- ISLE/isleapp.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ISLE/isleapp.cpp b/ISLE/isleapp.cpp index 1c8fae33..8350cab6 100644 --- a/ISLE/isleapp.cpp +++ b/ISLE/isleapp.cpp @@ -548,6 +548,11 @@ bool IsleApp::LoadConfig() // [library:config] // Load sane defaults if dictionary failed to load if (!dict) { + if (m_iniPath) { + SDL_Log("Invalid config path '%s'", m_iniPath); + return false; + } + SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, "Loading sane defaults"); FILE* iniFP = fopen(iniConfig, "wb");