mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	changed some naming/misc cleanups
This commit is contained in:
		
							parent
							
								
									2a7d7ce55d
								
							
						
					
					
						commit
						3bd041f5b0
					
				
					 4 changed files with 22 additions and 23 deletions
				
			
		|  | @ -9,29 +9,31 @@ | |||
| 
 | ||||
| ////////////////////////////////////////////////////////////////////////////////////////////////////
 | ||||
| 
 | ||||
| typedef void (*HLEFunc)(); | ||||
| 
 | ||||
| struct HLEFunction { | ||||
| 	u32                 id; | ||||
| 	HLEFunc             func; | ||||
| 	const char*         name; | ||||
| }; | ||||
| 
 | ||||
| struct HLEModule { | ||||
| 	const char*         name; | ||||
| 	int                 num_funcs; | ||||
| 	const HLEFunction*  func_table; | ||||
| }; | ||||
| 
 | ||||
| #define PARAM(n)        Core::g_app_core->GetReg(n) | ||||
| #define RETURN(n)       Core::g_app_core->SetReg(0, n) | ||||
| 
 | ||||
| ////////////////////////////////////////////////////////////////////////////////////////////////////
 | ||||
| 
 | ||||
| namespace HLE { | ||||
| 
 | ||||
| typedef void (*Func)(); | ||||
| 
 | ||||
| struct FunctionDef { | ||||
| 	u32                 id; | ||||
| 	Func                func; | ||||
| 	std::string         name; | ||||
| }; | ||||
| 
 | ||||
| struct ModuleDef { | ||||
| 	std::string         name; | ||||
| 	int                 num_funcs; | ||||
| 	const FunctionDef*  func_table; | ||||
| }; | ||||
| 
 | ||||
| void Init(); | ||||
| 
 | ||||
| void Shutdown(); | ||||
| 
 | ||||
| void RegisterModule(const char *name, int num_functions, const HLEFunction *func_table); | ||||
| void RegisterModule(std::string name, int num_functions, const FunctionDef *func_table); | ||||
| 
 | ||||
| } // namespace
 | ||||
|  |  | |||
|  | @ -15,10 +15,10 @@ Result SVC_ConnectToPort(void* out, const char* port_name) { | |||
|     return 0; | ||||
| } | ||||
| 
 | ||||
| const HLEFunction SysCallTable[] = { | ||||
| const HLE::FunctionDef SysCall_Table[] = { | ||||
|     {0x2D, WrapI_VC<SVC_ConnectToPort>, "svcConnectToPort"}, | ||||
| }; | ||||
| 
 | ||||
| void Register_SysCall() { | ||||
|     HLE::RegisterModule("SysCallTable", ARRAY_SIZE(SysCallTable), SysCallTable); | ||||
|     HLE::RegisterModule("SysCallTable", ARRAY_SIZE(SysCall_Table), SysCall_Table); | ||||
| } | ||||
|  |  | |||
|  | @ -34,7 +34,4 @@ | |||
| //    }
 | ||||
| //};
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| void Register_SysCall(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue