From c8e3eef74d7615df0817db7fb31fa10ab83f2f8a Mon Sep 17 00:00:00 2001 From: adelikat Date: Fri, 20 Jun 2008 00:12:56 +0000 Subject: [PATCH] Fixed a potential movie desync problem for FDS games. (Disables disk shadow write during movie play). (This was a fceu.22 fix originally) --- src/fds.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fds.cpp b/src/fds.cpp index de369c8d..6a079bd6 100644 --- a/src/fds.cpp +++ b/src/fds.cpp @@ -40,7 +40,7 @@ // and the when it can be successfully read/written to. This should // prevent writes to wrong places OR add code to prevent disk ejects // when the virtual motor is on(mmm...virtual motor). - +extern int disableBatteryLoading; static DECLFR(FDSRead4030); static DECLFR(FDSRead4031); @@ -790,7 +790,7 @@ int FDSLoad(const char *name, FCEUFILE *fp) fclose(zp); - +if (!disableBatteryLoading) { FCEUFILE *tp; char *fn=strdup(FCEU_MakeFName(FCEUMKF_FDS,0,0).c_str());