Savestates: Disable HDD1 saving optimization

HDD1 is very volatile, it was a bad idea not to save it.
This commit is contained in:
Eladash 2022-10-23 08:52:16 +03:00 committed by Megamouse
parent 9e4c24baa3
commit f16c9cd3c6

View file

@ -2392,21 +2392,14 @@ std::shared_ptr<utils::serial> Emulator::Kill(bool allow_autoexit, bool savestat
ar(std::string(path.substr(path.find_last_of(fs::delim) + 1)));
if (!_path.empty())
{
if (!g_cfg.savestate.suspend_emu)
{
save_tar(_path);
}
else
{
ar(usz{});
}
}
};
auto save_hdd0 = [&]()
{
if (!g_cfg.savestate.suspend_emu && g_cfg.savestate.save_disc_game_data)
if (g_cfg.savestate.save_disc_game_data)
{
const std::string path = vfs::get("/dev_hdd0/game/");