cleanup variable naming in IMovieSession

This commit is contained in:
adelikat 2020-02-02 12:19:41 -06:00
parent bfd33e5399
commit 880f584674
3 changed files with 21 additions and 21 deletions

View File

@ -417,9 +417,9 @@ namespace BizHawk.Client.Common
// The behavior here is to only temporarily override these settings when playing a movie and then restore the user's preferred settings
// A more elegant approach would be appreciated
public bool? PreviousNES_InQuickNES { get; set; }
public bool? PreviousSNES_InSnes9x { get; set; }
public bool? PreviousGBA_UsemGBA { get; set; }
public bool? PreviousNesInQuickNES { get; set; }
public bool? PreviousSnesInSnes9x { get; set; }
public bool? PreviousGbaUsemGba { get; set; }
/// <exception cref="MoviePlatformMismatchException"><paramref name="record"/> is <see langword="false"/> and <paramref name="movie"/>.<see cref="IMovie.SystemID"/> does not match <paramref name="emulator"/>.<see cref="IEmulator.SystemId"/></exception>
public void QueueNewMovie(IMovie movie, bool record, IEmulator emulator)
@ -447,12 +447,12 @@ namespace BizHawk.Client.Common
// If either is specified use that, else use whatever is currently set
if (movie.Core == quicknesName)
{
PreviousNES_InQuickNES = Global.Config.NesInQuickNes;
PreviousNesInQuickNES = Global.Config.NesInQuickNes;
Global.Config.NesInQuickNes = true;
}
else if (movie.Core == neshawkName)
{
PreviousNES_InQuickNES = Global.Config.NesInQuickNes;
PreviousNesInQuickNES = Global.Config.NesInQuickNes;
Global.Config.NesInQuickNes = false;
}
}
@ -463,12 +463,12 @@ namespace BizHawk.Client.Common
if (movie.Core == snes9xName)
{
PreviousSNES_InSnes9x = Global.Config.SnesInSnes9x;
PreviousSnesInSnes9x = Global.Config.SnesInSnes9x;
Global.Config.SnesInSnes9x = true;
}
else if (movie.Core == bsnesName)
{
PreviousSNES_InSnes9x = Global.Config.SnesInSnes9x;
PreviousSnesInSnes9x = Global.Config.SnesInSnes9x;
Global.Config.SnesInSnes9x = false;
}
}
@ -479,12 +479,12 @@ namespace BizHawk.Client.Common
if (movie.Core == mGBAName)
{
PreviousGBA_UsemGBA = Global.Config.GbaUsemGba;
PreviousGbaUsemGba = Global.Config.GbaUsemGba;
Global.Config.GbaUsemGba = true;
}
else if (movie.Core == vbaNextName)
{
PreviousGBA_UsemGBA = Global.Config.GbaUsemGba;
PreviousGbaUsemGba = Global.Config.GbaUsemGba;
Global.Config.GbaUsemGba = false;
}
}

View File

@ -17,9 +17,9 @@ namespace BizHawk.Client.Common
bool ReadOnly { get; set; }
bool MovieIsQueued { get; }
bool? PreviousNES_InQuickNES { get; set; }
bool? PreviousSNES_InSnes9x { get; set; }
bool? PreviousGBA_UsemGBA { get; set; }
bool? PreviousNesInQuickNES { get; set; }
bool? PreviousSnesInSnes9x { get; set; }
bool? PreviousGbaUsemGba { get; set; }
void HandleMovieOnFrameLoop();
void HandleMovieAfterFrameLoop();

View File

@ -32,22 +32,22 @@ namespace BizHawk.Client.EmuHawk
RebootCore();
if (MovieSession.PreviousNES_InQuickNES.HasValue)
if (MovieSession.PreviousNesInQuickNES.HasValue)
{
Config.NesInQuickNes = MovieSession.PreviousNES_InQuickNES.Value;
MovieSession.PreviousNES_InQuickNES = null;
Config.NesInQuickNes = MovieSession.PreviousNesInQuickNES.Value;
MovieSession.PreviousNesInQuickNES = null;
}
if (MovieSession.PreviousSNES_InSnes9x.HasValue)
if (MovieSession.PreviousSnesInSnes9x.HasValue)
{
Config.SnesInSnes9x = MovieSession.PreviousSNES_InSnes9x.Value;
MovieSession.PreviousSNES_InSnes9x = null;
Config.SnesInSnes9x = MovieSession.PreviousSnesInSnes9x.Value;
MovieSession.PreviousSnesInSnes9x = null;
}
if (MovieSession.PreviousGBA_UsemGBA.HasValue)
if (MovieSession.PreviousGbaUsemGba.HasValue)
{
Config.GbaUsemGba = MovieSession.PreviousGBA_UsemGBA.Value;
MovieSession.PreviousGBA_UsemGBA = null;
Config.GbaUsemGba = MovieSession.PreviousGbaUsemGba.Value;
MovieSession.PreviousGbaUsemGba = null;
}
Config.RecentMovies.Add(movie.Filename);