Indicate unsaved changes to movie in window title

see #4064
This commit is contained in:
YoshiRulz 2024-11-28 04:36:28 +10:00
parent a7dd37d884
commit 75e5088eed
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 4 additions and 2 deletions

View File

@ -1758,9 +1758,11 @@ namespace BizHawk.Client.EmuHawk
if (!Emulator.IsNull())
{
sb.Append($"{Game.Name} [{Emulator.GetSystemDisplayName()}] - ");
if (MovieSession.Movie.IsActive())
var movie = MovieSession.Movie;
if (movie.IsActive())
{
sb.Append($"{Path.GetFileName(MovieSession.Movie.Filename)} - ");
// I think the asterisk is conventionally after the filename, but I worry it would often be cut off there --yoshi
sb.Append($"{(movie.Changes ? "*" : string.Empty)}{Path.GetFileName(movie.Filename)} - ");
}
}