Android: Fix crash when loading input profile ingame

This commit is contained in:
Connor McLaughlin
2021-01-27 01:10:25 +10:00
parent 0b4363679c
commit b96136a9ec
4 changed files with 36 additions and 20 deletions

View File

@ -44,6 +44,7 @@ public:
bool IsEmulationThreadRunning() const { return m_emulation_thread_running.load(); }
bool IsEmulationThreadPaused() const;
bool IsOnEmulationThread() const;
void RunOnEmulationThread(std::function<void()> function, bool blocking = false);
void PauseEmulationThread(bool paused);
void StopEmulationThreadLoop();
@ -109,6 +110,7 @@ private:
std::atomic_bool m_emulation_thread_stop_request{false};
std::atomic_bool m_emulation_thread_running{false};
std::thread::id m_emulation_thread_id{};
HostDisplay::Alignment m_display_alignment = HostDisplay::Alignment::Center;