Skip to content

Commit

Permalink
[SAVEVERSION+] HostFS: Always write savestate tag
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLastRar authored and F0bes committed Nov 28, 2024
1 parent 93652a3 commit 4a04100
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions pcsx2/IopBios.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1423,19 +1423,19 @@ namespace R3000A

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"))
return false;

if (EmuConfig.HostFs && IsLoading())
R3000A::ioman::reset();

const int firstfd = R3000A::ioman::firstfd;
size_t handleCount = R3000A::handles.size();
size_t handleCount = EmuConfig.HostFs ? R3000A::handles.size() : 0;
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++)
{
if (IsLoading())
Expand Down
2 changes: 1 addition & 1 deletion pcsx2/SaveState.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ enum class FreezeAction
// [SAVEVERSION+]
// 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
Expand Down

0 comments on commit 4a04100

Please sign in to comment.