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());