mirror of
https://github.com/Ryujinx-NX/Ryujinx.git
synced 2024-11-14 21:17:43 -07:00
Ensure service init runs after Horizon constructor (#6342)
This commit is contained in:
parent
167f50bbcd
commit
c43fb92bbf
@ -250,7 +250,6 @@ namespace Ryujinx.HLE.HOS
|
|||||||
SurfaceFlinger = new SurfaceFlinger(device);
|
SurfaceFlinger = new SurfaceFlinger(device);
|
||||||
|
|
||||||
InitializeAudioRenderer(TickSource);
|
InitializeAudioRenderer(TickSource);
|
||||||
InitializeServices();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void InitializeAudioRenderer(ITickSource tickSource)
|
private void InitializeAudioRenderer(ITickSource tickSource)
|
||||||
@ -301,7 +300,7 @@ namespace Ryujinx.HLE.HOS
|
|||||||
AudioManager.Start();
|
AudioManager.Start();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void InitializeServices()
|
public void InitializeServices()
|
||||||
{
|
{
|
||||||
SmRegistry = new SmRegistry();
|
SmRegistry = new SmRegistry();
|
||||||
SmServer = new ServerBase(KernelContext, "SmServer", () => new IUserInterface(KernelContext, SmRegistry));
|
SmServer = new ServerBase(KernelContext, "SmServer", () => new IUserInterface(KernelContext, SmRegistry));
|
||||||
|
@ -55,6 +55,7 @@ namespace Ryujinx.HLE
|
|||||||
Processes = new ProcessLoader(this);
|
Processes = new ProcessLoader(this);
|
||||||
TamperMachine = new TamperMachine();
|
TamperMachine = new TamperMachine();
|
||||||
|
|
||||||
|
System.InitializeServices();
|
||||||
System.State.SetLanguage(Configuration.SystemLanguage);
|
System.State.SetLanguage(Configuration.SystemLanguage);
|
||||||
System.State.SetRegion(Configuration.Region);
|
System.State.SetRegion(Configuration.Region);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user