[Emulator] Removed marking extracted games as booted from disc

This commit is contained in:
Gliniak 2025-05-27 20:22:42 +02:00 committed by Radosław Gliński
parent bb20633c52
commit 270e88a7a7

View file

@ -573,13 +573,16 @@ X_STATUS Emulator::LaunchXexFile(const std::filesystem::path& path) {
auto fs_path = "game:\\" + xe::path_to_utf8(file_name);
X_STATUS result = CompleteLaunch(path, fs_path);
if (XSUCCEEDED(result)) {
if (XFAILED(result)) {
return result;
}
kernel_state_->deployment_type_ = XDeploymentType::kInstalledToHDD;
auto title_id = kernel_state_->title_id();
if (!kernel::IsSystemTitle(title_id)) {
// Assumption that any loaded game is loaded as a disc.
kernel_state_->deployment_type_ = XDeploymentType::kOpticalDisc;
} else {
if (!kernel::IsSystemTitle(kernel_state_->title_id())) {
return result;
}
const std::string mount_path = xe::path_to_utf8(
std::filesystem::path(kernel_state_->GetExecutableModule()->path())
.parent_path());
@ -596,8 +599,6 @@ X_STATUS Emulator::LaunchXexFile(const std::filesystem::path& path) {
if (module) {
result = kernel_state_->FinishLoadingUserModule(module, false);
}
}
}
return result;
}