mirror of https://github.com/PCSX2/pcsx2.git
[SAVEVERSION+] HostFS: Always write savestate tag
This commit is contained in:
parent
93652a3115
commit
4a04100207
|
@ -1423,19 +1423,19 @@ namespace R3000A
|
||||||
|
|
||||||
bool SaveStateBase::handleFreeze()
|
bool SaveStateBase::handleFreeze()
|
||||||
{
|
{
|
||||||
if (!EmuConfig.HostFs) //if hostfs isn't enabled, skip loading/saving file handles
|
|
||||||
return IsOkay();
|
|
||||||
|
|
||||||
if (IsLoading())
|
|
||||||
R3000A::ioman::reset();
|
|
||||||
|
|
||||||
if (!FreezeTag("hostHandles"))
|
if (!FreezeTag("hostHandles"))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (EmuConfig.HostFs && IsLoading())
|
||||||
|
R3000A::ioman::reset();
|
||||||
|
|
||||||
const int firstfd = R3000A::ioman::firstfd;
|
const int firstfd = R3000A::ioman::firstfd;
|
||||||
size_t handleCount = R3000A::handles.size();
|
size_t handleCount = EmuConfig.HostFs ? R3000A::handles.size() : 0;
|
||||||
Freeze(handleCount);
|
Freeze(handleCount);
|
||||||
|
|
||||||
|
if (!EmuConfig.HostFs) //if hostfs isn't enabled, skip loading/saving file handles
|
||||||
|
return IsOkay();
|
||||||
|
|
||||||
for (size_t i = 0; i < handleCount; i++)
|
for (size_t i = 0; i < handleCount; i++)
|
||||||
{
|
{
|
||||||
if (IsLoading())
|
if (IsLoading())
|
||||||
|
|
|
@ -25,7 +25,7 @@ enum class FreezeAction
|
||||||
// [SAVEVERSION+]
|
// [SAVEVERSION+]
|
||||||
// This informs the auto updater that the users savestates will be invalidated.
|
// This informs the auto updater that the users savestates will be invalidated.
|
||||||
|
|
||||||
static const u32 g_SaveVersion = (0x9A50 << 16) | 0x0000;
|
static const u32 g_SaveVersion = (0x9A51 << 16) | 0x0000;
|
||||||
|
|
||||||
|
|
||||||
// the freezing data between submodules and core
|
// the freezing data between submodules and core
|
||||||
|
|
Loading…
Reference in New Issue