mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
				synced 2025-03-21 01:53:15 +00:00 
			
		
		
		
	append SetAppCpuTimeLimit and GetAppCpuTimeLimit to APT:A
This commit is contained in:
		
							parent
							
								
									af9a8258b9
								
							
						
					
					
						commit
						857bf9cd09
					
				@ -351,14 +351,14 @@ void PreloadLibraryApplet(Service::Interface* self);
 | 
			
		||||
void StartLibraryApplet(Service::Interface* self);
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
* APT::GetStartupArgument service function
 | 
			
		||||
*  Inputs:
 | 
			
		||||
*      1 : Parameter Size (capped to 0x300)
 | 
			
		||||
*      2 : StartupArgumentType
 | 
			
		||||
*  Outputs:
 | 
			
		||||
*      0 : Return header
 | 
			
		||||
*      1 : u8, Exists (0 = does not exist, 1 = exists)
 | 
			
		||||
*/
 | 
			
		||||
 * APT::GetStartupArgument service function
 | 
			
		||||
 *  Inputs:
 | 
			
		||||
 *      1 : Parameter Size (capped to 0x300)
 | 
			
		||||
 *      2 : StartupArgumentType
 | 
			
		||||
 *  Outputs:
 | 
			
		||||
 *      0 : Return header
 | 
			
		||||
 *      1 : u8, Exists (0 = does not exist, 1 = exists)
 | 
			
		||||
 */
 | 
			
		||||
void GetStartupArgument(Service::Interface* self);
 | 
			
		||||
 | 
			
		||||
/// Initialize the APT service
 | 
			
		||||
 | 
			
		||||
@ -13,9 +13,10 @@ const Interface::FunctionInfo FunctionTable[] = {
 | 
			
		||||
    {0x00020080, Initialize,                   "Initialize?"},
 | 
			
		||||
    {0x00030040, Enable,                       "Enable?"},
 | 
			
		||||
    {0x00040040, nullptr,                      "Finalize?"},
 | 
			
		||||
    {0x00050040, nullptr,                      "GetAppletManInfo?"},
 | 
			
		||||
    {0x00050040, GetAppletManInfo,             "GetAppletManInfo"},
 | 
			
		||||
    {0x00060040, GetAppletInfo,                "GetAppletInfo"},
 | 
			
		||||
    {0x00090040, IsRegistered,                 "IsRegistered"},
 | 
			
		||||
    {0x000B0040, InquireNotification,          "InquireNotification"},
 | 
			
		||||
    {0x000C0104, SendParameter,                "SendParameter"},
 | 
			
		||||
    {0x000D0080, ReceiveParameter,             "ReceiveParameter"},
 | 
			
		||||
    {0x000E0080, GlanceParameter,              "GlanceParameter"},
 | 
			
		||||
@ -28,6 +29,8 @@ const Interface::FunctionInfo FunctionTable[] = {
 | 
			
		||||
    {0x00430040, NotifyToWait,                 "NotifyToWait?"},
 | 
			
		||||
    {0x00440000, GetSharedFont,                "GetSharedFont?"},
 | 
			
		||||
    {0x004B00C2, AppletUtility,                "AppletUtility?"},
 | 
			
		||||
    {0x004F0080, SetAppCpuTimeLimit,           "SetAppCpuTimeLimit"},
 | 
			
		||||
    {0x00500040, GetAppCpuTimeLimit,           "GetAppCpuTimeLimit"},
 | 
			
		||||
    {0x00510080, GetStartupArgument,           "GetStartupArgument"},
 | 
			
		||||
    {0x00550040, nullptr,                      "WriteInputToNsState?"},
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
@ -13,8 +13,8 @@ const Interface::FunctionInfo FunctionTable[] = {
 | 
			
		||||
    {0x00020080, Initialize,            "Initialize"},
 | 
			
		||||
    {0x00030040, Enable,                "Enable"},
 | 
			
		||||
    {0x00040040, nullptr,               "Finalize"},
 | 
			
		||||
    {0x00050040, nullptr,               "GetAppletManInfo"},
 | 
			
		||||
    {0x00060040, nullptr,               "GetAppletInfo"},
 | 
			
		||||
    {0x00050040, GetAppletManInfo,      "GetAppletManInfo"},
 | 
			
		||||
    {0x00060040, GetAppletInfo,         "GetAppletInfo"},
 | 
			
		||||
    {0x00070000, nullptr,               "GetLastSignaledAppletId"},
 | 
			
		||||
    {0x00080000, nullptr,               "CountRegisteredApplet"},
 | 
			
		||||
    {0x00090040, nullptr,               "IsRegistered"},
 | 
			
		||||
@ -87,8 +87,8 @@ const Interface::FunctionInfo FunctionTable[] = {
 | 
			
		||||
    {0x004C0000, nullptr,               "SetFatalErrDispMode"},
 | 
			
		||||
    {0x004D0080, nullptr,               "GetAppletProgramInfo"},
 | 
			
		||||
    {0x004E0000, nullptr,               "HardwareResetAsync"},
 | 
			
		||||
    {0x004F0080, nullptr,               "SetApplicationCpuTimeLimit"},
 | 
			
		||||
    {0x00500040, nullptr,               "GetApplicationCpuTimeLimit"},
 | 
			
		||||
    {0x004F0080, SetAppCpuTimeLimit,    "SetAppCpuTimeLimit"},
 | 
			
		||||
    {0x00500040, GetAppCpuTimeLimit,    "GetAppCpuTimeLimit"},
 | 
			
		||||
    {0x00510080, GetStartupArgument,    "GetStartupArgument"},
 | 
			
		||||
    {0x00520104, nullptr,               "Wrap1"},
 | 
			
		||||
    {0x00530104, nullptr,               "Unwrap1"},
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user