mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 21:02:39 +02:00
Fixed appletInitialize() which broke during the Service changes.
This commit is contained in:
parent
844f72fe67
commit
197b1900a1
@ -106,34 +106,34 @@ Result appletInitialize(void)
|
|||||||
|
|
||||||
// Get*Functions, for ILibraryAppletProxy this is GetLibraryAppletSelfAccessor
|
// Get*Functions, for ILibraryAppletProxy this is GetLibraryAppletSelfAccessor
|
||||||
if (R_SUCCEEDED(rc))
|
if (R_SUCCEEDED(rc))
|
||||||
rc = _appletGetSession(&g_appletSrv, &g_appletIFunctions, 20);
|
rc = _appletGetSession(&g_appletProxySession, &g_appletIFunctions, 20);
|
||||||
|
|
||||||
// TODO: Add non-application type-specific session init here.
|
// TODO: Add non-application type-specific session init here.
|
||||||
|
|
||||||
// GetLibraryAppletCreator
|
// GetLibraryAppletCreator
|
||||||
if (R_SUCCEEDED(rc))
|
if (R_SUCCEEDED(rc))
|
||||||
rc = _appletGetSession(&g_appletSrv, &g_appletILibraryAppletCreator, 11);
|
rc = _appletGetSession(&g_appletProxySession, &g_appletILibraryAppletCreator, 11);
|
||||||
// GetCommonStateGetter
|
// GetCommonStateGetter
|
||||||
if (R_SUCCEEDED(rc))
|
if (R_SUCCEEDED(rc))
|
||||||
rc = _appletGetSession(&g_appletSrv, &g_appletICommonStateGetter, 0);
|
rc = _appletGetSession(&g_appletProxySession, &g_appletICommonStateGetter, 0);
|
||||||
// GetSelfController
|
// GetSelfController
|
||||||
if (R_SUCCEEDED(rc))
|
if (R_SUCCEEDED(rc))
|
||||||
rc = _appletGetSession(&g_appletSrv, &g_appletISelfController, 1);
|
rc = _appletGetSession(&g_appletProxySession, &g_appletISelfController, 1);
|
||||||
// GetWindowController
|
// GetWindowController
|
||||||
if (R_SUCCEEDED(rc))
|
if (R_SUCCEEDED(rc))
|
||||||
rc = _appletGetSession(&g_appletSrv, &g_appletIWindowController, 2);
|
rc = _appletGetSession(&g_appletProxySession, &g_appletIWindowController, 2);
|
||||||
// Get AppletResourceUserId.
|
// Get AppletResourceUserId.
|
||||||
if (R_SUCCEEDED(rc))
|
if (R_SUCCEEDED(rc))
|
||||||
rc = _appletGetAppletResourceUserId(&g_appletResourceUserId);
|
rc = _appletGetAppletResourceUserId(&g_appletResourceUserId);
|
||||||
// GetAudioController
|
// GetAudioController
|
||||||
if (R_SUCCEEDED(rc))
|
if (R_SUCCEEDED(rc))
|
||||||
rc = _appletGetSession(&g_appletSrv, &g_appletIAudioController, 3);
|
rc = _appletGetSession(&g_appletProxySession, &g_appletIAudioController, 3);
|
||||||
// GetDisplayController
|
// GetDisplayController
|
||||||
if (R_SUCCEEDED(rc))
|
if (R_SUCCEEDED(rc))
|
||||||
rc = _appletGetSession(&g_appletSrv, &g_appletIDisplayController, 4);
|
rc = _appletGetSession(&g_appletProxySession, &g_appletIDisplayController, 4);
|
||||||
// GetDebugFunctions
|
// GetDebugFunctions
|
||||||
if (R_SUCCEEDED(rc))
|
if (R_SUCCEEDED(rc))
|
||||||
rc = _appletGetSession(&g_appletSrv, &g_appletIDebugFunctions, 1000);
|
rc = _appletGetSession(&g_appletProxySession, &g_appletIDebugFunctions, 1000);
|
||||||
|
|
||||||
if (R_SUCCEEDED(rc) && (__nx_applet_type == AppletType_Application))
|
if (R_SUCCEEDED(rc) && (__nx_applet_type == AppletType_Application))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user