[Kernel] Fixed issue with titles not booting due to lack of title id
This commit is contained in:
@@ -138,7 +138,7 @@ X_STATUS GraphicsSystem::Setup(cpu::Processor* processor,
|
|||||||
while (frame_limiter_worker_running_) {
|
while (frame_limiter_worker_running_) {
|
||||||
// If there is no title running then there is no need for guest
|
// If there is no title running then there is no need for guest
|
||||||
// frame limiter thread.
|
// frame limiter thread.
|
||||||
if (!kernel_state_->title_id()) {
|
if (!kernel_state_->is_title_open()) {
|
||||||
xe::threading::Sleep(std::chrono::milliseconds(100));
|
xe::threading::Sleep(std::chrono::milliseconds(100));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -120,6 +120,8 @@ uint32_t KernelState::title_id() const {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool KernelState::is_title_open() const { return emulator_->is_title_open(); }
|
||||||
|
|
||||||
const std::unique_ptr<xam::SpaInfo> KernelState::title_xdbf() const {
|
const std::unique_ptr<xam::SpaInfo> KernelState::title_xdbf() const {
|
||||||
return module_xdbf(executable_module_);
|
return module_xdbf(executable_module_);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -175,6 +175,7 @@ class KernelState {
|
|||||||
vfs::VirtualFileSystem* file_system() const { return file_system_; }
|
vfs::VirtualFileSystem* file_system() const { return file_system_; }
|
||||||
|
|
||||||
uint32_t title_id() const;
|
uint32_t title_id() const;
|
||||||
|
bool is_title_open() const;
|
||||||
const std::unique_ptr<xam::SpaInfo> title_xdbf() const;
|
const std::unique_ptr<xam::SpaInfo> title_xdbf() const;
|
||||||
const std::unique_ptr<xam::SpaInfo> module_xdbf(
|
const std::unique_ptr<xam::SpaInfo> module_xdbf(
|
||||||
object_ref<UserModule> exec_module) const;
|
object_ref<UserModule> exec_module) const;
|
||||||
|
|||||||
Reference in New Issue
Block a user