Revert part of CellHddGameCheck

This commit is contained in:
RipleyTom 2020-10-28 06:57:26 +01:00 committed by Ivan
parent ff550b5c3c
commit 6f5bbf550a

View file

@ -268,32 +268,33 @@ error_code cellHddGameCheck(ppu_thread& ppu, u32 version, vm::cptr<char> dirName
} }
} }
if (setParam) // Nuked until correctly reversed engineered
{ // if (setParam)
if (new_data) // {
{ // if (new_data)
psf::assign(sfo, "CATEGORY", psf::string(3, "HG")); // {
} // psf::assign(sfo, "CATEGORY", psf::string(3, "HG"));
// }
psf::assign(sfo, "TITLE_ID", psf::string(CELL_GAME_SYSP_TITLEID_SIZE, setParam->titleId)); // psf::assign(sfo, "TITLE_ID", psf::string(CELL_GAME_SYSP_TITLEID_SIZE, setParam->titleId));
psf::assign(sfo, "TITLE", psf::string(CELL_GAME_SYSP_TITLE_SIZE, setParam->title)); // psf::assign(sfo, "TITLE", psf::string(CELL_GAME_SYSP_TITLE_SIZE, setParam->title));
psf::assign(sfo, "VERSION", psf::string(CELL_GAME_SYSP_VERSION_SIZE, setParam->dataVersion)); // psf::assign(sfo, "VERSION", psf::string(CELL_GAME_SYSP_VERSION_SIZE, setParam->dataVersion));
psf::assign(sfo, "PARENTAL_LEVEL", +setParam->parentalLevel); // psf::assign(sfo, "PARENTAL_LEVEL", +setParam->parentalLevel);
psf::assign(sfo, "RESOLUTION", +setParam->resolution); // psf::assign(sfo, "RESOLUTION", +setParam->resolution);
psf::assign(sfo, "SOUND_FORMAT", +setParam->soundFormat); // psf::assign(sfo, "SOUND_FORMAT", +setParam->soundFormat);
for (u32 i = 0; i < CELL_HDDGAME_SYSP_LANGUAGE_NUM; i++) // for (u32 i = 0; i < CELL_HDDGAME_SYSP_LANGUAGE_NUM; i++)
{ // {
if (!setParam->titleLang[i][0]) // if (!setParam->titleLang[i][0])
{ // {
continue; // continue;
} // }
psf::assign(sfo, fmt::format("TITLE_%02d", i), psf::string(CELL_GAME_SYSP_TITLE_SIZE, setParam->titleLang[i])); // psf::assign(sfo, fmt::format("TITLE_%02d", i), psf::string(CELL_GAME_SYSP_TITLE_SIZE, setParam->titleLang[i]));
} // }
psf::save_object(fs::file(vfs::get(dir + "/PARAM.SFO"), fs::rewrite), sfo); // psf::save_object(fs::file(vfs::get(dir + "/PARAM.SFO"), fs::rewrite), sfo);
} // }
return CELL_OK; return CELL_OK;
} }
case CELL_HDDGAME_CBRESULT_OK_CANCEL: case CELL_HDDGAME_CBRESULT_OK_CANCEL: