Properly reset title id/game title.

This commit is contained in:
gibbed 2019-08-03 08:13:45 -05:00
parent c16ef67ff9
commit 112bf6c8ab
1 changed files with 5 additions and 0 deletions

View File

@ -629,6 +629,11 @@ std::string Emulator::FindLaunchModule() {
X_STATUS Emulator::CompleteLaunch(const std::wstring& path,
const std::string& module_path) {
// Reset state.
title_id_ = 0;
game_title_ = L"";
display_window_->SetIcon(nullptr, 0);
// Allow xam to request module loads.
auto xam = kernel_state()->GetKernelModule<kernel::xam::XamModule>("xam.xex");