aboutsummaryrefslogtreecommitdiff
path: root/primedev/mods/modmanager.cpp
diff options
context:
space:
mode:
authorJan <sentrycraft123@gmail.com>2024-06-16 17:57:52 +0200
committerGitHub <noreply@github.com>2024-06-16 17:57:52 +0200
commit75bb4143ced983be7d76f154fc0016d17fc92b65 (patch)
tree1124a9520664f69ae72f1cf5465ffa66b3db06d8 /primedev/mods/modmanager.cpp
parentf75aff142508796ba66cc43c3135cbb317c920db (diff)
downloadNorthstarLauncher-75bb4143ced983be7d76f154fc0016d17fc92b65.tar.gz
NorthstarLauncher-75bb4143ced983be7d76f154fc0016d17fc92b65.zip
Add default case for SquirrelContext switch (#716)v1.25.1-rc1v1.25.0-rc2v1.25.0
Add default case for SquirrelContext switch and logs errors so we can catch them if they do ever happen.
Diffstat (limited to 'primedev/mods/modmanager.cpp')
-rw-r--r--primedev/mods/modmanager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/primedev/mods/modmanager.cpp b/primedev/mods/modmanager.cpp
index 268a65a5..98d4cdc4 100644
--- a/primedev/mods/modmanager.cpp
+++ b/primedev/mods/modmanager.cpp
@@ -601,6 +601,8 @@ auto ModConCommandCallback(const CCommand& command)
case ScriptContext::UI:
ModConCommandCallback_Internal<ScriptContext::UI>(found->Function, command);
break;
+ default:
+ spdlog::error("ModConCommandCallback on invalid Context {}", found->Context);
};
}