You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update the ISaveRam interface for clarity. We no longer constrain the sram data length, because it already wasn't true for all cores. Cores that require a specific size should throw if they get the wrong size.
Copy file name to clipboardExpand all lines: src/BizHawk.Emulation.Common/Interfaces/Services/ISaveRam.cs
+3-5Lines changed: 3 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -10,16 +10,14 @@ public interface ISaveRam : IEmulatorService
10
10
{
11
11
/// <summary>
12
12
/// Returns a copy of the SaveRAM. Editing it won't do you any good unless you later call StoreSaveRam()
13
-
/// This IS allowed to return null.
14
-
/// Unfortunately, the core may think differently of a nonexisting (null) saveram vs a 0 size saveram.
15
-
/// Frontend users of the ISaveRam should treat null as nonexisting (and thus not even write the file, so that the "does not exist" condition can be roundtripped and not confused with an empty file)
16
13
/// </summary>
17
14
/// <param name="clearDirty">Whether the saveram should be considered in a clean state after this call for purposes of <see cref="SaveRamModified"/></param>
18
-
byte[]?CloneSaveRam(boolclearDirty=true);
15
+
byte[]CloneSaveRam(boolclearDirty=true);
19
16
20
17
/// <summary>
21
-
/// store new SaveRAM to the emu core. the data should be the same size as the return from ReadSaveRam()
18
+
/// Store new SaveRAM to the emu core.
22
19
/// </summary>
20
+
/// <exception cref="Exception">The core may throw an exception if the given data is invalid.</exception>
0 commit comments