Skip to content

Commit

Permalink
prevent disabling layers in hardcore
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamiras committed Jun 13, 2019
1 parent 9bf4905 commit 231cade
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/drivers/win/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2136,6 +2136,11 @@ LRESULT FAR PASCAL AppWndProc(HWND hWnd,UINT msg,WPARAM wParam,LPARAM lParam)
case MENU_DISPLAY_BG:
case MENU_DISPLAY_OBJ:
{
#ifdef RETROACHIEVEMENTS
if (RA_HardcoreModeIsActive())
break;
#endif

bool spr, bg;
FCEUI_GetRenderPlanes(spr,bg);
if(LOWORD(wParam)==MENU_DISPLAY_BG)
Expand Down
3 changes: 3 additions & 0 deletions src/retroachievements.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ static void ResetEmulator()
// make sure we're not in the middle of playing a movie
FCEUI_StopMovie();

// force all layers to be visible
FCEUI_SetRenderPlanes(true, true);

// close debug windows
CloseMemoryWatch();
CloseRamWindows();
Expand Down

0 comments on commit 231cade

Please sign in to comment.