[Core] Keep a reference to the main thread's XThread rather than its underlying thread.

This commit is contained in:
gibbed
2019-07-29 13:24:36 -05:00
parent a4d2f5e4ed
commit ecf64d8e05
2 changed files with 7 additions and 7 deletions

View File

@@ -175,7 +175,7 @@ class Emulator {
std::unique_ptr<vfs::VirtualFileSystem> file_system_;
std::unique_ptr<kernel::KernelState> kernel_state_;
threading::Thread* main_thread_;
kernel::object_ref<kernel::XThread> main_thread_;
uint32_t title_id_; // Currently running title ID
bool paused_;