mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Silence MSVC warning
This commit is contained in:
parent
78e935b7a9
commit
72ff8808af
1 changed files with 3 additions and 4 deletions
|
@ -2300,12 +2300,11 @@ bool command_event(enum event_command cmd, void *data)
|
||||||
#if HAVE_RUNAHEAD
|
#if HAVE_RUNAHEAD
|
||||||
{
|
{
|
||||||
bool old_warn = settings->bools.preemptive_frames_hide_warnings;
|
bool old_warn = settings->bools.preemptive_frames_hide_warnings;
|
||||||
bool old_inited = runloop_st->preempt_data;
|
bool old_inited = runloop_st->preempt_data != NULL;
|
||||||
|
|
||||||
/* Toggle with warnings shown */
|
/* Toggle with warnings shown */
|
||||||
settings->bools.preemptive_frames_hide_warnings = false;
|
settings->bools.preemptive_frames_hide_warnings = false;
|
||||||
|
settings->bools.preemptive_frames_enable =
|
||||||
settings->bools.preemptive_frames_enable =
|
|
||||||
!(settings->bools.preemptive_frames_enable);
|
!(settings->bools.preemptive_frames_enable);
|
||||||
command_event(CMD_EVENT_PREEMPT_UPDATE, NULL);
|
command_event(CMD_EVENT_PREEMPT_UPDATE, NULL);
|
||||||
|
|
||||||
|
@ -2328,7 +2327,7 @@ bool command_event(enum event_command cmd, void *data)
|
||||||
NULL, MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
|
NULL, MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
|
||||||
|
|
||||||
/* Disable runahead */
|
/* Disable runahead */
|
||||||
settings->bools.run_ahead_enabled = false;
|
settings->bools.run_ahead_enabled = false;
|
||||||
}
|
}
|
||||||
else /* Failed to init */
|
else /* Failed to init */
|
||||||
settings->bools.preemptive_frames_enable = false;
|
settings->bools.preemptive_frames_enable = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue