MCPcopy Create free account
hub / github.com/RPCSX/rpcsx / locateParamSfoPath

Function locateParamSfoPath

android/src/rpcsx-android.cpp:769–787  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

767}
768
769static std::string locateParamSfoPath(std::string_view root) {
770 if (std::filesystem::is_regular_file(root)) {
771 return std::string(root);
772 }
773
774 for (auto suffix : {
775 "/PARAM.SFO",
776 "/PS3_GAME/PARAM.SFO",
777 }) {
778 auto tryPath = std::string(root);
779 tryPath += suffix;
780
781 if (std::filesystem::is_regular_file(tryPath)) {
782 return tryPath;
783 }
784 }
785
786 return {};
787}
788
789static std::optional<GameInfo>
790fetchGameInfo(const psf::registry &psf,

Callers 2

implMethod · 0.85
installEdatFunction · 0.85

Calls 1

stringFunction · 0.50

Tested by

no test coverage detected