service/mnpp: Stub mnpp_app
Used in Super Nintendo Entertainment System™ - Nintendo Switch Online
This commit is contained in:
		
							
								
								
									
										45
									
								
								src/core/hle/service/mnpp/mnpp_app.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										45
									
								
								src/core/hle/service/mnpp/mnpp_app.cpp
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,45 @@ | ||||
| // Copyright 2022 yuzu emulator team | ||||
| // Licensed under GPLv2 or any later version | ||||
| // Refer to the license.txt file included. | ||||
|  | ||||
| #include "common/logging/log.h" | ||||
| #include "core/hle/ipc_helpers.h" | ||||
| #include "core/hle/service/mnpp/mnpp_app.h" | ||||
| #include "core/hle/service/sm/sm.h" | ||||
|  | ||||
| namespace Service::MNPP { | ||||
|  | ||||
| class MNPP_APP final : public ServiceFramework<MNPP_APP> { | ||||
| public: | ||||
|     explicit MNPP_APP(Core::System& system_) : ServiceFramework{system_, "mnpp:app"} { | ||||
|         // clang-format off | ||||
|         static const FunctionInfo functions[] = { | ||||
|             {0, &MNPP_APP::Unknown0, "unknown0"}, | ||||
|             {1, &MNPP_APP::Unknown1, "unknown1"}, | ||||
|         }; | ||||
|         // clang-format on | ||||
|  | ||||
|         RegisterHandlers(functions); | ||||
|     } | ||||
|  | ||||
| private: | ||||
|     void Unknown0(Kernel::HLERequestContext& ctx) { | ||||
|         LOG_WARNING(Service_MNPP, "(STUBBED) called"); | ||||
|  | ||||
|         IPC::ResponseBuilder rb{ctx, 2}; | ||||
|         rb.Push(ResultSuccess); | ||||
|     } | ||||
|  | ||||
|     void Unknown1(Kernel::HLERequestContext& ctx) { | ||||
|         LOG_WARNING(Service_MNPP, "(STUBBED) called"); | ||||
|  | ||||
|         IPC::ResponseBuilder rb{ctx, 2}; | ||||
|         rb.Push(ResultSuccess); | ||||
|     } | ||||
| }; | ||||
|  | ||||
| void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system) { | ||||
|     std::make_shared<MNPP_APP>(system)->InstallAsService(service_manager); | ||||
| } | ||||
|  | ||||
| } // namespace Service::MNPP | ||||
							
								
								
									
										20
									
								
								src/core/hle/service/mnpp/mnpp_app.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								src/core/hle/service/mnpp/mnpp_app.h
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
| // Copyright 2022 yuzu emulator team | ||||
| // Licensed under GPLv2 or any later version | ||||
| // Refer to the license.txt file included. | ||||
|  | ||||
| #pragma once | ||||
|  | ||||
| namespace Core { | ||||
| class System; | ||||
| } | ||||
|  | ||||
| namespace Service::SM { | ||||
| class ServiceManager; | ||||
| } | ||||
|  | ||||
| namespace Service::MNPP { | ||||
|  | ||||
| /// Registers all MNPP services with the specified service manager. | ||||
| void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system); | ||||
|  | ||||
| } // namespace Service::MNPP | ||||
| @@ -39,6 +39,7 @@ | ||||
| #include "core/hle/service/mig/mig.h" | ||||
| #include "core/hle/service/mii/mii.h" | ||||
| #include "core/hle/service/mm/mm_u.h" | ||||
| #include "core/hle/service/mnpp/mnpp_app.h" | ||||
| #include "core/hle/service/ncm/ncm.h" | ||||
| #include "core/hle/service/nfc/nfc.h" | ||||
| #include "core/hle/service/nfp/nfp.h" | ||||
| @@ -265,6 +266,7 @@ Services::Services(std::shared_ptr<SM::ServiceManager>& sm, Core::System& system | ||||
|     Migration::InstallInterfaces(*sm, system); | ||||
|     Mii::InstallInterfaces(*sm, system); | ||||
|     MM::InstallInterfaces(*sm, system); | ||||
|     MNPP::InstallInterfaces(*sm, system); | ||||
|     NCM::InstallInterfaces(*sm, system); | ||||
|     NFC::InstallInterfaces(*sm, system); | ||||
|     NFP::InstallInterfaces(*sm, system); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Narr the Reg
					Narr the Reg