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