From 09292793c7e8e39b96e8eca6a010b7d9e59ee9fd Mon Sep 17 00:00:00 2001 From: GeckoEidechse Date: Wed, 20 Nov 2024 22:52:21 +0100 Subject: [PATCH] fix: Add missing return --- primedev/mods/modsavefiles.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/primedev/mods/modsavefiles.cpp b/primedev/mods/modsavefiles.cpp index 2fffb6c1a..d73b867cd 100644 --- a/primedev/mods/modsavefiles.cpp +++ b/primedev/mods/modsavefiles.cpp @@ -79,6 +79,7 @@ template void SaveFileManager::SaveFileAsync(fs::path fi { spdlog::error("A mod failed to save a file via Safe I/O due to the following error:"); spdlog::error("No file extension specified"); + return; } // If there's a file extension missing here that you need, feel free to make a PR adding it @@ -90,6 +91,7 @@ template void SaveFileManager::SaveFileAsync(fs::path fi { spdlog::error("A mod failed to save a file via Safe I/O due to the following error:"); spdlog::error("Disallowed file extension: {}", extension); + return; } try