mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 22:59:19 +02:00
Add missing Discord_Shutdown();
This commit is contained in:
@@ -218,7 +218,7 @@ void eu07_application::DiscordRPCService()
|
|||||||
discord_rpc.largeImageText = "MaSzyna";
|
discord_rpc.largeImageText = "MaSzyna";
|
||||||
|
|
||||||
// run loop
|
// run loop
|
||||||
while (!glfwWindowShouldClose(m_windows.front()) && !m_modestack.empty())
|
while (!glfwWindowShouldClose(m_windows.front()) && !m_modestack.empty() && !Global.applicationQuitOrder)
|
||||||
{
|
{
|
||||||
auto currentMode = m_modestack.top();
|
auto currentMode = m_modestack.top();
|
||||||
if (currentMode == mode::launcher)
|
if (currentMode == mode::launcher)
|
||||||
@@ -263,8 +263,6 @@ void eu07_application::DiscordRPCService()
|
|||||||
if (currentMode != mode::driver)
|
if (currentMode != mode::driver)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (Global.applicationQuitOrder)
|
|
||||||
break;
|
|
||||||
// Discord RPC updater
|
// Discord RPC updater
|
||||||
if (simulation::is_ready)
|
if (simulation::is_ready)
|
||||||
{
|
{
|
||||||
@@ -299,6 +297,8 @@ void eu07_application::DiscordRPCService()
|
|||||||
}
|
}
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(5000)); // update RPC every 5 secs
|
std::this_thread::sleep_for(std::chrono::milliseconds(5000)); // update RPC every 5 secs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Discord_Shutdown();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user