summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinNoGUI/MainNoGUI.cpp
diff options
context:
space:
mode:
authorDr. Dystopia <jonis9898@hotmail.com>2025-04-20 18:13:14 +0200
committerDr. Dystopia <jonis9898@hotmail.com>2025-06-04 21:49:15 +0200
commit2ae928ca79ed99ce18bcf87841dbf167e611f5e8 (patch)
tree6d24c4d1c9d32fb3b2f52662be3db02a0f195ceb /Source/Core/DolphinNoGUI/MainNoGUI.cpp
parentf04f659710bf50cd71e0516d67601d9019ed6400 (diff)
DolphinNoGUI: Make parameters constant
Diffstat (limited to 'Source/Core/DolphinNoGUI/MainNoGUI.cpp')
-rw-r--r--Source/Core/DolphinNoGUI/MainNoGUI.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/DolphinNoGUI/MainNoGUI.cpp b/Source/Core/DolphinNoGUI/MainNoGUI.cpp
index 8598803afd..81051adb78 100644
--- a/Source/Core/DolphinNoGUI/MainNoGUI.cpp
+++ b/Source/Core/DolphinNoGUI/MainNoGUI.cpp
@@ -71,7 +71,7 @@ bool Host_UIBlocksControllerState()
}
static Common::Event s_update_main_frame_event;
-void Host_Message(HostMessageID id)
+void Host_Message(const HostMessageID id)
{
if (id == HostMessageID::WMUserStop)
s_platform->Stop();
@@ -197,7 +197,7 @@ static std::unique_ptr<Platform> GetPlatform(const optparse::Values& options)
#define main app_main
#endif
-int main(int argc, char* argv[])
+int main(const int argc, char* argv[])
{
Core::DeclareAsHostThread();
@@ -298,7 +298,7 @@ int main(int argc, char* argv[])
return 1;
}
- Core::AddOnStateChangedCallback([](Core::State state) {
+ Core::AddOnStateChangedCallback([](const Core::State state) {
if (state == Core::State::Uninitialized)
s_platform->Stop();
});