Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixup for #10085 (PR #10041) #10086

Merged
merged 1 commit into from
Apr 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions rpcs3/Emu/Cell/Modules/cellGame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ error_code cellGameDataCheck(u32 type, vm::cptr<char> dirName, vm::ptr<CellGameC
if (psf_error != psf::error::stream)
{
init.cancel();
return CELL_GAME_ERROR_BROKEN;
return {CELL_GAME_ERROR_BROKEN, psf_error};
}
}

Expand Down Expand Up @@ -965,7 +965,7 @@ error_code cellGameDeleteGameData(vm::cptr<char> dirName)

if (psf::get_string(sfo, "CATEGORY") != "GD" && psf_error != psf::error::stream)
{
return CELL_GAME_ERROR_NOTSUPPORTED;
return {CELL_GAME_ERROR_NOTSUPPORTED, psf_error};
}

if (sfo.empty())
Expand Down
6 changes: 4 additions & 2 deletions rpcs3/Loader/PSF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,11 @@ namespace psf

load_result_t load(const fs::file& stream)
{
#define PSF_CHECK(cond, err) if (!static_cast<bool>(cond)) { if (error::err != error::stream) psf_log.error("Error loading PSF: %s%s", (errc = error::err), \
#define PSF_CHECK(cond, err) if (!static_cast<bool>(cond)) { if (error::err != error::stream) psf_log.error("Error loading PSF: %s%s", error::err, \
src_loc{__builtin_LINE(), __builtin_COLUMN(), __builtin_FILE(), __builtin_FUNCTION()}); \
return result.clear(), pair; }
result.clear(); \
errc = error::err; \
return pair; }

load_result_t pair{};
auto& [result, errc] = pair;
Expand Down