Qt: Add Firmware Cache options to main window menu

This commit is contained in:
Megamouse 2020-04-22 11:32:31 +02:00
parent 8c747bf0a2
commit ebd92a2f2f
6 changed files with 85 additions and 7 deletions

View file

@ -656,6 +656,11 @@ std::string Emulator::GetHdd1Dir()
return fmt::replace_all(g_cfg.vfs.dev_hdd1, "$(EmulatorDir)", GetEmuDir());
}
std::string Emulator::GetCacheDir()
{
return fs::get_cache_dir() + "cache/";
}
#ifdef _WIN32
std::string Emulator::GetExeDir()
{
@ -1430,7 +1435,7 @@ game_boot_result Emulator::Load(const std::string& title_id, bool add_only, bool
ppu_load_exec(ppu_exec);
_main->cache = fs::get_cache_dir() + "cache/";
_main->cache = GetCacheDir();
if (!m_title_id.empty() && m_cat != "1P")
{