load firmware version at launch

This commit is contained in:
Emmanuel Hansen 2023-10-21 12:49:46 +00:00
parent a2b7dc5aca
commit 34e52880da

View File

@ -628,6 +628,7 @@ namespace LibRyujinx
public class SwitchDevice : IDisposable public class SwitchDevice : IDisposable
{ {
private readonly SystemVersion _firmwareVersion;
public VirtualFileSystem VirtualFileSystem { get; set; } public VirtualFileSystem VirtualFileSystem { get; set; }
public ContentManager ContentManager { get; set; } public ContentManager ContentManager { get; set; }
public AccountManager AccountManager { get; set; } public AccountManager AccountManager { get; set; }
@ -658,6 +659,11 @@ namespace LibRyujinx
ContentManager = new ContentManager(VirtualFileSystem); ContentManager = new ContentManager(VirtualFileSystem);
AccountManager = new AccountManager(LibHacHorizonManager.RyujinxClient); AccountManager = new AccountManager(LibHacHorizonManager.RyujinxClient);
UserChannelPersistence = new UserChannelPersistence(); UserChannelPersistence = new UserChannelPersistence();
_firmwareVersion = ContentManager.GetCurrentFirmwareVersion();
Logger.Notice.Print(LogClass.Application, $"System Firmware Version: {_firmwareVersion.VersionString}");
} }
public bool InitializeContext(bool isHostMapped, public bool InitializeContext(bool isHostMapped,