From 1d534c7481a0b5997f0b6f531cc6ebb95edaa460 Mon Sep 17 00:00:00 2001 From: ramapcsx2 Date: Sat, 15 May 2010 01:15:41 +0000 Subject: [PATCH] Same fix for cdvdGigaherz as the last rev + workaround for ZeroGS so it also works in default Vista/Win7 installs. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3006 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/cdvdGigaherz/src/Windows/plugin.def | 1 + plugins/zerogs/dx/GSmain.cpp | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/plugins/cdvdGigaherz/src/Windows/plugin.def b/plugins/cdvdGigaherz/src/Windows/plugin.def index 5351ba64f9..e030a8ec58 100644 --- a/plugins/cdvdGigaherz/src/Windows/plugin.def +++ b/plugins/cdvdGigaherz/src/Windows/plugin.def @@ -23,3 +23,4 @@ EXPORTS CDVDgetBuffer2 @23 CDVDreadSector @24 CDVDgetDualInfo @25 + CDVDsetSettingsDir @26 diff --git a/plugins/zerogs/dx/GSmain.cpp b/plugins/zerogs/dx/GSmain.cpp index 2609902a39..23a479fb49 100644 --- a/plugins/zerogs/dx/GSmain.cpp +++ b/plugins/zerogs/dx/GSmain.cpp @@ -286,11 +286,15 @@ s32 CALLBACK GSinit() if (gsLog == NULL) { gsLog = fopen("gsLog.txt", "w"); if (gsLog == NULL) { - SysMessage("Can't create gsLog.txt"); return -1; + printf("ZeroGS: Can't create gsLog.txt. (Not an emulation error).\n"); + //return -1; } } - setvbuf(gsLog, NULL, _IONBF, 0); - GS_LOG("GSinit\n"); + + if (gsLog != NULL) { + setvbuf(gsLog, NULL, _IONBF, 0); + GS_LOG("GSinit\n"); + } #endif GSreset();