Clearing up everything was using the old replay code.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4105 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
feal87@gmail.com 2010-12-19 14:44:09 +00:00
parent 5ef3d80f47
commit b3c90f21a6
1 changed files with 2 additions and 15 deletions

View File

@ -6,7 +6,6 @@ using System.IO;
namespace GSDumpGUI namespace GSDumpGUI
{ {
public delegate void GSReplay(IntPtr HWND, IntPtr HInstance, String File, Boolean Show);
public delegate void GSgifTransfer1(IntPtr data, int size); public delegate void GSgifTransfer1(IntPtr data, int size);
public delegate void GSgifTransfer2(IntPtr data, int size); public delegate void GSgifTransfer2(IntPtr data, int size);
public delegate void GSgifTransfer3(IntPtr data, int size); public delegate void GSgifTransfer3(IntPtr data, int size);
@ -24,8 +23,6 @@ namespace GSDumpGUI
public class GSDXWrapper public class GSDXWrapper
{ {
private GSReplay gsReplay;
private GSConfigure gsConfigure; private GSConfigure gsConfigure;
private PSEgetLibName PsegetLibName; private PSEgetLibName PsegetLibName;
private GSgifTransfer1 GSgifTransfer1; private GSgifTransfer1 GSgifTransfer1;
@ -57,7 +54,6 @@ namespace GSDumpGUI
IntPtr hmod = NativeMethods.LoadLibrary(DLL); IntPtr hmod = NativeMethods.LoadLibrary(DLL);
if (hmod.ToInt64() > 0) if (hmod.ToInt64() > 0)
{ {
IntPtr funcaddrReplay = NativeMethods.GetProcAddress(hmod, "GSReplay");
IntPtr funcaddrLibName = NativeMethods.GetProcAddress(hmod, "PS2EgetLibName"); IntPtr funcaddrLibName = NativeMethods.GetProcAddress(hmod, "PS2EgetLibName");
IntPtr funcaddrConfig = NativeMethods.GetProcAddress(hmod, "GSconfigure"); IntPtr funcaddrConfig = NativeMethods.GetProcAddress(hmod, "GSconfigure");
@ -75,7 +71,7 @@ namespace GSDumpGUI
IntPtr funcaddrinit = NativeMethods.GetProcAddress(hmod, "GSinit"); IntPtr funcaddrinit = NativeMethods.GetProcAddress(hmod, "GSinit");
NativeMethods.FreeLibrary(hmod); NativeMethods.FreeLibrary(hmod);
if (!((funcaddrConfig.ToInt64() > 0) && (funcaddrLibName.ToInt64() > 0) && (funcaddrReplay.ToInt64() > 0))) if (!((funcaddrConfig.ToInt64() > 0) && (funcaddrLibName.ToInt64() > 0)))
{ {
Int32 id = NativeMethods.GetLastError(); Int32 id = NativeMethods.GetLastError();
System.IO.File.AppendAllText(AppDomain.CurrentDomain.BaseDirectory + "log.txt", DLL + " failed to load. Error " + id + Environment.NewLine); System.IO.File.AppendAllText(AppDomain.CurrentDomain.BaseDirectory + "log.txt", DLL + " failed to load. Error " + id + Environment.NewLine);
@ -109,7 +105,6 @@ namespace GSDumpGUI
IntPtr hmod = NativeMethods.LoadLibrary(DLL); IntPtr hmod = NativeMethods.LoadLibrary(DLL);
if (hmod.ToInt64() > 0) if (hmod.ToInt64() > 0)
{ {
IntPtr funcaddrReplay = NativeMethods.GetProcAddress(hmod, "GSReplay");
IntPtr funcaddrLibName = NativeMethods.GetProcAddress(hmod, "PS2EgetLibName"); IntPtr funcaddrLibName = NativeMethods.GetProcAddress(hmod, "PS2EgetLibName");
IntPtr funcaddrConfig = NativeMethods.GetProcAddress(hmod, "GSconfigure"); IntPtr funcaddrConfig = NativeMethods.GetProcAddress(hmod, "GSconfigure");
@ -126,7 +121,6 @@ namespace GSDumpGUI
IntPtr funcaddrGSreadFIFO2 = NativeMethods.GetProcAddress(hmod, "GSreadFIFO2"); IntPtr funcaddrGSreadFIFO2 = NativeMethods.GetProcAddress(hmod, "GSreadFIFO2");
IntPtr funcaddrinit = NativeMethods.GetProcAddress(hmod, "GSinit"); IntPtr funcaddrinit = NativeMethods.GetProcAddress(hmod, "GSinit");
gsReplay = (GSReplay)Marshal.GetDelegateForFunctionPointer(funcaddrReplay, typeof(GSReplay));
gsConfigure = (GSConfigure)Marshal.GetDelegateForFunctionPointer(funcaddrConfig, typeof(GSConfigure)); gsConfigure = (GSConfigure)Marshal.GetDelegateForFunctionPointer(funcaddrConfig, typeof(GSConfigure));
PsegetLibName = (PSEgetLibName)Marshal.GetDelegateForFunctionPointer(funcaddrLibName, typeof(PSEgetLibName)); PsegetLibName = (PSEgetLibName)Marshal.GetDelegateForFunctionPointer(funcaddrLibName, typeof(PSEgetLibName));
@ -161,13 +155,6 @@ namespace GSDumpGUI
gsConfigure.Invoke(); gsConfigure.Invoke();
} }
public void GSReplayDump(String DumpFilename)
{
if (!Loaded)
throw new Exception("GSDX is not loaded");
gsReplay.Invoke(new IntPtr(0), new IntPtr(0), DumpFilename, false);
}
public String PSEGetLibName() public String PSEGetLibName()
{ {
if (!Loaded) if (!Loaded)
@ -191,7 +178,7 @@ namespace GSDumpGUI
GSVSync(1); GSVSync(1);
while (Running) while (Running)
{ /*"C:\Users\Alessio\Desktop\Plugins\Dll\gsdx-sse4-r3878.dll" "C:\Users\Alessio\Desktop\Plugins\Dumps\gsdx_20100603052628.gs" "GSReplay" 0*/ {
if (!NativeMethods.IsWindowVisible(new IntPtr(HWND))) if (!NativeMethods.IsWindowVisible(new IntPtr(HWND)))
{ {
Running = false; Running = false;