[App] Correctly initialize title ID.

This commit is contained in:
gibbed 2021-05-02 00:20:27 -05:00 committed by Rick Gibbed
parent ea1f2b114a
commit f868a10649
1 changed files with 3 additions and 3 deletions

View File

@ -79,7 +79,7 @@ Emulator::Emulator(const std::filesystem::path& command_line,
file_system_(),
kernel_state_(),
main_thread_(),
title_id_({}),
title_id_(std::nullopt),
paused_(false),
restoring_(false),
restore_fence_() {}
@ -247,7 +247,7 @@ X_STATUS Emulator::TerminateTitle() {
}
kernel_state_->TerminateTitle();
title_id_ = {};
title_id_ = std::nullopt;
title_name_ = "";
title_version_ = "";
on_terminate();
@ -673,7 +673,7 @@ static std::string format_version(xex2_version version) {
X_STATUS Emulator::CompleteLaunch(const std::filesystem::path& path,
const std::string_view module_path) {
// Reset state.
title_id_ = {};
title_id_ = std::nullopt;
title_name_ = "";
title_version_ = "";
display_window_->SetIcon(nullptr, 0);