Movie - remove IsText and logic that was meant to allow a binary option, since that will never happen with this implementation of IMovie
This commit is contained in:
parent
b70d03a93f
commit
fd8927f96c
|
@ -29,7 +29,6 @@ namespace BizHawk.Client.Common
|
||||||
|
|
||||||
IsCountingRerecords = true;
|
IsCountingRerecords = true;
|
||||||
_mode = Moviemode.Inactive;
|
_mode = Moviemode.Inactive;
|
||||||
IsText = true;
|
|
||||||
MakeBackup = true;
|
MakeBackup = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -44,7 +43,6 @@ namespace BizHawk.Client.Common
|
||||||
public bool IsCountingRerecords { get; set; }
|
public bool IsCountingRerecords { get; set; }
|
||||||
|
|
||||||
public bool Loaded { get; private set; }
|
public bool Loaded { get; private set; }
|
||||||
public bool IsText { get; private set; }
|
|
||||||
|
|
||||||
public int InputLogLength
|
public int InputLogLength
|
||||||
{
|
{
|
||||||
|
@ -171,14 +169,7 @@ namespace BizHawk.Client.Common
|
||||||
Directory.CreateDirectory(directory_info.FullName);
|
Directory.CreateDirectory(directory_info.FullName);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IsText)
|
Write(Filename);
|
||||||
{
|
|
||||||
WriteText(Filename);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
WriteBinary(Filename);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Save()
|
public void Save()
|
||||||
|
@ -209,14 +200,7 @@ namespace BizHawk.Client.Common
|
||||||
Directory.CreateDirectory(directory_info.FullName);
|
Directory.CreateDirectory(directory_info.FullName);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IsText)
|
Write(backupName);
|
||||||
{
|
|
||||||
WriteText(backupName);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
WriteBinary(backupName);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -675,12 +659,13 @@ namespace BizHawk.Client.Common
|
||||||
private int _preloadFramecount; // Not a a reliable number, used for preloading (when no log has yet been loaded), this is only for quick stat compilation for dialogs such as play movie
|
private int _preloadFramecount; // Not a a reliable number, used for preloading (when no log has yet been loaded), this is only for quick stat compilation for dialogs such as play movie
|
||||||
private bool _changes;
|
private bool _changes;
|
||||||
private int? _loopOffset;
|
private int? _loopOffset;
|
||||||
|
private readonly PlatformFrameRates _frameRates = new PlatformFrameRates();
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Helpers
|
#region Helpers
|
||||||
|
|
||||||
private void WriteText(string fn)
|
private void Write(string fn)
|
||||||
{
|
{
|
||||||
using (var fs = new FileStream(fn, FileMode.Create, FileAccess.Write, FileShare.Read))
|
using (var fs = new FileStream(fn, FileMode.Create, FileAccess.Write, FileShare.Read))
|
||||||
{
|
{
|
||||||
|
@ -688,14 +673,6 @@ namespace BizHawk.Client.Common
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void WriteBinary(string fn)
|
|
||||||
{
|
|
||||||
using (var fs = new FileStream(fn, FileMode.Create, FileAccess.Write, FileShare.Read))
|
|
||||||
{
|
|
||||||
WriteBinary(fs);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void WriteText(Stream stream)
|
private void WriteText(Stream stream)
|
||||||
{
|
{
|
||||||
using (var sw = new StreamWriter(stream))
|
using (var sw = new StreamWriter(stream))
|
||||||
|
@ -715,10 +692,6 @@ namespace BizHawk.Client.Common
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void WriteBinary(Stream stream)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
private bool LoadText()
|
private bool LoadText()
|
||||||
{
|
{
|
||||||
var file = new FileInfo(Filename);
|
var file = new FileInfo(Filename);
|
||||||
|
@ -775,11 +748,6 @@ namespace BizHawk.Client.Common
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool LoadBinary()
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static string MakeDigits(int num)
|
private static string MakeDigits(int num)
|
||||||
{
|
{
|
||||||
return num < 10 ? "0" + num : num.ToString();
|
return num < 10 ? "0" + num : num.ToString();
|
||||||
|
@ -814,7 +782,5 @@ namespace BizHawk.Client.Common
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
private readonly PlatformFrameRates _frameRates = new PlatformFrameRates();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue