forked from dolphin-emu/dolphin
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:
@@ -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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user