Reinstate `GameInfo.NullInstance`'s name, and only instantiate it once

reverts 8dcea2470
`PathEntryCollection.RetroSystemAbsolutePath` extension didn't like this, there
may be others, and I don't want to look through them all
This commit is contained in:
YoshiRulz 2022-11-03 08:59:14 +10:00
parent 3e79e68d1d
commit a8f571f2d6
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 2 additions and 2 deletions

View File

@ -46,9 +46,9 @@ namespace BizHawk.Emulation.Common
return ret;
}
public static GameInfo NullInstance => new GameInfo
public static readonly GameInfo NullInstance = new()
{
Name = string.Empty,
Name = "Null",
System = VSystemID.Raw.NULL,
Hash = "",
Region = "",