remove `?? ""` litter from ImageSequenceWriter (re #2982)

This commit is contained in:
zeromus 2021-10-26 18:18:23 -04:00
parent bb318df49e
commit c5a09f123b
1 changed files with 2 additions and 2 deletions

View File

@ -45,8 +45,8 @@ namespace BizHawk.Client.EmuHawk
public void AddFrame(IVideoProvider source)
{
string ext = Path.GetExtension(_baseName) ?? "";
var name = Path.Combine(Path.GetDirectoryName(_baseName) ?? "", $"{Path.GetFileNameWithoutExtension(_baseName)}_{_frame}{ext}");
string ext = Path.GetExtension(_baseName);
var name = Path.Combine(Path.GetDirectoryName(_baseName), $"{Path.GetFileNameWithoutExtension(_baseName)}_{_frame}{ext}");
BitmapBuffer bb = new BitmapBuffer(source.BufferWidth, source.BufferHeight, source.GetVideoBuffer());
using var bmp = bb.ToSysdrawingBitmap();
if (ext.ToUpper() == ".PNG")