mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
Merge branch 'master' of https://github.com/libretro/RetroArch
This commit is contained in:
commit
eb4ee2d57c
@ -25,6 +25,10 @@
|
|||||||
#include <streams/file_stream.h>
|
#include <streams/file_stream.h>
|
||||||
#include <string/stdstring.h>
|
#include <string/stdstring.h>
|
||||||
|
|
||||||
|
#ifdef WIIU
|
||||||
|
#include <wiiu/os/energy.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
#include "../config.h"
|
#include "../config.h"
|
||||||
#endif
|
#endif
|
||||||
@ -1678,6 +1682,12 @@ static void menu_driver_toggle(bool on)
|
|||||||
if (menu_driver_alive)
|
if (menu_driver_alive)
|
||||||
{
|
{
|
||||||
bool refresh = false;
|
bool refresh = false;
|
||||||
|
|
||||||
|
#ifdef WIIU
|
||||||
|
/* Enable burn-in protection menu is running */
|
||||||
|
IMEnableDim();
|
||||||
|
#endif
|
||||||
|
|
||||||
menu_entries_ctl(MENU_ENTRIES_CTL_SET_REFRESH, &refresh);
|
menu_entries_ctl(MENU_ENTRIES_CTL_SET_REFRESH, &refresh);
|
||||||
|
|
||||||
/* Menu should always run with vsync on. */
|
/* Menu should always run with vsync on. */
|
||||||
@ -1701,6 +1711,13 @@ static void menu_driver_toggle(bool on)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
#ifdef WIIU
|
||||||
|
/* Disable burn-in protection while core is running; this is needed
|
||||||
|
* because HID inputs don't count for the purpose of Wii U
|
||||||
|
* power-saving. */
|
||||||
|
IMDisableDim();
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!rarch_ctl(RARCH_CTL_IS_SHUTDOWN, NULL))
|
if (!rarch_ctl(RARCH_CTL_IS_SHUTDOWN, NULL))
|
||||||
driver_set_nonblock_state();
|
driver_set_nonblock_state();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user