Fill game list from all locations

This commit is contained in:
Nekotekina 2017-07-12 16:58:48 +03:00
parent 08e9400870
commit 3cd4256b9e
5 changed files with 45 additions and 28 deletions

View file

@ -260,12 +260,12 @@ bool Emulator::BootGame(const std::string& path, bool direct)
return false;
}
std::string Emulator::GetGameDir()
std::string Emulator::GetHddDir()
{
const std::string& emu_dir_ = g_cfg.vfs.emulator_dir;
const std::string& emu_dir = emu_dir_.empty() ? fs::get_config_dir() : emu_dir_;
return fmt::replace_all(g_cfg.vfs.dev_hdd0, "$(EmulatorDir)", emu_dir) + "game/";
return fmt::replace_all(g_cfg.vfs.dev_hdd0, "$(EmulatorDir)", emu_dir);
}
std::string Emulator::GetLibDir()