Skip to content

Commit b003ead

Browse files
TheTechnician27F0bes
authored andcommitted
VMManager: More helpful error message on no BIOS present
1 parent a5984d8 commit b003ead

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

pcsx2/SupportURLs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88
#define PCSX2_GITHUB_URL "https://github.com/PCSX2/pcsx2"
99
#define PCSX2_LICENSE_URL "https://github.com/PCSX2/pcsx2/blob/master/pcsx2/Docs/License.txt"
1010
#define PCSX2_DOCUMENTATION_URL "https://pcsx2.net/docs"
11+
#define PCSX2_DOCUMENTATION_BIOS_URL_SHORTENED "pcsx2.net/docs/setup/bios"
1112
#define PCSX2_WIKI_URL "https://wiki.pcsx2.net/Main_Page"
1213
#define PCSX2_DISCORD_URL "https://pcsx2.net/discord"

pcsx2/VMManager.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#include "SIO/Sio0.h"
3838
#include "SIO/Sio2.h"
3939
#include "SPU2/spu2.h"
40+
#include "SupportURLs.h"
4041
#include "USB/USB.h"
4142
#include "Vif_Dynarec.h"
4243
#include "VMManager.h"
@@ -1353,14 +1354,13 @@ bool VMManager::Initialize(VMBootParameters boot_params)
13531354
Console.WriteLn("Loading BIOS...");
13541355
if (!LoadBIOS())
13551356
{
1356-
Host::ReportErrorAsync(TRANSLATE_SV("VMManager", "Error"),
1357-
TRANSLATE_SV("VMManager",
1358-
"PCSX2 requires a PS2 BIOS in order to run.\n\n"
1359-
"For legal reasons, you *must* obtain a BIOS from an actual PS2 unit that you own (borrowing "
1360-
"doesn't count).\n\n"
1361-
"Once dumped, this BIOS image should be placed in the bios folder within the data directory "
1362-
"(Tools Menu -> Open Data Directory).\n\n"
1363-
"Please consult the FAQs and Guides for further instructions."));
1357+
Host::ReportErrorAsync(TRANSLATE_SV("VMManager", "Error – No BIOS Present"),
1358+
fmt::format(TRANSLATE_FS("VMManager",
1359+
"PCSX2 requires a PlayStation 2 BIOS in order to run.\n\n"
1360+
"For legal reasons, you will need to obtain this BIOS from a PlayStation 2 unit which you own.\n\n"
1361+
"For step-by-step help with this process, please consult the setup guide at {}.\n\n"
1362+
"PCSX2 will be able to run once you've placed your BIOS image inside the folder named \"bios\" within the data directory "
1363+
"(Tools Menu -> Open Data Directory)."), PCSX2_DOCUMENTATION_BIOS_URL_SHORTENED));
13641364
return false;
13651365
}
13661366

0 commit comments

Comments
 (0)