mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Use structs for config callback IDs
This way you can't mix up regular config callback IDs and CPU thread config callback IDs. (It would be rather bad if you did!)
This commit is contained in:
@ -9,6 +9,7 @@
|
||||
|
||||
#include "Common/BlockingLoop.h"
|
||||
#include "Common/CommonTypes.h"
|
||||
#include "Common/Config/Config.h"
|
||||
#include "Common/Event.h"
|
||||
#include "Common/Flag.h"
|
||||
|
||||
@ -121,7 +122,7 @@ private:
|
||||
bool m_syncing_suspended = false;
|
||||
Common::Event m_sync_wakeup_event;
|
||||
|
||||
std::optional<size_t> m_config_callback_id = std::nullopt;
|
||||
std::optional<Config::ConfigChangedCallbackID> m_config_callback_id = std::nullopt;
|
||||
bool m_config_sync_gpu = false;
|
||||
int m_config_sync_gpu_max_distance = 0;
|
||||
int m_config_sync_gpu_min_distance = 0;
|
||||
|
Reference in New Issue
Block a user