mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu.git
				synced 2025-05-12 00:45:25 +00:00 
			
		
		
		
	logger: Add AM service logging category.
This commit is contained in:
		
							parent
							
								
									a947f16b63
								
							
						
					
					
						commit
						65cfe09b62
					
				| @ -33,6 +33,7 @@ namespace Log { | |||||||
|     SUB(Kernel, SVC)                                                                               \ |     SUB(Kernel, SVC)                                                                               \ | ||||||
|     CLS(Service)                                                                                   \ |     CLS(Service)                                                                                   \ | ||||||
|     SUB(Service, ACC)                                                                              \ |     SUB(Service, ACC)                                                                              \ | ||||||
|  |     SUB(Service, AM)                                                                               \ | ||||||
|     SUB(Service, SM)                                                                               \ |     SUB(Service, SM)                                                                               \ | ||||||
|     SUB(Service, FS)                                                                               \ |     SUB(Service, FS)                                                                               \ | ||||||
|     SUB(Service, GSP)                                                                              \ |     SUB(Service, GSP)                                                                              \ | ||||||
|  | |||||||
| @ -50,6 +50,7 @@ enum class Class : ClassType { | |||||||
|     Service,           ///< HLE implementation of system services. Each major service
 |     Service,           ///< HLE implementation of system services. Each major service
 | ||||||
|                        ///  should have its own subclass.
 |                        ///  should have its own subclass.
 | ||||||
|     Service_ACC,       ///< The ACC (Account service) implementation
 |     Service_ACC,       ///< The ACC (Account service) implementation
 | ||||||
|  |     Service_AM,        ///< The AM (Applet manager service) implementation
 | ||||||
|     Service_SM,        ///< The SRV (Service Directory) implementation
 |     Service_SM,        ///< The SRV (Service Directory) implementation
 | ||||||
|     Service_FS,        ///< The FS (Filesystem) service implementation
 |     Service_FS,        ///< The FS (Filesystem) service implementation
 | ||||||
|     Service_GSP,       ///< The GSP (GPU control) service
 |     Service_GSP,       ///< The GSP (GPU control) service
 | ||||||
|  | |||||||
| @ -22,14 +22,14 @@ IWindowController::IWindowController() : ServiceFramework("IWindowController") { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void IWindowController::GetAppletResourceUserId(Kernel::HLERequestContext& ctx) { | void IWindowController::GetAppletResourceUserId(Kernel::HLERequestContext& ctx) { | ||||||
|     LOG_WARNING(Service, "(STUBBED) called"); |     LOG_WARNING(Service_AM, "(STUBBED) called"); | ||||||
|     IPC::ResponseBuilder rb{ctx, 4}; |     IPC::ResponseBuilder rb{ctx, 4}; | ||||||
|     rb.Push(RESULT_SUCCESS); |     rb.Push(RESULT_SUCCESS); | ||||||
|     rb.Push<u64>(0); |     rb.Push<u64>(0); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void IWindowController::AcquireForegroundRights(Kernel::HLERequestContext& ctx) { | void IWindowController::AcquireForegroundRights(Kernel::HLERequestContext& ctx) { | ||||||
|     LOG_WARNING(Service, "(STUBBED) called"); |     LOG_WARNING(Service_AM, "(STUBBED) called"); | ||||||
|     IPC::ResponseBuilder rb{ctx, 2}; |     IPC::ResponseBuilder rb{ctx, 2}; | ||||||
|     rb.Push(RESULT_SUCCESS); |     rb.Push(RESULT_SUCCESS); | ||||||
| } | } | ||||||
| @ -73,14 +73,14 @@ void ISelfController::SetFocusHandlingMode(Kernel::HLERequestContext& ctx) { | |||||||
|     IPC::ResponseBuilder rb{ctx, 2}; |     IPC::ResponseBuilder rb{ctx, 2}; | ||||||
|     rb.Push(RESULT_SUCCESS); |     rb.Push(RESULT_SUCCESS); | ||||||
| 
 | 
 | ||||||
|     LOG_WARNING(Service, "(STUBBED) called"); |     LOG_WARNING(Service_AM, "(STUBBED) called"); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void ISelfController::SetRestartMessageEnabled(Kernel::HLERequestContext& ctx) { | void ISelfController::SetRestartMessageEnabled(Kernel::HLERequestContext& ctx) { | ||||||
|     IPC::ResponseBuilder rb{ctx, 2}; |     IPC::ResponseBuilder rb{ctx, 2}; | ||||||
|     rb.Push(RESULT_SUCCESS); |     rb.Push(RESULT_SUCCESS); | ||||||
| 
 | 
 | ||||||
|     LOG_WARNING(Service, "(STUBBED) called"); |     LOG_WARNING(Service_AM, "(STUBBED) called"); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void ISelfController::SetPerformanceModeChangedNotification(Kernel::HLERequestContext& ctx) { | void ISelfController::SetPerformanceModeChangedNotification(Kernel::HLERequestContext& ctx) { | ||||||
| @ -91,7 +91,7 @@ void ISelfController::SetPerformanceModeChangedNotification(Kernel::HLERequestCo | |||||||
|     IPC::ResponseBuilder rb{ctx, 2}; |     IPC::ResponseBuilder rb{ctx, 2}; | ||||||
|     rb.Push(RESULT_SUCCESS); |     rb.Push(RESULT_SUCCESS); | ||||||
| 
 | 
 | ||||||
|     LOG_WARNING(Service, "(STUBBED) called flag=%u", static_cast<u32>(flag)); |     LOG_WARNING(Service_AM, "(STUBBED) called flag=%u", static_cast<u32>(flag)); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void ISelfController::SetOperationModeChangedNotification(Kernel::HLERequestContext& ctx) { | void ISelfController::SetOperationModeChangedNotification(Kernel::HLERequestContext& ctx) { | ||||||
| @ -102,7 +102,7 @@ void ISelfController::SetOperationModeChangedNotification(Kernel::HLERequestCont | |||||||
|     IPC::ResponseBuilder rb{ctx, 2}; |     IPC::ResponseBuilder rb{ctx, 2}; | ||||||
|     rb.Push(RESULT_SUCCESS); |     rb.Push(RESULT_SUCCESS); | ||||||
| 
 | 
 | ||||||
|     LOG_WARNING(Service, "(STUBBED) called flag=%u", static_cast<u32>(flag)); |     LOG_WARNING(Service_AM, "(STUBBED) called flag=%u", static_cast<u32>(flag)); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void ISelfController::SetOutOfFocusSuspendingEnabled(Kernel::HLERequestContext& ctx) { | void ISelfController::SetOutOfFocusSuspendingEnabled(Kernel::HLERequestContext& ctx) { | ||||||
| @ -115,21 +115,21 @@ void ISelfController::SetOutOfFocusSuspendingEnabled(Kernel::HLERequestContext& | |||||||
|     IPC::ResponseBuilder rb{ctx, 2}; |     IPC::ResponseBuilder rb{ctx, 2}; | ||||||
|     rb.Push(RESULT_SUCCESS); |     rb.Push(RESULT_SUCCESS); | ||||||
| 
 | 
 | ||||||
|     LOG_WARNING(Service, "(STUBBED) called enabled=%u", static_cast<u32>(enabled)); |     LOG_WARNING(Service_AM, "(STUBBED) called enabled=%u", static_cast<u32>(enabled)); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void ISelfController::LockExit(Kernel::HLERequestContext& ctx) { | void ISelfController::LockExit(Kernel::HLERequestContext& ctx) { | ||||||
|     IPC::ResponseBuilder rb{ctx, 2}; |     IPC::ResponseBuilder rb{ctx, 2}; | ||||||
|     rb.Push(RESULT_SUCCESS); |     rb.Push(RESULT_SUCCESS); | ||||||
| 
 | 
 | ||||||
|     LOG_WARNING(Service, "(STUBBED) called"); |     LOG_WARNING(Service_AM, "(STUBBED) called"); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void ISelfController::UnlockExit(Kernel::HLERequestContext& ctx) { | void ISelfController::UnlockExit(Kernel::HLERequestContext& ctx) { | ||||||
|     IPC::ResponseBuilder rb{ctx, 2}; |     IPC::ResponseBuilder rb{ctx, 2}; | ||||||
|     rb.Push(RESULT_SUCCESS); |     rb.Push(RESULT_SUCCESS); | ||||||
| 
 | 
 | ||||||
|     LOG_WARNING(Service, "(STUBBED) called"); |     LOG_WARNING(Service_AM, "(STUBBED) called"); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void ISelfController::CreateManagedDisplayLayer(Kernel::HLERequestContext& ctx) { | void ISelfController::CreateManagedDisplayLayer(Kernel::HLERequestContext& ctx) { | ||||||
| @ -142,7 +142,7 @@ void ISelfController::CreateManagedDisplayLayer(Kernel::HLERequestContext& ctx) | |||||||
|     rb.Push(RESULT_SUCCESS); |     rb.Push(RESULT_SUCCESS); | ||||||
|     rb.Push(layer_id); |     rb.Push(layer_id); | ||||||
| 
 | 
 | ||||||
|     LOG_WARNING(Service, "(STUBBED) called"); |     LOG_WARNING(Service_AM, "(STUBBED) called"); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| ICommonStateGetter::ICommonStateGetter() : ServiceFramework("ICommonStateGetter") { | ICommonStateGetter::ICommonStateGetter() : ServiceFramework("ICommonStateGetter") { | ||||||
| @ -165,7 +165,7 @@ void ICommonStateGetter::GetEventHandle(Kernel::HLERequestContext& ctx) { | |||||||
|     rb.Push(RESULT_SUCCESS); |     rb.Push(RESULT_SUCCESS); | ||||||
|     rb.PushCopyObjects(event); |     rb.PushCopyObjects(event); | ||||||
| 
 | 
 | ||||||
|     LOG_WARNING(Service, "(STUBBED) called"); |     LOG_WARNING(Service_AM, "(STUBBED) called"); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void ICommonStateGetter::ReceiveMessage(Kernel::HLERequestContext& ctx) { | void ICommonStateGetter::ReceiveMessage(Kernel::HLERequestContext& ctx) { | ||||||
| @ -173,7 +173,7 @@ void ICommonStateGetter::ReceiveMessage(Kernel::HLERequestContext& ctx) { | |||||||
|     rb.Push(RESULT_SUCCESS); |     rb.Push(RESULT_SUCCESS); | ||||||
|     rb.Push<u32>(15); |     rb.Push<u32>(15); | ||||||
| 
 | 
 | ||||||
|     LOG_WARNING(Service, "(STUBBED) called"); |     LOG_WARNING(Service_AM, "(STUBBED) called"); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void ICommonStateGetter::GetCurrentFocusState(Kernel::HLERequestContext& ctx) { | void ICommonStateGetter::GetCurrentFocusState(Kernel::HLERequestContext& ctx) { | ||||||
| @ -181,7 +181,7 @@ void ICommonStateGetter::GetCurrentFocusState(Kernel::HLERequestContext& ctx) { | |||||||
|     rb.Push(RESULT_SUCCESS); |     rb.Push(RESULT_SUCCESS); | ||||||
|     rb.Push(static_cast<u8>(FocusState::InFocus)); |     rb.Push(static_cast<u8>(FocusState::InFocus)); | ||||||
| 
 | 
 | ||||||
|     LOG_WARNING(Service, "(STUBBED) called"); |     LOG_WARNING(Service_AM, "(STUBBED) called"); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void ICommonStateGetter::GetOperationMode(Kernel::HLERequestContext& ctx) { | void ICommonStateGetter::GetOperationMode(Kernel::HLERequestContext& ctx) { | ||||||
| @ -189,7 +189,7 @@ void ICommonStateGetter::GetOperationMode(Kernel::HLERequestContext& ctx) { | |||||||
|     rb.Push(RESULT_SUCCESS); |     rb.Push(RESULT_SUCCESS); | ||||||
|     rb.Push(static_cast<u8>(OperationMode::Handheld)); |     rb.Push(static_cast<u8>(OperationMode::Handheld)); | ||||||
| 
 | 
 | ||||||
|     LOG_WARNING(Service, "(STUBBED) called"); |     LOG_WARNING(Service_AM, "(STUBBED) called"); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void ICommonStateGetter::GetPerformanceMode(Kernel::HLERequestContext& ctx) { | void ICommonStateGetter::GetPerformanceMode(Kernel::HLERequestContext& ctx) { | ||||||
| @ -197,7 +197,7 @@ void ICommonStateGetter::GetPerformanceMode(Kernel::HLERequestContext& ctx) { | |||||||
|     rb.Push(RESULT_SUCCESS); |     rb.Push(RESULT_SUCCESS); | ||||||
|     rb.Push(static_cast<u32>(APM::PerformanceMode::Handheld)); |     rb.Push(static_cast<u32>(APM::PerformanceMode::Handheld)); | ||||||
| 
 | 
 | ||||||
|     LOG_WARNING(Service, "(STUBBED) called"); |     LOG_WARNING(Service_AM, "(STUBBED) called"); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| ILibraryAppletCreator::ILibraryAppletCreator() : ServiceFramework("ILibraryAppletCreator") {} | ILibraryAppletCreator::ILibraryAppletCreator() : ServiceFramework("ILibraryAppletCreator") {} | ||||||
| @ -222,7 +222,7 @@ private: | |||||||
|         rb.Push(RESULT_SUCCESS); |         rb.Push(RESULT_SUCCESS); | ||||||
|         rb.Push(static_cast<u64>(buffer.size())); |         rb.Push(static_cast<u64>(buffer.size())); | ||||||
| 
 | 
 | ||||||
|         LOG_DEBUG(Service, "called"); |         LOG_DEBUG(Service_AM, "called"); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void Read(Kernel::HLERequestContext& ctx) { |     void Read(Kernel::HLERequestContext& ctx) { | ||||||
| @ -240,7 +240,7 @@ private: | |||||||
| 
 | 
 | ||||||
|         rb.Push(RESULT_SUCCESS); |         rb.Push(RESULT_SUCCESS); | ||||||
| 
 | 
 | ||||||
|         LOG_DEBUG(Service, "called"); |         LOG_DEBUG(Service_AM, "called"); | ||||||
|     } |     } | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| @ -263,7 +263,7 @@ private: | |||||||
|         rb.Push(RESULT_SUCCESS); |         rb.Push(RESULT_SUCCESS); | ||||||
|         rb.PushIpcInterface<AM::IStorageAccessor>(buffer); |         rb.PushIpcInterface<AM::IStorageAccessor>(buffer); | ||||||
| 
 | 
 | ||||||
|         LOG_DEBUG(Service, "called"); |         LOG_DEBUG(Service_AM, "called"); | ||||||
|     } |     } | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| @ -296,7 +296,7 @@ void IApplicationFunctions::PopLaunchParameter(Kernel::HLERequestContext& ctx) { | |||||||
|     rb.Push(RESULT_SUCCESS); |     rb.Push(RESULT_SUCCESS); | ||||||
|     rb.PushIpcInterface<AM::IStorage>(buffer); |     rb.PushIpcInterface<AM::IStorage>(buffer); | ||||||
| 
 | 
 | ||||||
|     LOG_DEBUG(Service, "called"); |     LOG_DEBUG(Service_AM, "called"); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void IApplicationFunctions::SetTerminateResult(Kernel::HLERequestContext& ctx) { | void IApplicationFunctions::SetTerminateResult(Kernel::HLERequestContext& ctx) { | ||||||
| @ -309,27 +309,27 @@ void IApplicationFunctions::SetTerminateResult(Kernel::HLERequestContext& ctx) { | |||||||
|     IPC::ResponseBuilder rb{ctx, 2}; |     IPC::ResponseBuilder rb{ctx, 2}; | ||||||
|     rb.Push(RESULT_SUCCESS); |     rb.Push(RESULT_SUCCESS); | ||||||
| 
 | 
 | ||||||
|     LOG_WARNING(Service, "(STUBBED) called, result=0x%08X", result); |     LOG_WARNING(Service_AM, "(STUBBED) called, result=0x%08X", result); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void IApplicationFunctions::GetDesiredLanguage(Kernel::HLERequestContext& ctx) { | void IApplicationFunctions::GetDesiredLanguage(Kernel::HLERequestContext& ctx) { | ||||||
|     IPC::ResponseBuilder rb{ctx, 4}; |     IPC::ResponseBuilder rb{ctx, 4}; | ||||||
|     rb.Push(RESULT_SUCCESS); |     rb.Push(RESULT_SUCCESS); | ||||||
|     rb.Push<u64>(SystemLanguage::English); |     rb.Push<u64>(SystemLanguage::English); | ||||||
|     LOG_WARNING(Service, "(STUBBED) called"); |     LOG_WARNING(Service_AM, "(STUBBED) called"); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void IApplicationFunctions::InitializeGamePlayRecording(Kernel::HLERequestContext& ctx) { | void IApplicationFunctions::InitializeGamePlayRecording(Kernel::HLERequestContext& ctx) { | ||||||
|     IPC::ResponseBuilder rb{ctx, 2}; |     IPC::ResponseBuilder rb{ctx, 2}; | ||||||
|     rb.Push(RESULT_SUCCESS); |     rb.Push(RESULT_SUCCESS); | ||||||
|     LOG_WARNING(Service, "(STUBBED) called"); |     LOG_WARNING(Service_AM, "(STUBBED) called"); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void IApplicationFunctions::SetGamePlayRecordingState(Kernel::HLERequestContext& ctx) { | void IApplicationFunctions::SetGamePlayRecordingState(Kernel::HLERequestContext& ctx) { | ||||||
|     IPC::ResponseBuilder rb{ctx, 2}; |     IPC::ResponseBuilder rb{ctx, 2}; | ||||||
|     rb.Push(RESULT_SUCCESS); |     rb.Push(RESULT_SUCCESS); | ||||||
| 
 | 
 | ||||||
|     LOG_WARNING(Service, "(STUBBED) called"); |     LOG_WARNING(Service_AM, "(STUBBED) called"); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void IApplicationFunctions::NotifyRunning(Kernel::HLERequestContext& ctx) { | void IApplicationFunctions::NotifyRunning(Kernel::HLERequestContext& ctx) { | ||||||
| @ -337,7 +337,7 @@ void IApplicationFunctions::NotifyRunning(Kernel::HLERequestContext& ctx) { | |||||||
|     rb.Push(RESULT_SUCCESS); |     rb.Push(RESULT_SUCCESS); | ||||||
|     rb.Push<u8>(0); // Unknown, seems to be ignored by official processes
 |     rb.Push<u8>(0); // Unknown, seems to be ignored by official processes
 | ||||||
| 
 | 
 | ||||||
|     LOG_WARNING(Service, "(STUBBED) called"); |     LOG_WARNING(Service_AM, "(STUBBED) called"); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void InstallInterfaces(SM::ServiceManager& service_manager, | void InstallInterfaces(SM::ServiceManager& service_manager, | ||||||
|  | |||||||
| @ -33,56 +33,56 @@ private: | |||||||
|         IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |         IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | ||||||
|         rb.Push(RESULT_SUCCESS); |         rb.Push(RESULT_SUCCESS); | ||||||
|         rb.PushIpcInterface<ICommonStateGetter>(); |         rb.PushIpcInterface<ICommonStateGetter>(); | ||||||
|         LOG_DEBUG(Service, "called"); |         LOG_DEBUG(Service_AM, "called"); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void GetSelfController(Kernel::HLERequestContext& ctx) { |     void GetSelfController(Kernel::HLERequestContext& ctx) { | ||||||
|         IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |         IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | ||||||
|         rb.Push(RESULT_SUCCESS); |         rb.Push(RESULT_SUCCESS); | ||||||
|         rb.PushIpcInterface<ISelfController>(nvflinger); |         rb.PushIpcInterface<ISelfController>(nvflinger); | ||||||
|         LOG_DEBUG(Service, "called"); |         LOG_DEBUG(Service_AM, "called"); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void GetWindowController(Kernel::HLERequestContext& ctx) { |     void GetWindowController(Kernel::HLERequestContext& ctx) { | ||||||
|         IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |         IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | ||||||
|         rb.Push(RESULT_SUCCESS); |         rb.Push(RESULT_SUCCESS); | ||||||
|         rb.PushIpcInterface<IWindowController>(); |         rb.PushIpcInterface<IWindowController>(); | ||||||
|         LOG_DEBUG(Service, "called"); |         LOG_DEBUG(Service_AM, "called"); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void GetAudioController(Kernel::HLERequestContext& ctx) { |     void GetAudioController(Kernel::HLERequestContext& ctx) { | ||||||
|         IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |         IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | ||||||
|         rb.Push(RESULT_SUCCESS); |         rb.Push(RESULT_SUCCESS); | ||||||
|         rb.PushIpcInterface<IAudioController>(); |         rb.PushIpcInterface<IAudioController>(); | ||||||
|         LOG_DEBUG(Service, "called"); |         LOG_DEBUG(Service_AM, "called"); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void GetDisplayController(Kernel::HLERequestContext& ctx) { |     void GetDisplayController(Kernel::HLERequestContext& ctx) { | ||||||
|         IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |         IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | ||||||
|         rb.Push(RESULT_SUCCESS); |         rb.Push(RESULT_SUCCESS); | ||||||
|         rb.PushIpcInterface<IDisplayController>(); |         rb.PushIpcInterface<IDisplayController>(); | ||||||
|         LOG_DEBUG(Service, "called"); |         LOG_DEBUG(Service_AM, "called"); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void GetDebugFunctions(Kernel::HLERequestContext& ctx) { |     void GetDebugFunctions(Kernel::HLERequestContext& ctx) { | ||||||
|         IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |         IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | ||||||
|         rb.Push(RESULT_SUCCESS); |         rb.Push(RESULT_SUCCESS); | ||||||
|         rb.PushIpcInterface<IDebugFunctions>(); |         rb.PushIpcInterface<IDebugFunctions>(); | ||||||
|         LOG_DEBUG(Service, "called"); |         LOG_DEBUG(Service_AM, "called"); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void GetLibraryAppletCreator(Kernel::HLERequestContext& ctx) { |     void GetLibraryAppletCreator(Kernel::HLERequestContext& ctx) { | ||||||
|         IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |         IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | ||||||
|         rb.Push(RESULT_SUCCESS); |         rb.Push(RESULT_SUCCESS); | ||||||
|         rb.PushIpcInterface<ILibraryAppletCreator>(); |         rb.PushIpcInterface<ILibraryAppletCreator>(); | ||||||
|         LOG_DEBUG(Service, "called"); |         LOG_DEBUG(Service_AM, "called"); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void GetApplicationFunctions(Kernel::HLERequestContext& ctx) { |     void GetApplicationFunctions(Kernel::HLERequestContext& ctx) { | ||||||
|         IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |         IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | ||||||
|         rb.Push(RESULT_SUCCESS); |         rb.Push(RESULT_SUCCESS); | ||||||
|         rb.PushIpcInterface<IApplicationFunctions>(); |         rb.PushIpcInterface<IApplicationFunctions>(); | ||||||
|         LOG_DEBUG(Service, "called"); |         LOG_DEBUG(Service_AM, "called"); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     std::shared_ptr<NVFlinger::NVFlinger> nvflinger; |     std::shared_ptr<NVFlinger::NVFlinger> nvflinger; | ||||||
| @ -92,7 +92,7 @@ void AppletAE::OpenLibraryAppletProxyOld(Kernel::HLERequestContext& ctx) { | |||||||
|     IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |     IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | ||||||
|     rb.Push(RESULT_SUCCESS); |     rb.Push(RESULT_SUCCESS); | ||||||
|     rb.PushIpcInterface<ILibraryAppletProxy>(nvflinger); |     rb.PushIpcInterface<ILibraryAppletProxy>(nvflinger); | ||||||
|     LOG_DEBUG(Service, "called"); |     LOG_DEBUG(Service_AM, "called"); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| AppletAE::AppletAE(std::shared_ptr<NVFlinger::NVFlinger> nvflinger) | AppletAE::AppletAE(std::shared_ptr<NVFlinger::NVFlinger> nvflinger) | ||||||
|  | |||||||
| @ -33,56 +33,56 @@ private: | |||||||
|         IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |         IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | ||||||
|         rb.Push(RESULT_SUCCESS); |         rb.Push(RESULT_SUCCESS); | ||||||
|         rb.PushIpcInterface<IAudioController>(); |         rb.PushIpcInterface<IAudioController>(); | ||||||
|         LOG_DEBUG(Service, "called"); |         LOG_DEBUG(Service_AM, "called"); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void GetDisplayController(Kernel::HLERequestContext& ctx) { |     void GetDisplayController(Kernel::HLERequestContext& ctx) { | ||||||
|         IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |         IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | ||||||
|         rb.Push(RESULT_SUCCESS); |         rb.Push(RESULT_SUCCESS); | ||||||
|         rb.PushIpcInterface<IDisplayController>(); |         rb.PushIpcInterface<IDisplayController>(); | ||||||
|         LOG_DEBUG(Service, "called"); |         LOG_DEBUG(Service_AM, "called"); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void GetDebugFunctions(Kernel::HLERequestContext& ctx) { |     void GetDebugFunctions(Kernel::HLERequestContext& ctx) { | ||||||
|         IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |         IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | ||||||
|         rb.Push(RESULT_SUCCESS); |         rb.Push(RESULT_SUCCESS); | ||||||
|         rb.PushIpcInterface<IDebugFunctions>(); |         rb.PushIpcInterface<IDebugFunctions>(); | ||||||
|         LOG_DEBUG(Service, "called"); |         LOG_DEBUG(Service_AM, "called"); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void GetWindowController(Kernel::HLERequestContext& ctx) { |     void GetWindowController(Kernel::HLERequestContext& ctx) { | ||||||
|         IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |         IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | ||||||
|         rb.Push(RESULT_SUCCESS); |         rb.Push(RESULT_SUCCESS); | ||||||
|         rb.PushIpcInterface<IWindowController>(); |         rb.PushIpcInterface<IWindowController>(); | ||||||
|         LOG_DEBUG(Service, "called"); |         LOG_DEBUG(Service_AM, "called"); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void GetSelfController(Kernel::HLERequestContext& ctx) { |     void GetSelfController(Kernel::HLERequestContext& ctx) { | ||||||
|         IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |         IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | ||||||
|         rb.Push(RESULT_SUCCESS); |         rb.Push(RESULT_SUCCESS); | ||||||
|         rb.PushIpcInterface<ISelfController>(nvflinger); |         rb.PushIpcInterface<ISelfController>(nvflinger); | ||||||
|         LOG_DEBUG(Service, "called"); |         LOG_DEBUG(Service_AM, "called"); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void GetCommonStateGetter(Kernel::HLERequestContext& ctx) { |     void GetCommonStateGetter(Kernel::HLERequestContext& ctx) { | ||||||
|         IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |         IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | ||||||
|         rb.Push(RESULT_SUCCESS); |         rb.Push(RESULT_SUCCESS); | ||||||
|         rb.PushIpcInterface<ICommonStateGetter>(); |         rb.PushIpcInterface<ICommonStateGetter>(); | ||||||
|         LOG_DEBUG(Service, "called"); |         LOG_DEBUG(Service_AM, "called"); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void GetLibraryAppletCreator(Kernel::HLERequestContext& ctx) { |     void GetLibraryAppletCreator(Kernel::HLERequestContext& ctx) { | ||||||
|         IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |         IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | ||||||
|         rb.Push(RESULT_SUCCESS); |         rb.Push(RESULT_SUCCESS); | ||||||
|         rb.PushIpcInterface<ILibraryAppletCreator>(); |         rb.PushIpcInterface<ILibraryAppletCreator>(); | ||||||
|         LOG_DEBUG(Service, "called"); |         LOG_DEBUG(Service_AM, "called"); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void GetApplicationFunctions(Kernel::HLERequestContext& ctx) { |     void GetApplicationFunctions(Kernel::HLERequestContext& ctx) { | ||||||
|         IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |         IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | ||||||
|         rb.Push(RESULT_SUCCESS); |         rb.Push(RESULT_SUCCESS); | ||||||
|         rb.PushIpcInterface<IApplicationFunctions>(); |         rb.PushIpcInterface<IApplicationFunctions>(); | ||||||
|         LOG_DEBUG(Service, "called"); |         LOG_DEBUG(Service_AM, "called"); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     std::shared_ptr<NVFlinger::NVFlinger> nvflinger; |     std::shared_ptr<NVFlinger::NVFlinger> nvflinger; | ||||||
| @ -92,7 +92,7 @@ void AppletOE::OpenApplicationProxy(Kernel::HLERequestContext& ctx) { | |||||||
|     IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |     IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | ||||||
|     rb.Push(RESULT_SUCCESS); |     rb.Push(RESULT_SUCCESS); | ||||||
|     rb.PushIpcInterface<IApplicationProxy>(nvflinger); |     rb.PushIpcInterface<IApplicationProxy>(nvflinger); | ||||||
|     LOG_DEBUG(Service, "called"); |     LOG_DEBUG(Service_AM, "called"); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| AppletOE::AppletOE(std::shared_ptr<NVFlinger::NVFlinger> nvflinger) | AppletOE::AppletOE(std::shared_ptr<NVFlinger::NVFlinger> nvflinger) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 bunnei
						bunnei