From 67fdb46ca2513e807ca264d5cd6ff07e24792a67 Mon Sep 17 00:00:00 2001 From: goyuken Date: Sun, 23 Mar 2014 15:00:56 +0000 Subject: [PATCH] workaround issue 146 --- BizHawk.Emulation.Cores/Consoles/Nintendo/NES/FDS/FDS.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/FDS/FDS.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/FDS/FDS.cs index 8f8f7e91f0..bb1067389a 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/FDS/FDS.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/FDS/FDS.cs @@ -224,10 +224,13 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES public void ClearSaveRam() { - if (currentside != null) - throw new Exception("FDS Saveram: Can't clear when a disk is active!"); + // be careful with this; it can only really be done in frame 0 + //if (currentside != null) + // throw new Exception("FDS Saveram: Can't clear when a disk is active!"); for (int i = 0; i < diskdiffs.Length; i++) diskdiffs[i] = null; + if (currentside != null) + InsertSide((int)currentside); } public override byte[] SaveRam