Move has_set_libretro_device to runloop_state

This commit is contained in:
twinaphex 2021-10-29 18:24:19 +02:00
parent 2e19dbe932
commit c5688729c2
3 changed files with 12 additions and 8 deletions

View File

@ -8053,8 +8053,9 @@ void retroarch_override_setting_set(
unsigned *val = (unsigned*)data;
if (val)
{
unsigned bit = *val;
BIT256_SET(p_rarch->has_set_libretro_device, bit);
unsigned bit = *val;
runloop_state_t *runloop_st = &runloop_state;
BIT256_SET(runloop_st->has_set_libretro_device, bit);
}
}
break;
@ -8126,8 +8127,9 @@ void retroarch_override_setting_unset(
unsigned *val = (unsigned*)data;
if (val)
{
unsigned bit = *val;
BIT256_CLEAR(p_rarch->has_set_libretro_device, bit);
unsigned bit = *val;
runloop_state_t *runloop_st = &runloop_state;
BIT256_CLEAR(runloop_st->has_set_libretro_device, bit);
}
}
break;
@ -18106,8 +18108,9 @@ bool retroarch_override_setting_is_set(
unsigned *val = (unsigned*)data;
if (val)
{
unsigned bit = *val;
return BIT256_GET(p_rarch->has_set_libretro_device, bit);
unsigned bit = *val;
runloop_state_t *runloop_st = &runloop_state;
return BIT256_GET(runloop_st->has_set_libretro_device, bit);
}
}
break;

View File

@ -585,8 +585,6 @@ struct rarch_state
#endif
unsigned perf_ptr_rarch;
retro_bits_t has_set_libretro_device; /* uint32_t alignment */
char error_string[255];
#ifdef HAVE_NETWORKING
char server_address_deferred[512];

View File

@ -200,6 +200,9 @@ struct runloop
unsigned subsystem_current_count;
fastmotion_overrides_t fastmotion_override; /* float alignment */
retro_bits_t has_set_libretro_device; /* uint32_t alignment */
enum rarch_core_type current_core_type;
enum rarch_core_type explicit_current_core_type;
enum poll_type_override_t core_poll_type_override;