Ensure service init runs after Horizon constructor (#6342)

This commit is contained in:
gdkchan 2024-02-22 13:55:29 -03:00 committed by GitHub
parent 167f50bbcd
commit c43fb92bbf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -250,7 +250,6 @@ namespace Ryujinx.HLE.HOS
SurfaceFlinger = new SurfaceFlinger(device);
InitializeAudioRenderer(TickSource);
InitializeServices();
}
private void InitializeAudioRenderer(ITickSource tickSource)
@ -301,7 +300,7 @@ namespace Ryujinx.HLE.HOS
AudioManager.Start();
}
private void InitializeServices()
public void InitializeServices()
{
SmRegistry = new SmRegistry();
SmServer = new ServerBase(KernelContext, "SmServer", () => new IUserInterface(KernelContext, SmRegistry));

View File

@ -55,6 +55,7 @@ namespace Ryujinx.HLE
Processes = new ProcessLoader(this);
TamperMachine = new TamperMachine();
System.InitializeServices();
System.State.SetLanguage(Configuration.SystemLanguage);
System.State.SetRegion(Configuration.Region);