Skip to content

Commit

Permalink
GS: Move input recording shutdown to VMManager
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Feb 5, 2024
1 parent 8ffd920 commit 56b54e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pcsx2/GS/GS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include "GS/MultiISA.h"
#include "Host.h"
#include "Input/InputManager.h"
#include "Recording/InputRecording.h"
#include "MTGS.h"
#include "pcsx2/GS.h"
#include "GS/Renderers/Null/GSRendererNull.h"
Expand Down Expand Up @@ -338,9 +337,6 @@ void GSclose()
if (GSCapture::IsCapturing())
GSCapture::EndCapture();

if (g_InputRecording.isActive())
g_InputRecording.stop();

CloseGSRenderer();
CloseGSDevice(true);
Host::ReleaseRenderWindow();
Expand Down Expand Up @@ -503,9 +499,6 @@ void GSGameChanged()

if (!VMManager::HasValidVM() && GSCapture::IsCapturing())
GSCapture::EndCapture();

if (!VMManager::HasValidVM() && g_InputRecording.isActive())
g_InputRecording.stop();
}

bool GSHasDisplayWindow()
Expand Down
4 changes: 4 additions & 0 deletions pcsx2/VMManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1496,6 +1496,10 @@ void VMManager::Shutdown(bool save_resume_state)
Console.Error("Failed to save resume state");
}

// end input recording before clearing state
if (g_InputRecording.isActive())
g_InputRecording.stop();

SaveSessionTime(s_disc_serial);
s_elf_override = {};
ClearELFInfo();
Expand Down

0 comments on commit 56b54e0

Please sign in to comment.