Use update's eboot only if it actually exists

This commit is contained in:
igor725 2024-06-02 12:52:49 +03:00
parent 84c77ed5f0
commit 664f2fbeee
No known key found for this signature in database
GPG Key ID: 46F13BBE46F8569D

View File

@ -142,7 +142,8 @@ int main(int argc, char** argv) {
fileManager.enableUpdateSearch();
// Change eboot.bin to update folder
filepath = (std::filesystem::path(updateRoot) / std::filesystem::path(filepath).filename()).string();
auto u_eboot = (std::filesystem::path(updateRoot) / std::filesystem::path(filepath).filename()).string();
if (std::filesystem::exists(u_eboot)) filepath = u_eboot;
}
// - special case