mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 18:28:35 +12:00
Fix unnecessary cache dir
This commit is contained in:
parent
da6afb11f0
commit
bd1d4de422
1 changed files with 10 additions and 2 deletions
|
@ -406,8 +406,16 @@ void Emulator::Load(bool add_only)
|
||||||
LOG_NOTICE(LOADER, "Category: %s", GetCat());
|
LOG_NOTICE(LOADER, "Category: %s", GetCat());
|
||||||
|
|
||||||
// Initialize data/cache directory
|
// Initialize data/cache directory
|
||||||
|
if (fs::is_dir(m_path))
|
||||||
|
{
|
||||||
|
m_cache_path = fs::get_config_dir() + "data/" + GetTitleID() + '/';
|
||||||
|
LOG_NOTICE(LOADER, "Cache: %s", GetCachePath());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
m_cache_path = fs::get_data_dir(m_title_id, m_path);
|
m_cache_path = fs::get_data_dir(m_title_id, m_path);
|
||||||
LOG_NOTICE(LOADER, "Cache: %s", GetCachePath());
|
LOG_NOTICE(LOADER, "Cache: %s", GetCachePath());
|
||||||
|
}
|
||||||
|
|
||||||
// Load custom config-0
|
// Load custom config-0
|
||||||
if (fs::file cfg_file{m_cache_path + "/config.yml"})
|
if (fs::file cfg_file{m_cache_path + "/config.yml"})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue