aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--primedev/mods/modsavefiles.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/primedev/mods/modsavefiles.cpp b/primedev/mods/modsavefiles.cpp
index 2ed0b0d3..5f1317b9 100644
--- a/primedev/mods/modsavefiles.cpp
+++ b/primedev/mods/modsavefiles.cpp
@@ -75,7 +75,8 @@ template <ScriptContext context> void SaveFileManager::SaveFileAsync(fs::path fi
[mutex, file, contents]()
{
// Check if has extension and return early if not
- if (!file.has_extension()) {
+ if (!file.has_extension())
+ {
spdlog::error("SAVE FAILED!");
spdlog::error("No file extension specified");
}
@@ -85,7 +86,8 @@ template <ScriptContext context> void SaveFileManager::SaveFileAsync(fs::path fi
// Check if file extension is whitelisted
std::string extension = file.extension().string();
- if (whitelist.find(extension) == whitelist.end()) {
+ if (whitelist.find(extension) == whitelist.end())
+ {
spdlog::error("SAVE FAILED!");
spdlog::error("Disallowed file extension: {}", extension);
}