| 745 | } |
| 746 | |
| 747 | static std::string locateEbootPath(std::string_view root) { |
| 748 | if (std::filesystem::is_regular_file(root)) { |
| 749 | return std::string(root); |
| 750 | } |
| 751 | |
| 752 | for (auto suffix : { |
| 753 | "/EBOOT.BIN", |
| 754 | "/USRDIR/EBOOT.BIN", |
| 755 | "/USRDIR/ISO.BIN.EDAT", |
| 756 | "/PS3_GAME/USRDIR/EBOOT.BIN", |
| 757 | }) { |
| 758 | auto tryPath = std::string(root); |
| 759 | tryPath += suffix; |
| 760 | |
| 761 | if (std::filesystem::is_regular_file(tryPath)) { |
| 762 | return tryPath; |
| 763 | } |
| 764 | } |
| 765 | |
| 766 | return {}; |
| 767 | } |
| 768 | |
| 769 | static std::string locateParamSfoPath(std::string_view root) { |
| 770 | if (std::filesystem::is_regular_file(root)) { |
no test coverage detected