Skip to content

Commit

Permalink
Fix cellGameDataCheckCreate2 error broken check
Browse files Browse the repository at this point in the history
  • Loading branch information
elad335 committed Apr 7, 2020
1 parent 5834a46 commit 7f80fa8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions rpcs3/Emu/Cell/Modules/cellGame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -565,9 +565,13 @@ error_code cellGameDataCheckCreate2(ppu_thread& ppu, u32 version, vm::cptr<char>

const u32 new_data = sfo.empty() && !fs::is_file(vfs::get(dir + "/PARAM.SFO")) ? CELL_GAMEDATA_ISNEWDATA_YES : CELL_GAMEDATA_ISNEWDATA_NO;

if (!new_data && psf::get_string(sfo, "CATEGORY", "") != "GD")
if (!new_data)
{
return CELL_GAMEDATA_ERROR_BROKEN;
const auto cat = psf::get_string(sfo, "CATEGORY", "");
if (cat != "GD" && cat != "DG")
{
return CELL_GAMEDATA_ERROR_BROKEN;
}
}

cbGet->isNewData = new_data;
Expand Down

0 comments on commit 7f80fa8

Please sign in to comment.