Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemoralis committed Oct 2, 2024
1 parent 01fcc62 commit 7d5b995
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
16 changes: 13 additions & 3 deletions src/core/libraries/system/sysmodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ int PS4_SYSV_ABI sceSysmoduleLoadModule(OrbisSysModule id) {
case OrbisSysModule::ORBIS_SYSMODULE_NGS2:
Libraries::Kernel::sceKernelLoadStartModule("/system/common/lib/libSceNgs2.sprx", 0, NULL,
0, NULL, NULL);
break;;
break;
;
case OrbisSysModule::ORBIS_SYSMODULE_ULT:
Libraries::Kernel::sceKernelLoadStartModule("/system/common/lib/libSceUlt.sprx", 0, NULL, 0,
NULL, NULL);
Expand All @@ -72,14 +73,23 @@ int PS4_SYSV_ABI sceSysmoduleLoadModule(OrbisSysModule id) {
0, NULL, NULL);
break;
case OrbisSysModule::ORBIS_SYSMODULE_JPEG_ENC:
Libraries::Kernel::sceKernelLoadStartModule("/system/common/lib/libSceJpegEnc.sprx", 0, NULL,
0, NULL, NULL);
Libraries::Kernel::sceKernelLoadStartModule("/system/common/lib/libSceJpegEnc.sprx", 0,
NULL, 0, NULL, NULL);
break;
case OrbisSysModule::ORBIS_SYSMODULE_DISC_MAP:
Libraries::Kernel::sceKernelLoadStartModule("/system/common/lib/libSceDiscMap.sprx", 0,
NULL, 0, NULL, NULL);
break;
/* case OrbisSysModule::ORBIS_SYSMODULE_FONT_FT:
Libraries::Kernel::sceKernelLoadStartModule("/system/common/lib/libSceFontFt.sprx", 0,
NULL, 0, NULL, NULL);
break;*/
case OrbisSysModule::ORBIS_SYSMODULE_FREETYPE_OT:
Libraries::Kernel::sceKernelLoadStartModule("/system/common/lib/libSceFreeTypeOt.sprx", 0,
NULL, 0, NULL, NULL);
break;
}

return ORBIS_OK;
}

Expand Down
2 changes: 1 addition & 1 deletion src/emulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ void Emulator::LoadSystemModules(const std::filesystem::path& file) {
LOG_INFO(Loader, "Loading {}", it->string());
if (load_at_startup) {
int result = linker->LoadModule(*it);
if (result == 0) {
if (result >= 0) {
continue;
}
} else {
Expand Down

0 comments on commit 7d5b995

Please sign in to comment.