Fix support for custom game configs for homebrews

Fixes #21429
This commit is contained in:
Henrik Rydgård committed 2026-03-14 14:03:33 +01:00
1 parent 44140e5175
commit 445dd0bc0c
3 files changed
+9 -5

No files matched your search

+3 -1
View File
@@ -299,7 +299,7 @@ static Path NormalizePath(const Path &path) {
#endif
}
bool Load_PSP_ELF_PBP(FileLoader *fileLoader, std::string *error_string) {
bool Load_PSP_ELF_PBP(FileLoader *fileLoader, std::string_view discId, std::string *error_string) {
// This is really just for headless, might need tweaking later.
if (PSP_CoreParameter().mountIsoLoader != nullptr) {
auto bd = ConstructBlockDevice(PSP_CoreParameter().mountIsoLoader, error_string);
@@ -401,6 +401,8 @@ bool Load_PSP_ELF_PBP(FileLoader *fileLoader, std::string *error_string) {
File::Rename(oldNamePrefix.WithExtraExtension(".jpg"), newPrefix.WithExtraExtension(".jpg"));
}
g_Config.LoadGameConfig(discID);
return __KernelLoadExec(finalName.c_str(), 0, error_string);
}