diff --git a/src/emulator.cpp b/src/emulator.cpp index db2cf0cc8..ba367a1f9 100644 --- a/src/emulator.cpp +++ b/src/emulator.cpp @@ -341,7 +341,7 @@ void Emulator::Run(std::filesystem::path file, const std::vector ar } void Emulator::LoadSystemModules(const std::string& game_serial) { - constexpr std::array ModulesToLoad{ + constexpr auto ModulesToLoad = std::to_array( {{"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 found_modules; const auto& sys_module_path = Common::FS::GetUserPath(Common::FS::PathType::SysModuleDir);