Skip to content

Commit

Permalink
better control for sound start/stop in menu is the core has RARCH_NET…
Browse files Browse the repository at this point in the history
…PLAY_CTL_USE_CORE_PACKET_INTERFACE (#17136)
  • Loading branch information
Ninoh-FOX authored Oct 31, 2024
1 parent cbafa3b commit 89ca849
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions retroarch.c
Original file line number Diff line number Diff line change
Expand Up @@ -3857,10 +3857,8 @@ bool command_event(enum event_command cmd, void *data)
#endif
#ifdef HAVE_NETWORKING
menu_pause_libretro = settings->bools.menu_pause_libretro
&& netplay_driver_ctl(RARCH_NETPLAY_CTL_ALLOW_PAUSE, NULL);

if (netplay_driver_ctl(RARCH_NETPLAY_CTL_USE_CORE_PACKET_INTERFACE, NULL))
return true;
&& netplay_driver_ctl(RARCH_NETPLAY_CTL_ALLOW_PAUSE, NULL)
&& !netplay_driver_ctl(RARCH_NETPLAY_CTL_USE_CORE_PACKET_INTERFACE, NULL);
#else
menu_pause_libretro = settings->bools.menu_pause_libretro;
#endif
Expand All @@ -3883,10 +3881,8 @@ bool command_event(enum event_command cmd, void *data)
#endif
#ifdef HAVE_NETWORKING
menu_pause_libretro = settings->bools.menu_pause_libretro
&& netplay_driver_ctl(RARCH_NETPLAY_CTL_ALLOW_PAUSE, NULL);

if (netplay_driver_ctl(RARCH_NETPLAY_CTL_USE_CORE_PACKET_INTERFACE, NULL))
return true;
&& netplay_driver_ctl(RARCH_NETPLAY_CTL_ALLOW_PAUSE, NULL)
&& !netplay_driver_ctl(RARCH_NETPLAY_CTL_USE_CORE_PACKET_INTERFACE, NULL);
#else
menu_pause_libretro = settings->bools.menu_pause_libretro;
#endif
Expand Down

0 comments on commit 89ca849

Please sign in to comment.