rename SavestateManager to SavestateFile, to better reflect what it does

This commit is contained in:
adelikat 2020-05-31 13:41:46 -05:00
parent 229d7f42e5
commit 7444f32a4e
2 changed files with 8 additions and 5 deletions

View File

@ -7,9 +7,12 @@ using BizHawk.Emulation.Common;
namespace BizHawk.Client.Common
{
public static class SavestateManager
/// <summary>
/// Represents an aggregated savestate file that includes core, movie, and other related data
/// </summary>
public static class SavestateFile
{
public static void SaveStateFile(IEmulator emulator, string filename, SaveStateConfig config)
public static void Create(IEmulator emulator, string filename, SaveStateConfig config)
{
var core = emulator.AsStatable();
@ -96,7 +99,7 @@ namespace BizHawk.Client.Common
}
}
public static bool LoadStateFile(IEmulator emulator, string path)
public static bool Load(IEmulator emulator, string path)
{
var core = emulator.AsStatable();

View File

@ -3983,7 +3983,7 @@ namespace BizHawk.Client.EmuHawk
return;
}
if (SavestateManager.LoadStateFile(Emulator, path))
if (SavestateFile.Load(Emulator, path))
{
GlobalWin.OSD.ClearGuiText();
ClientApi.OnStateLoaded(this, userFriendlyStateName);
@ -4060,7 +4060,7 @@ namespace BizHawk.Client.EmuHawk
try
{
SavestateManager.SaveStateFile(Emulator, path, Config.Savestates);
SavestateFile.Create(Emulator, path, Config.Savestates);
ClientApi.OnStateSaved(this, userFriendlyStateName);