diff --git a/src/core/libraries/kernel/libkernel.cpp b/src/core/libraries/kernel/libkernel.cpp index 318d864ba..3cbf21f07 100644 --- a/src/core/libraries/kernel/libkernel.cpp +++ b/src/core/libraries/kernel/libkernel.cpp @@ -244,7 +244,7 @@ int PS4_SYSV_ABI sceKernelConvertUtcToLocaltime(time_t time, time_t* local_time, int PS4_SYSV_ABI sceKernelGetCompiledSdkVersion(int* ver) { auto* param_sfo = Common::Singleton::Instance(); - int version = *param_sfo->GetInteger("SYSTEM_VER"); + int version = param_sfo->GetInteger("SYSTEM_VER").value_or(0x4700000); LOG_INFO(Kernel, "returned system version = {:#x}", version); *ver = version; return (version > 0) ? ORBIS_OK : ORBIS_KERNEL_ERROR_EINVAL; diff --git a/src/emulator.cpp b/src/emulator.cpp index cfcdcb66a..e8495bb52 100644 --- a/src/emulator.cpp +++ b/src/emulator.cpp @@ -116,7 +116,7 @@ void Emulator::Run(const std::filesystem::path& file) { #endif title = *param_sfo->GetString("TITLE"); LOG_INFO(Loader, "Game id: {} Title: {}", id, title); - u32 fw_version = *param_sfo->GetInteger("SYSTEM_VER"); + u32 fw_version = param_sfo->GetInteger("SYSTEM_VER").value_or(0x4700000); app_version = *param_sfo->GetString("APP_VER"); LOG_INFO(Loader, "Fw: {:#x} App Version: {}", fw_version, app_version); } else if (entry.path().filename() == "playgo-chunk.dat") {