From c37933932da31f2cde9844135b7c1adf2e9462eb Mon Sep 17 00:00:00 2001 From: "Dr. Dystopia" Date: Sun, 20 Apr 2025 18:02:28 +0200 Subject: [PATCH] DolphinNoGUI: Make variables constant --- Source/Core/DolphinNoGUI/MainNoGUI.cpp | 3 ++- Source/Core/DolphinNoGUI/Platform.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinNoGUI/MainNoGUI.cpp b/Source/Core/DolphinNoGUI/MainNoGUI.cpp index 23f349086e..8598803afd 100644 --- a/Source/Core/DolphinNoGUI/MainNoGUI.cpp +++ b/Source/Core/DolphinNoGUI/MainNoGUI.cpp @@ -201,7 +201,8 @@ int main(int argc, char* argv[]) { Core::DeclareAsHostThread(); - auto parser = CommandLineParse::CreateParser(CommandLineParse::ParserOptions::OmitGUIOptions); + const auto parser = + CommandLineParse::CreateParser(CommandLineParse::ParserOptions::OmitGUIOptions); parser->add_option("-p", "--platform") .action("store") .help("Window platform to use [%choices]") diff --git a/Source/Core/DolphinNoGUI/Platform.cpp b/Source/Core/DolphinNoGUI/Platform.cpp index b542f50e8c..fabb8bb924 100644 --- a/Source/Core/DolphinNoGUI/Platform.cpp +++ b/Source/Core/DolphinNoGUI/Platform.cpp @@ -23,7 +23,7 @@ void Platform::UpdateRunningFlag() { if (m_shutdown_requested.TestAndClear()) { - auto& system = Core::System::GetInstance(); + const auto& system = Core::System::GetInstance(); const auto ios = system.GetIOS(); const auto stm = ios ? ios->GetDeviceByName("/dev/stm/eventhook") : nullptr; if (!m_tried_graceful_shutdown.IsSet() && stm &&