mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	Dummy implementation dlp:SRVR Service.
This commit is contained in:
		
							parent
							
								
									b25605e20f
								
							
						
					
					
						commit
						bbdfbe44e6
					
				
					 6 changed files with 65 additions and 0 deletions
				
			
		|  | @ -48,6 +48,7 @@ namespace Log { | ||||||
|         SUB(Service, CAM) \ |         SUB(Service, CAM) \ | ||||||
|         SUB(Service, CFG) \ |         SUB(Service, CFG) \ | ||||||
|         SUB(Service, DSP) \ |         SUB(Service, DSP) \ | ||||||
|  |         SUB(Service, DLP) \ | ||||||
|         SUB(Service, HID) \ |         SUB(Service, HID) \ | ||||||
|         SUB(Service, SOC) \ |         SUB(Service, SOC) \ | ||||||
|         SUB(Service, IR) \ |         SUB(Service, IR) \ | ||||||
|  |  | ||||||
|  | @ -63,6 +63,7 @@ enum class Class : ClassType { | ||||||
|     Service_CAM,                ///< The CAM (Camera) service
 |     Service_CAM,                ///< The CAM (Camera) service
 | ||||||
|     Service_CFG,                ///< The CFG (Configuration) service
 |     Service_CFG,                ///< The CFG (Configuration) service
 | ||||||
|     Service_DSP,                ///< The DSP (DSP control) service
 |     Service_DSP,                ///< The DSP (DSP control) service
 | ||||||
|  |     Service_DLP,                ///< The DLP (Download Play) service
 | ||||||
|     Service_HID,                ///< The HID (Human interface device) service
 |     Service_HID,                ///< The HID (Human interface device) service
 | ||||||
|     Service_SOC,                ///< The SOC (Socket) service
 |     Service_SOC,                ///< The SOC (Socket) service
 | ||||||
|     Service_IR,                 ///< The IR service
 |     Service_IR,                 ///< The IR service
 | ||||||
|  |  | ||||||
|  | @ -68,6 +68,7 @@ set(SRCS | ||||||
|             hle/service/cfg/cfg_s.cpp |             hle/service/cfg/cfg_s.cpp | ||||||
|             hle/service/cfg/cfg_u.cpp |             hle/service/cfg/cfg_u.cpp | ||||||
|             hle/service/csnd_snd.cpp |             hle/service/csnd_snd.cpp | ||||||
|  |             hle/service/dlp_srvr.cpp | ||||||
|             hle/service/dsp_dsp.cpp |             hle/service/dsp_dsp.cpp | ||||||
|             hle/service/err_f.cpp |             hle/service/err_f.cpp | ||||||
|             hle/service/frd/frd.cpp |             hle/service/frd/frd.cpp | ||||||
|  | @ -200,6 +201,7 @@ set(HEADERS | ||||||
|             hle/service/cfg/cfg_s.h |             hle/service/cfg/cfg_s.h | ||||||
|             hle/service/cfg/cfg_u.h |             hle/service/cfg/cfg_u.h | ||||||
|             hle/service/csnd_snd.h |             hle/service/csnd_snd.h | ||||||
|  |             hle/service/dlp_srvr.h | ||||||
|             hle/service/dsp_dsp.h |             hle/service/dsp_dsp.h | ||||||
|             hle/service/err_f.h |             hle/service/err_f.h | ||||||
|             hle/service/frd/frd.h |             hle/service/frd/frd.h | ||||||
|  |  | ||||||
							
								
								
									
										36
									
								
								src/core/hle/service/dlp_srvr.cpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								src/core/hle/service/dlp_srvr.cpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,36 @@ | ||||||
|  | // Copyright 2016 Citra Emulator Project
 | ||||||
|  | // Licensed under GPLv2 or any later version
 | ||||||
|  | // Refer to the license.txt file included.
 | ||||||
|  | 
 | ||||||
|  | #include "common/logging/log.h" | ||||||
|  | #include "core/hle/hle.h" | ||||||
|  | #include "core/hle/service/dlp_srvr.h" | ||||||
|  | 
 | ||||||
|  | ////////////////////////////////////////////////////////////////////////////////////////////////////
 | ||||||
|  | // Namespace DLP_SRVR
 | ||||||
|  | 
 | ||||||
|  | namespace DLP_SRVR { | ||||||
|  | 
 | ||||||
|  | static void unk_0x000E0040(Service::Interface* self) { | ||||||
|  |     u32* cmd_buff = Kernel::GetCommandBuffer(); | ||||||
|  | 
 | ||||||
|  |     cmd_buff[1] = RESULT_SUCCESS.raw; | ||||||
|  |     cmd_buff[2] = 0; | ||||||
|  | 
 | ||||||
|  |     LOG_WARNING(Service_DLP, "(STUBBED) called"); | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | const Interface::FunctionInfo FunctionTable[] = { | ||||||
|  |     {0x00010183, nullptr,           "Initialize"}, | ||||||
|  |     {0x00020000, nullptr,           "Finalize"}, | ||||||
|  |     {0x000E0040, unk_0x000E0040,    "unk_0x000E0040"}, | ||||||
|  | }; | ||||||
|  | 
 | ||||||
|  | ////////////////////////////////////////////////////////////////////////////////////////////////////
 | ||||||
|  | // Interface class
 | ||||||
|  | 
 | ||||||
|  | Interface::Interface() { | ||||||
|  |     Register(FunctionTable); | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | } // namespace
 | ||||||
							
								
								
									
										23
									
								
								src/core/hle/service/dlp_srvr.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								src/core/hle/service/dlp_srvr.h
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,23 @@ | ||||||
|  | // Copyright 2016 Citra Emulator Project
 | ||||||
|  | // Licensed under GPLv2 or any later version
 | ||||||
|  | // Refer to the license.txt file included.
 | ||||||
|  | 
 | ||||||
|  | #pragma once | ||||||
|  | 
 | ||||||
|  | #include "core/hle/service/service.h" | ||||||
|  | 
 | ||||||
|  | ////////////////////////////////////////////////////////////////////////////////////////////////////
 | ||||||
|  | // Namespace DLP_SRVR
 | ||||||
|  | 
 | ||||||
|  | namespace DLP_SRVR { | ||||||
|  | 
 | ||||||
|  | class Interface : public Service::Interface { | ||||||
|  | public: | ||||||
|  |     Interface(); | ||||||
|  | 
 | ||||||
|  |     std::string GetPortName() const override { | ||||||
|  |         return "dlp:SRVR"; | ||||||
|  |     } | ||||||
|  | }; | ||||||
|  | 
 | ||||||
|  | } // namespace
 | ||||||
|  | @ -9,6 +9,7 @@ | ||||||
| #include "core/hle/service/ac_u.h" | #include "core/hle/service/ac_u.h" | ||||||
| #include "core/hle/service/act_u.h" | #include "core/hle/service/act_u.h" | ||||||
| #include "core/hle/service/csnd_snd.h" | #include "core/hle/service/csnd_snd.h" | ||||||
|  | #include "core/hle/service/dlp_srvr.h" | ||||||
| #include "core/hle/service/dsp_dsp.h" | #include "core/hle/service/dsp_dsp.h" | ||||||
| #include "core/hle/service/err_f.h" | #include "core/hle/service/err_f.h" | ||||||
| #include "core/hle/service/gsp_gpu.h" | #include "core/hle/service/gsp_gpu.h" | ||||||
|  | @ -121,6 +122,7 @@ void Init() { | ||||||
|     AddService(new AC_U::Interface); |     AddService(new AC_U::Interface); | ||||||
|     AddService(new ACT_U::Interface); |     AddService(new ACT_U::Interface); | ||||||
|     AddService(new CSND_SND::Interface); |     AddService(new CSND_SND::Interface); | ||||||
|  |     AddService(new DLP_SRVR::Interface); | ||||||
|     AddService(new DSP_DSP::Interface); |     AddService(new DSP_DSP::Interface); | ||||||
|     AddService(new GSP_GPU::Interface); |     AddService(new GSP_GPU::Interface); | ||||||
|     AddService(new GSP_LCD::Interface); |     AddService(new GSP_LCD::Interface); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue