Use loaded movie's filename for A/V filename

This commit is contained in:
James Groom 2023-10-24 22:46:22 +10:00 committed by GitHub
parent 65060c00f1
commit c7f438c240
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -3464,7 +3464,7 @@ namespace BizHawk.Client.EmuHawk
var result = this.ShowFileSaveDialog(
filter: new(new FilesystemFilter(ext, new[] { ext })),
initDir: Config.PathEntries.AvAbsolutePath(),
initFileName: $"{Game.FilesystemSafeName()}.{ext}");
initFileName: $"{(MovieSession.Movie.IsActive() ? Path.GetFileNameWithoutExtension(MovieSession.Movie.Filename) : Game.FilesystemSafeName())}.{ext}");
if (result is null)
{
aw.Dispose();