Fixes for booting PS1 games

This commit is contained in:
Nekotekina 2018-06-23 17:30:16 +03:00
parent 8b449ce76c
commit 6229b3ca8d
2 changed files with 23 additions and 8 deletions

View file

@ -1218,7 +1218,16 @@ extern void ppu_initialize()
}
// New PPU cache location
_main->cache = fmt::format("%sdata/%s/ppu-%s-%s/", fs::get_config_dir(), Emu.GetTitleID(), fmt::base57(_main->sha1), Emu.GetBoot().substr(Emu.GetBoot().find_last_of('/') + 1));
_main->cache = fs::get_config_dir() + "data/";
if (!Emu.GetTitleID().empty() && Emu.GetCat() != "1P")
{
// TODO
_main->cache += Emu.GetTitleID();
_main->cache += '/';
}
fmt::append(_main->cache, "ppu-%s-%s/", fmt::base57(_main->sha1), _main->path.substr(_main->path.find_last_of('/') + 1));
if (!fs::create_path(_main->cache))
{