mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-12-06 07:12:28 +01:00
SPU Cache debug
This commit is contained in:
parent
c80aba2342
commit
3c5c74c496
|
|
@ -720,9 +720,19 @@ void spu_cache::initialize(bool build_existing_cache)
|
|||
}
|
||||
|
||||
// SPU cache file (version + block size type)
|
||||
const std::string loc = ppu_cache + "spu-" + fmt::to_lower(g_cfg.core.spu_block_size.to_string()) + "-v1-tane.dat";
|
||||
const std::string filename = "spu-" + fmt::to_lower(g_cfg.core.spu_block_size.to_string()) + "-v1-tane.dat";
|
||||
const std::string loc = ppu_cache + filename;
|
||||
const std::string loc_debug = fs::get_cache_dir() + "DEBUG/" + filename;
|
||||
|
||||
spu_cache cache(loc);
|
||||
bool is_debug = false;
|
||||
|
||||
if (fs::is_file(loc_debug))
|
||||
{
|
||||
spu_log.success("SPU Cache override applied!");
|
||||
is_debug = true;
|
||||
}
|
||||
|
||||
spu_cache cache(is_debug ? loc_debug : loc);
|
||||
|
||||
if (!cache)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue