Skip to content

Commit

Permalink
RMG-Core: disable Core{Pause,Resume}Emulation() during netplay
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie241 committed Dec 29, 2024
1 parent 4514b53 commit 6375a30
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Source/RMG-Core/Emulation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,11 @@ bool CorePauseEmulation(void)
return false;
}

if (CoreHasInitNetplay())
{
return false;
}

if (!CoreIsEmulationRunning())
{
error = "CorePauseEmulation Failed: ";
Expand Down Expand Up @@ -336,6 +341,11 @@ bool CoreResumeEmulation(void)
return false;
}

if (CoreHasInitNetplay())
{
return false;
}

if (!CoreIsEmulationPaused())
{
error = "CoreIsEmulationPaused Failed: ";
Expand Down

0 comments on commit 6375a30

Please sign in to comment.