From b003eadd2d551141c56d9e44eaa69d2d9aa54a25 Mon Sep 17 00:00:00 2001 From: TheTechnician27 Date: Sat, 1 Nov 2025 13:41:35 -0500 Subject: [PATCH] VMManager: More helpful error message on no BIOS present --- pcsx2/SupportURLs.h | 1 + pcsx2/VMManager.cpp | 16 ++++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/pcsx2/SupportURLs.h b/pcsx2/SupportURLs.h index f325ae54eb..8a53c1adcd 100644 --- a/pcsx2/SupportURLs.h +++ b/pcsx2/SupportURLs.h @@ -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" diff --git a/pcsx2/VMManager.cpp b/pcsx2/VMManager.cpp index 9dde9e5ef3..12153807f0 100644 --- a/pcsx2/VMManager.cpp +++ b/pcsx2/VMManager.cpp @@ -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; }