Fix code style

This commit is contained in:
YoshiRulz 2021-01-10 19:30:18 +10:00
parent bcee6d4d39
commit ea0d6b04d8
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
2 changed files with 7 additions and 7 deletions

View File

@ -54,7 +54,7 @@ namespace BizHawk.Client.EmuHawk
public void AddFrame(IVideoProvider source)
{
using var bb = new BitmapBuffer(source.BufferWidth, source.BufferHeight, source.GetVideoBuffer());
using var bb = new BitmapBuffer(source.BufferWidth, source.BufferHeight, source.GetVideoBuffer());
string subPath = GetAndCreatePathForFrameNum(_mCurrFrame);
string path = $"{subPath}.png";
bb.ToSysdrawingBitmap().Save(path, ImageFormat.Png);
@ -153,13 +153,13 @@ namespace BizHawk.Client.EmuHawk
public static string GetPathFragmentForFrameNum(int index)
{
// not sure of the original purpose here, but the subfolders it makes don't seem to work right, just return frame number for now
/*
var chunks = StringChunkSplit(index.ToString(), 2);
#if true
return index.ToString();
#else // not sure of the original purpose here, but the subfolders it makes don't seem to work right, just return frame number for now
var chunks = StringChunkSplit(index.ToString(), 2);
string subPath = string.Join("/", chunks);
return subPath;
*/
return index.ToString();
#endif
}
}
}

View File

@ -563,7 +563,7 @@ namespace BizHawk.Client.EmuHawk
SelectAllMenuItem_Click(null, null);
}
DoSelectedIndexChange();
DoSelectedIndexChange();
}
private void CheatListView_SelectedIndexChanged(object sender, EventArgs e)