VMManager: More helpful error message on no BIOS present
Some checks failed
🐧 Linux Builds / AppImage (push) Has been cancelled
🐧 Linux Builds / Flatpak (push) Has been cancelled
🍎 MacOS Builds / Defaults (push) Has been cancelled
🖥️ Windows Builds / Lint VS Project Files (push) Has been cancelled
🖥️ Windows Builds / CMake (push) Has been cancelled
🖥️ Windows Builds / SSE4 (push) Has been cancelled
🖥️ Windows Builds / AVX2 (push) Has been cancelled

This commit is contained in:
TheTechnician27 2025-11-01 13:41:35 -05:00 committed by Ty
parent a5984d8213
commit b003eadd2d
2 changed files with 9 additions and 8 deletions

View File

@ -8,5 +8,6 @@
#define PCSX2_GITHUB_URL "https://github.com/PCSX2/pcsx2"
#define PCSX2_LICENSE_URL "https://github.com/PCSX2/pcsx2/blob/master/pcsx2/Docs/License.txt"
#define PCSX2_DOCUMENTATION_URL "https://pcsx2.net/docs"
#define PCSX2_DOCUMENTATION_BIOS_URL_SHORTENED "pcsx2.net/docs/setup/bios"
#define PCSX2_WIKI_URL "https://wiki.pcsx2.net/Main_Page"
#define PCSX2_DISCORD_URL "https://pcsx2.net/discord"

View File

@ -37,6 +37,7 @@
#include "SIO/Sio0.h"
#include "SIO/Sio2.h"
#include "SPU2/spu2.h"
#include "SupportURLs.h"
#include "USB/USB.h"
#include "Vif_Dynarec.h"
#include "VMManager.h"
@ -1353,14 +1354,13 @@ bool VMManager::Initialize(VMBootParameters boot_params)
Console.WriteLn("Loading BIOS...");
if (!LoadBIOS())
{
Host::ReportErrorAsync(TRANSLATE_SV("VMManager", "Error"),
TRANSLATE_SV("VMManager",
"PCSX2 requires a PS2 BIOS in order to run.\n\n"
"For legal reasons, you *must* obtain a BIOS from an actual PS2 unit that you own (borrowing "
"doesn't count).\n\n"
"Once dumped, this BIOS image should be placed in the bios folder within the data directory "
"(Tools Menu -> Open Data Directory).\n\n"
"Please consult the FAQs and Guides for further instructions."));
Host::ReportErrorAsync(TRANSLATE_SV("VMManager", "Error No BIOS Present"),
fmt::format(TRANSLATE_FS("VMManager",
"PCSX2 requires a PlayStation 2 BIOS in order to run.\n\n"
"For legal reasons, you will need to obtain this BIOS from a PlayStation 2 unit which you own.\n\n"
"For step-by-step help with this process, please consult the setup guide at {}.\n\n"
"PCSX2 will be able to run once you've placed your BIOS image inside the folder named \"bios\" within the data directory "
"(Tools Menu -> Open Data Directory)."), PCSX2_DOCUMENTATION_BIOS_URL_SHORTENED));
return false;
}