mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
DolphinNoGUI: Make variables constant
This commit is contained in:
@ -201,7 +201,8 @@ int main(int argc, char* argv[])
|
|||||||
{
|
{
|
||||||
Core::DeclareAsHostThread();
|
Core::DeclareAsHostThread();
|
||||||
|
|
||||||
auto parser = CommandLineParse::CreateParser(CommandLineParse::ParserOptions::OmitGUIOptions);
|
const auto parser =
|
||||||
|
CommandLineParse::CreateParser(CommandLineParse::ParserOptions::OmitGUIOptions);
|
||||||
parser->add_option("-p", "--platform")
|
parser->add_option("-p", "--platform")
|
||||||
.action("store")
|
.action("store")
|
||||||
.help("Window platform to use [%choices]")
|
.help("Window platform to use [%choices]")
|
||||||
|
@ -23,7 +23,7 @@ void Platform::UpdateRunningFlag()
|
|||||||
{
|
{
|
||||||
if (m_shutdown_requested.TestAndClear())
|
if (m_shutdown_requested.TestAndClear())
|
||||||
{
|
{
|
||||||
auto& system = Core::System::GetInstance();
|
const auto& system = Core::System::GetInstance();
|
||||||
const auto ios = system.GetIOS();
|
const auto ios = system.GetIOS();
|
||||||
const auto stm = ios ? ios->GetDeviceByName("/dev/stm/eventhook") : nullptr;
|
const auto stm = ios ? ios->GetDeviceByName("/dev/stm/eventhook") : nullptr;
|
||||||
if (!m_tried_graceful_shutdown.IsSet() && stm &&
|
if (!m_tried_graceful_shutdown.IsSet() && stm &&
|
||||||
|
Reference in New Issue
Block a user