cellGem: ignore missing pad handler

This is a hacky way to fix cellGem savestates
This commit is contained in:
Megamouse 2025-01-20 22:55:21 +01:00
parent 23483a80c7
commit 74540844d2
14 changed files with 56 additions and 55 deletions

View file

@ -37,7 +37,7 @@ extern std::string g_input_config_override;
namespace pad
{
atomic_t<pad_thread*> g_current = nullptr;
atomic_t<pad_thread*> g_pad_thread = nullptr;
shared_mutex g_pad_mutex;
std::string g_title_id;
atomic_t<bool> g_started{false};
@ -62,13 +62,13 @@ struct pad_setting
pad_thread::pad_thread(void* curthread, void* curwindow, std::string_view title_id) : m_curthread(curthread), m_curwindow(curwindow)
{
pad::g_title_id = title_id;
pad::g_current = this;
pad::g_pad_thread = this;
pad::g_started = false;
}
pad_thread::~pad_thread()
{
pad::g_current = nullptr;
pad::g_pad_thread = nullptr;
}
void pad_thread::Init()