aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2024-03-22 14:54:17 +0100
committerGeckoEidechse <gecko.eidechse+git@pm.me>2024-03-22 14:54:17 +0100
commit0ff334c7e0cfa4b66404831e15ef846ccbf47144 (patch)
tree36a42cad9e76e9d8f8a3d9417a91b534fd471c3a
parent7a5253b10dba95e99a465f5a8a6c3ea5c77e6526 (diff)
downloadNorthstarLauncher-0ff334c7e0cfa4b66404831e15ef846ccbf47144.tar.gz
NorthstarLauncher-0ff334c7e0cfa4b66404831e15ef846ccbf47144.zip
style: Fix formatting
-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);
}