Merge pull request #178 from igor725/upd_eboot

Use update's eboot only if it actually exists
This commit is contained in:
SysRay 2024-06-03 11:03:43 +02:00 committed by GitHub
commit 38806e48f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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