From 93d4f5a39c7355a38325e35467321767d3df2495 Mon Sep 17 00:00:00 2001 From: "Jake.Stine" Date: Mon, 28 Sep 2009 11:13:40 +0000 Subject: [PATCH] GSdx: Force the plugin to terminate via PostQuitMessage() when running GSReplay (fixes bug where GSdx would remain loaded in the background indefinitely). git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1923 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/GSdx/GS.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/GSdx/GS.cpp b/plugins/GSdx/GS.cpp index 8c0cf70ca3..6851851e15 100644 --- a/plugins/GSdx/GS.cpp +++ b/plugins/GSdx/GS.cpp @@ -562,11 +562,11 @@ EXPORT_C GSReplay(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdShow) while( LoopDatPacket_Thingamajig(hWnd, regs, buff, fp, start) ) ; GSclose(); - GSshutdown(); fclose(fp); } + PostQuitMessage(0); } EXPORT_C GSBenchmark(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdShow) @@ -770,6 +770,7 @@ EXPORT_C GSBenchmark(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdShow // fclose(file); + PostQuitMessage(0); } #endif