Add a File->Close option

This commit is contained in:
Dr. Chat
2016-11-23 11:00:10 -06:00
parent ca54f9f212
commit 222a9721aa
4 changed files with 27 additions and 0 deletions

View File

@@ -178,6 +178,17 @@ X_STATUS Emulator::Setup(
return result;
}
X_STATUS Emulator::TerminateTitle() {
if (!is_title_open()) {
return X_STATUS_UNSUCCESSFUL;
}
kernel_state_->TerminateTitle();
title_id_ = 0;
game_title_ = L"";
return X_STATUS_SUCCESS;
}
X_STATUS Emulator::LaunchPath(std::wstring path) {
// Launch based on file type.
// This is a silly guess based on file extension.