mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
				synced 2025-03-21 01:53:15 +00:00 
			
		
		
		
	am: Stub GetPreviousProgramIndex
- Used in Super Mario 3D All-Stars
This commit is contained in:
		
							parent
							
								
									53fc5d0190
								
							
						
					
					
						commit
						40a72e9cd5
					
				@ -1192,7 +1192,7 @@ IApplicationFunctions::IApplicationFunctions(Core::System& system_)
 | 
				
			|||||||
        {120, nullptr, "ExecuteProgram"},
 | 
					        {120, nullptr, "ExecuteProgram"},
 | 
				
			||||||
        {121, nullptr, "ClearUserChannel"},
 | 
					        {121, nullptr, "ClearUserChannel"},
 | 
				
			||||||
        {122, nullptr, "UnpopToUserChannel"},
 | 
					        {122, nullptr, "UnpopToUserChannel"},
 | 
				
			||||||
        {123, nullptr, "GetPreviousProgramIndex"},
 | 
					        {123, &IApplicationFunctions::GetPreviousProgramIndex, "GetPreviousProgramIndex"},
 | 
				
			||||||
        {124, nullptr, "EnableApplicationAllThreadDumpOnCrash"},
 | 
					        {124, nullptr, "EnableApplicationAllThreadDumpOnCrash"},
 | 
				
			||||||
        {130, &IApplicationFunctions::GetGpuErrorDetectedSystemEvent, "GetGpuErrorDetectedSystemEvent"},
 | 
					        {130, &IApplicationFunctions::GetGpuErrorDetectedSystemEvent, "GetGpuErrorDetectedSystemEvent"},
 | 
				
			||||||
        {140, &IApplicationFunctions::GetFriendInvitationStorageChannelEvent, "GetFriendInvitationStorageChannelEvent"},
 | 
					        {140, &IApplicationFunctions::GetFriendInvitationStorageChannelEvent, "GetFriendInvitationStorageChannelEvent"},
 | 
				
			||||||
@ -1554,6 +1554,14 @@ void IApplicationFunctions::QueryApplicationPlayStatisticsByUid(Kernel::HLEReque
 | 
				
			|||||||
    rb.Push<u32>(0);
 | 
					    rb.Push<u32>(0);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void IApplicationFunctions::GetPreviousProgramIndex(Kernel::HLERequestContext& ctx) {
 | 
				
			||||||
 | 
					    LOG_WARNING(Service_AM, "(STUBBED) called");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    IPC::ResponseBuilder rb{ctx, 3};
 | 
				
			||||||
 | 
					    rb.Push(RESULT_SUCCESS);
 | 
				
			||||||
 | 
					    rb.Push<s32>(previous_program_index);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void IApplicationFunctions::GetGpuErrorDetectedSystemEvent(Kernel::HLERequestContext& ctx) {
 | 
					void IApplicationFunctions::GetGpuErrorDetectedSystemEvent(Kernel::HLERequestContext& ctx) {
 | 
				
			||||||
    LOG_WARNING(Service_AM, "(STUBBED) called");
 | 
					    LOG_WARNING(Service_AM, "(STUBBED) called");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -288,11 +288,13 @@ private:
 | 
				
			|||||||
    void SetApplicationCopyrightVisibility(Kernel::HLERequestContext& ctx);
 | 
					    void SetApplicationCopyrightVisibility(Kernel::HLERequestContext& ctx);
 | 
				
			||||||
    void QueryApplicationPlayStatistics(Kernel::HLERequestContext& ctx);
 | 
					    void QueryApplicationPlayStatistics(Kernel::HLERequestContext& ctx);
 | 
				
			||||||
    void QueryApplicationPlayStatisticsByUid(Kernel::HLERequestContext& ctx);
 | 
					    void QueryApplicationPlayStatisticsByUid(Kernel::HLERequestContext& ctx);
 | 
				
			||||||
 | 
					    void GetPreviousProgramIndex(Kernel::HLERequestContext& ctx);
 | 
				
			||||||
    void GetGpuErrorDetectedSystemEvent(Kernel::HLERequestContext& ctx);
 | 
					    void GetGpuErrorDetectedSystemEvent(Kernel::HLERequestContext& ctx);
 | 
				
			||||||
    void GetFriendInvitationStorageChannelEvent(Kernel::HLERequestContext& ctx);
 | 
					    void GetFriendInvitationStorageChannelEvent(Kernel::HLERequestContext& ctx);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    bool launch_popped_application_specific = false;
 | 
					    bool launch_popped_application_specific = false;
 | 
				
			||||||
    bool launch_popped_account_preselect = false;
 | 
					    bool launch_popped_account_preselect = false;
 | 
				
			||||||
 | 
					    s32 previous_program_index{-1};
 | 
				
			||||||
    Kernel::EventPair gpu_error_detected_event;
 | 
					    Kernel::EventPair gpu_error_detected_event;
 | 
				
			||||||
    Kernel::EventPair friend_invitation_storage_channel_event;
 | 
					    Kernel::EventPair friend_invitation_storage_channel_event;
 | 
				
			||||||
    Core::System& system;
 | 
					    Core::System& system;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user