Fix unnecessary cache dir
This commit is contained in:
+10
-2
@@ -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
|
||||||
m_cache_path = fs::get_data_dir(m_title_id, m_path);
|
if (fs::is_dir(m_path))
|
||||||
LOG_NOTICE(LOADER, "Cache: %s", GetCachePath());
|
{
|
||||||
|
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);
|
||||||
|
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"})
|
||||||
|
|||||||
Reference in New Issue
Block a user