emulator: Fix blank entry at end of sysmodules list. (#3523)

This commit is contained in:
squidbus
2025-09-05 05:32:20 -07:00
committed by GitHub
parent acd8dd7074
commit 781f51afe7

View File

@@ -341,7 +341,7 @@ void Emulator::Run(std::filesystem::path file, const std::vector<std::string> ar
}
void Emulator::LoadSystemModules(const std::string& game_serial) {
constexpr std::array<SysModules, 10> ModulesToLoad{
constexpr auto ModulesToLoad = std::to_array<SysModules>(
{{"libSceNgs2.sprx", &Libraries::Ngs2::RegisterlibSceNgs2},
{"libSceUlt.sprx", nullptr},
{"libSceJson.sprx", nullptr},
@@ -350,7 +350,7 @@ void Emulator::LoadSystemModules(const std::string& game_serial) {
{"libSceCesCs.sprx", nullptr},
{"libSceFont.sprx", nullptr},
{"libSceFontFt.sprx", nullptr},
{"libSceFreeTypeOt.sprx", nullptr}}};
{"libSceFreeTypeOt.sprx", nullptr}});
std::vector<std::filesystem::path> found_modules;
const auto& sys_module_path = Common::FS::GetUserPath(Common::FS::PathType::SysModuleDir);