[Emulator] Removed legacy title re-launching code

This commit is contained in:
NicknineTheEagle 2024-06-16 10:16:10 +03:00 committed by Radosław Gliński
parent ec267c348a
commit c004d669c2
3 changed files with 1 additions and 24 deletions

View File

@ -642,14 +642,7 @@ void EmulatorApp::EmulatorThread() {
// Now, we're going to use this thread to drive events related to emulation.
while (!emulator_thread_quit_requested_.load(std::memory_order_relaxed)) {
xe::threading::Wait(emulator_thread_event_.get(), false);
while (true) {
emulator_->WaitUntilExit();
if (emulator_->TitleRequested()) {
emulator_->LaunchNextTitle();
} else {
break;
}
}
}
}

View File

@ -905,20 +905,6 @@ bool Emulator::RestoreFromFile(const std::filesystem::path& path) {
return true;
}
bool Emulator::TitleRequested() {
auto xam = kernel_state()->GetKernelModule<kernel::xam::XamModule>("xam.xex");
return xam->loader_data().launch_data_present;
}
void Emulator::LaunchNextTitle() {
auto xam = kernel_state()->GetKernelModule<kernel::xam::XamModule>("xam.xex");
auto next_title = xam->loader_data().launch_path;
// Swap disk doesn't require reloading
// This function should be purged?
CompleteLaunch("", next_title);
}
const std::filesystem::path Emulator::GetNewDiscPath(
std::string window_message) {
std::filesystem::path path = "";

View File

@ -248,8 +248,6 @@ class Emulator {
bool RestoreFromFile(const std::filesystem::path& path);
// The game can request another title to be loaded.
bool TitleRequested();
void LaunchNextTitle();
const std::filesystem::path GetNewDiscPath(std::string window_message = "");
void WaitUntilExit();