mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-31 18:32:43 +00:00
Merge pull request #2307 from lioncash/crash
Core: Don't display on-screen messages via DisplayMessage until emulation has begun
This commit is contained in:
commit
b0db4f53cc
@ -140,6 +140,9 @@ std::string StopMessage(bool bMainThread, std::string Message)
|
|||||||
|
|
||||||
void DisplayMessage(const std::string& message, int time_in_ms)
|
void DisplayMessage(const std::string& message, int time_in_ms)
|
||||||
{
|
{
|
||||||
|
if (!IsRunning())
|
||||||
|
return;
|
||||||
|
|
||||||
// Actually displaying non-ASCII could cause things to go pear-shaped
|
// Actually displaying non-ASCII could cause things to go pear-shaped
|
||||||
for (const char& c : message)
|
for (const char& c : message)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user