remove `?? ""` litter from ImageSequenceWriter (re #2982)
This commit is contained in:
parent
bb318df49e
commit
c5a09f123b
|
@ -45,8 +45,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
public void AddFrame(IVideoProvider source)
|
public void AddFrame(IVideoProvider source)
|
||||||
{
|
{
|
||||||
string ext = Path.GetExtension(_baseName) ?? "";
|
string ext = Path.GetExtension(_baseName);
|
||||||
var name = Path.Combine(Path.GetDirectoryName(_baseName) ?? "", $"{Path.GetFileNameWithoutExtension(_baseName)}_{_frame}{ext}");
|
var name = Path.Combine(Path.GetDirectoryName(_baseName), $"{Path.GetFileNameWithoutExtension(_baseName)}_{_frame}{ext}");
|
||||||
BitmapBuffer bb = new BitmapBuffer(source.BufferWidth, source.BufferHeight, source.GetVideoBuffer());
|
BitmapBuffer bb = new BitmapBuffer(source.BufferWidth, source.BufferHeight, source.GetVideoBuffer());
|
||||||
using var bmp = bb.ToSysdrawingBitmap();
|
using var bmp = bb.ToSysdrawingBitmap();
|
||||||
if (ext.ToUpper() == ".PNG")
|
if (ext.ToUpper() == ".PNG")
|
||||||
|
|
Loading…
Reference in New Issue