aboutsummaryrefslogtreecommitdiff
path: root/primedev
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2024-11-20 22:52:21 +0100
committerGeckoEidechse <gecko.eidechse+git@pm.me>2024-11-20 22:52:21 +0100
commit09292793c7e8e39b96e8eca6a010b7d9e59ee9fd (patch)
tree1334f21009a434efa8601e61c482e96275fc961f /primedev
parent51d651b33902ad407c06b52e406a81191149ef06 (diff)
downloadNorthstarLauncher-09292793c7e8e39b96e8eca6a010b7d9e59ee9fd.tar.gz
NorthstarLauncher-09292793c7e8e39b96e8eca6a010b7d9e59ee9fd.zip
Diffstat (limited to 'primedev')
-rw-r--r--primedev/mods/modsavefiles.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/primedev/mods/modsavefiles.cpp b/primedev/mods/modsavefiles.cpp
index 2fffb6c1..d73b867c 100644
--- a/primedev/mods/modsavefiles.cpp
+++ b/primedev/mods/modsavefiles.cpp
@@ -79,6 +79,7 @@ template <ScriptContext context> 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 <ScriptContext context> 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