mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 23:11:25 +12:00
Add error for missing firmware
This commit is contained in:
parent
e28e51463b
commit
94478ad4a0
3 changed files with 11 additions and 1 deletions
|
@ -91,6 +91,7 @@ void fmt_class_string<game_boot_result>::format(std::string& out, u64 arg)
|
||||||
case game_boot_result::install_failed: return "Game install failed";
|
case game_boot_result::install_failed: return "Game install failed";
|
||||||
case game_boot_result::decryption_error: return "Failed to decrypt content";
|
case game_boot_result::decryption_error: return "Failed to decrypt content";
|
||||||
case game_boot_result::file_creation_error: return "Could not create important files";
|
case game_boot_result::file_creation_error: return "Could not create important files";
|
||||||
|
case game_boot_result::firmware_missing: return "Firmware is missing";
|
||||||
}
|
}
|
||||||
return unknown;
|
return unknown;
|
||||||
});
|
});
|
||||||
|
@ -901,6 +902,11 @@ game_boot_result Emulator::Load(const std::string& title_id, bool add_only, bool
|
||||||
sys_log.notice("Hdd1: %s", vfs::get("/dev_hdd1"));
|
sys_log.notice("Hdd1: %s", vfs::get("/dev_hdd1"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!fs::is_file(g_cfg.vfs.get_dev_flash() + "sys/external/liblv2.sprx"))
|
||||||
|
{
|
||||||
|
return game_boot_result::firmware_missing;
|
||||||
|
}
|
||||||
|
|
||||||
// Special boot mode (directory scan)
|
// Special boot mode (directory scan)
|
||||||
if (!add_only && fs::is_dir(m_path))
|
if (!add_only && fs::is_dir(m_path))
|
||||||
{
|
{
|
||||||
|
|
|
@ -26,6 +26,7 @@ enum class game_boot_result : u32
|
||||||
install_failed,
|
install_failed,
|
||||||
decryption_error,
|
decryption_error,
|
||||||
file_creation_error,
|
file_creation_error,
|
||||||
|
firmware_missing,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct EmuCallbacks
|
struct EmuCallbacks
|
||||||
|
|
|
@ -256,12 +256,15 @@ void main_window::show_boot_error(game_boot_result status)
|
||||||
case game_boot_result::file_creation_error:
|
case game_boot_result::file_creation_error:
|
||||||
message = tr("The emulator could not create files required for booting.");
|
message = tr("The emulator could not create files required for booting.");
|
||||||
break;
|
break;
|
||||||
|
case game_boot_result::firmware_missing:
|
||||||
|
message = tr("Firmware has not been installed. Install firmware with the \"File > Install Firmware\" menu option.");
|
||||||
|
break;
|
||||||
case game_boot_result::generic_error:
|
case game_boot_result::generic_error:
|
||||||
default:
|
default:
|
||||||
message = tr("Unknown error.");
|
message = tr("Unknown error.");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
const QString link = tr("<br /><br />For information on how to dump your PS3 games, read the <a href=\"https://rpcs3.net/quickstart\">quickstart guide</a>.");
|
const QString link = tr("<br /><br />For information on setting up the emulator and dumping your PS3 games, read the <a href=\"https://rpcs3.net/quickstart\">quickstart guide</a>.");
|
||||||
|
|
||||||
QMessageBox msg;
|
QMessageBox msg;
|
||||||
msg.setWindowTitle(tr("Boot Failed"));
|
msg.setWindowTitle(tr("Boot Failed"));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue