mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	hle: added stubbed service for ndm_u
This commit is contained in:
		
							parent
							
								
									c451ad2835
								
							
						
					
					
						commit
						55325dea4c
					
				
					 5 changed files with 74 additions and 0 deletions
				
			
		
							
								
								
									
										32
									
								
								src/core/hle/service/ndm.cpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								src/core/hle/service/ndm.cpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,32 @@ | |||
| // Copyright 2014 Citra Emulator Project
 | ||||
| // Licensed under GPLv2
 | ||||
| // Refer to the license.txt file included.
 | ||||
| 
 | ||||
| #include "common/log.h" | ||||
| 
 | ||||
| #include "core/hle/hle.h" | ||||
| #include "core/hle/service/ndm.h" | ||||
| 
 | ||||
| ////////////////////////////////////////////////////////////////////////////////////////////////////
 | ||||
| // Namespace NDM_U
 | ||||
| 
 | ||||
| namespace NDM_U { | ||||
| 
 | ||||
| const Interface::FunctionInfo FunctionTable[] = { | ||||
|     {0x00060040, NULL, "SuspendDaemons"}, | ||||
|     {0x00080040, NULL, "DisableWifiUsage"}, | ||||
|     {0x00090000, NULL, "EnableWifiUsage"}, | ||||
|     {0x00140040, NULL, "OverrideDefaultDaemons"}, | ||||
| }; | ||||
| 
 | ||||
| ////////////////////////////////////////////////////////////////////////////////////////////////////
 | ||||
| // Interface class
 | ||||
| 
 | ||||
| Interface::Interface() { | ||||
|     Register(FunctionTable, ARRAY_SIZE(FunctionTable)); | ||||
| } | ||||
| 
 | ||||
| Interface::~Interface() { | ||||
| } | ||||
| 
 | ||||
| } // namespace
 | ||||
							
								
								
									
										33
									
								
								src/core/hle/service/ndm.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								src/core/hle/service/ndm.h
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,33 @@ | |||
| // Copyright 2014 Citra Emulator Project
 | ||||
| // Licensed under GPLv2
 | ||||
| // Refer to the license.txt file included.
 | ||||
| 
 | ||||
| #pragma once | ||||
| 
 | ||||
| #include "core/hle/service/service.h" | ||||
| 
 | ||||
| ////////////////////////////////////////////////////////////////////////////////////////////////////
 | ||||
| // Namespace NDM
 | ||||
| 
 | ||||
| // No idea what this is
 | ||||
| 
 | ||||
| namespace NDM_U { | ||||
| 
 | ||||
| class Interface : public Service::Interface { | ||||
| public: | ||||
| 
 | ||||
|     Interface(); | ||||
| 
 | ||||
|     ~Interface(); | ||||
| 
 | ||||
|     /**
 | ||||
|      * Gets the string port name used by CTROS for the service | ||||
|      * @return Port name of service | ||||
|      */ | ||||
|     const char *GetPortName() const { | ||||
|         return "ndm:u"; | ||||
|     } | ||||
| 
 | ||||
| }; | ||||
| 
 | ||||
| } // namespace
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue