Skip to content

Commit

Permalink
Fix libretro.cpp with HAVE_LIGHTREC=0
Browse files Browse the repository at this point in the history
  • Loading branch information
ZachCook committed Sep 27, 2024
1 parent 272fb20 commit a38d0ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libretro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1288,11 +1288,13 @@ static void PSX_Power(void)
for(i = 0; i < 9; i++)
SysControl.Regs[i] = 0;

PSX_CPU_MEDNAFEN->Power();
#ifdef HAVE_LIGHTREC
PSX_CPU_MEDNAFEN->Power();
//setoptions can be called before power (lightrec init) for tracking of options changing
PSX_CPU_LIGHTREC->SetOptions(lightrec_interpreter,psx_dynarec_invalidate,psx_dynarec_spgp_opt,psx_dynarec);
PSX_CPU_LIGHTREC->Power();
#else
PSX_CPU->Power();
#endif
EventReset();

Expand Down

0 comments on commit a38d0ae

Please sign in to comment.