More reorg

This commit is contained in:
adelikat 2014-07-07 18:03:02 +00:00
parent 7173447e8a
commit c019ec3bf0
8 changed files with 12 additions and 12 deletions

View File

@ -166,9 +166,9 @@
<Compile Include="movie\PlatformFrameRates.cs" />
<Compile Include="movie\Subtitle.cs" />
<Compile Include="movie\SubtitleList.cs" />
<Compile Include="movie\tasproj\MovieRecord.cs" />
<Compile Include="movie\tasproj\MovieRecordList.cs" />
<Compile Include="movie\tasproj\TasMovie.IO.cs" />
<Compile Include="movie\tasproj\TasMovie.cs" />
<Compile Include="movie\tasproj\TasMovieRecord.cs" />
<Compile Include="NESGameGenieEncoderDecoder.cs" />
<Compile Include="PathManager.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />

View File

@ -169,7 +169,7 @@ namespace BizHawk.Client.Common
}
}
private string CommentsString()
protected string CommentsString()
{
var sb = new StringBuilder();

View File

@ -32,7 +32,7 @@ namespace BizHawk.Client.Common
Write(backupName);
}
public bool Load()
public virtual bool Load()
{
var file = new FileInfo(Filename);
if (!file.Exists)
@ -137,7 +137,7 @@ namespace BizHawk.Client.Common
return Load();
}
private void Write(string fn)
protected virtual void Write(string fn)
{
var file = new FileInfo(fn);
if (!file.Directory.Exists)
@ -171,7 +171,7 @@ namespace BizHawk.Client.Common
Changes = false;
}
private void ClearBeforeLoad()
protected void ClearBeforeLoad()
{
Header.Clear();
_log.Clear();

View File

@ -263,7 +263,7 @@ namespace BizHawk.Client.Common
return true;
}
private StringBuilder RawInputLog()
protected StringBuilder RawInputLog()
{
var lg = new Bk2LogEntryGenerator(_logKey);
lg.SetSource(Global.MovieOutputHardpoint);

View File

@ -34,7 +34,7 @@ namespace BizHawk.Client.Common
public virtual string PreferredExtension { get { return Extension; } }
public const string Extension = "bk2";
public bool Changes { get; private set; }
public bool Changes { get; protected set; }
public bool IsCountingRerecords { get; set; }
public ILogEntryGenerator LogGeneratorInstance()

View File

@ -28,11 +28,11 @@ namespace BizHawk.Client.Common
public new const string Extension = "tasproj";
public MovieRecord this[int index]
public TasMovieRecord this[int index]
{
get
{
return new MovieRecord // TODO
return new TasMovieRecord // TODO
{
State = null,
LogEntry = "",

View File

@ -3,7 +3,7 @@ using System.Linq;
namespace BizHawk.Client.Common
{
public class MovieRecord
public class TasMovieRecord
{
public byte[] State { get; set; }
public bool Lagged { get; set; }

View File

@ -575,7 +575,7 @@ namespace BizHawk.Client.EmuHawk
}
else if (TasView.IsPaintDown && e.NewCell.Row.HasValue && !string.IsNullOrEmpty(_startDrawColumn))
{
_tas.SetBoolButton(e.NewCell.Row.Value, _startDrawColumn, /*_startOn*/ false); // Notice it uses new row, old column, you can only paint across a single column
//_tas.SetBoolButton(e.NewCell.Row.Value, _startDrawColumn, /*_startOn*/ false); // Notice it uses new row, old column, you can only paint across a single column
TasView.Refresh();
}
}