mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-11-03 23:28:48 +00:00 
			
		
		
		
	hle: Stub some service calls used by the home menu. (#6675)
This commit is contained in:
		
							parent
							
								
									26e3f96983
								
							
						
					
					
						commit
						662bb9ba77
					
				
					 22 changed files with 187 additions and 22 deletions
				
			
		| 
						 | 
				
			
			@ -271,6 +271,17 @@ void Module::Interface::SecureInfoGetRegion(Kernel::HLERequestContext& ctx, u16
 | 
			
		|||
    rb.Push<u8>(static_cast<u8>(cfg->GetRegionValue()));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Module::Interface::SecureInfoGetByte101(Kernel::HLERequestContext& ctx, u16 id) {
 | 
			
		||||
    IPC::RequestParser rp(ctx, id, 0, 0);
 | 
			
		||||
 | 
			
		||||
    LOG_DEBUG(Service_CFG, "(STUBBED) called");
 | 
			
		||||
 | 
			
		||||
    IPC::RequestBuilder rb = rp.MakeBuilder(2, 0);
 | 
			
		||||
    rb.Push(RESULT_SUCCESS);
 | 
			
		||||
    // According to 3dbrew this is normally 0.
 | 
			
		||||
    rb.Push<u8>(0);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Module::Interface::GenHashConsoleUnique(Kernel::HLERequestContext& ctx) {
 | 
			
		||||
    IPC::RequestParser rp(ctx, 0x03, 1, 0);
 | 
			
		||||
    const u32 app_id_salt = rp.Pop<u32>() & 0x000FFFFF;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -165,6 +165,17 @@ public:
 | 
			
		|||
         */
 | 
			
		||||
        void SecureInfoGetRegion(Kernel::HLERequestContext& ctx, u16 id);
 | 
			
		||||
 | 
			
		||||
        /**
 | 
			
		||||
         * CFG::SecureInfoGetByte101 service function
 | 
			
		||||
         *  Inputs:
 | 
			
		||||
         *      1 : None
 | 
			
		||||
         *  Outputs:
 | 
			
		||||
         *      0 : Result Header code
 | 
			
		||||
         *      1 : Result of function, 0 on success, otherwise error code
 | 
			
		||||
         *      2 : Value loaded from SecureInfo offset 0x101
 | 
			
		||||
         */
 | 
			
		||||
        void SecureInfoGetByte101(Kernel::HLERequestContext& ctx, u16 id);
 | 
			
		||||
 | 
			
		||||
        /**
 | 
			
		||||
         * CFG::GenHashConsoleUnique service function
 | 
			
		||||
         *  Inputs:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -31,7 +31,7 @@ CFG_I::CFG_I(std::shared_ptr<Module> cfg) : Module::Interface(std::move(cfg), "c
 | 
			
		|||
        {IPC::MakeHeader(0x0404, 1, 2), nullptr, "GetLocalFriendCodeSeedData"},
 | 
			
		||||
        {IPC::MakeHeader(0x0405, 0, 0), nullptr, "GetLocalFriendCodeSeed"},
 | 
			
		||||
        {IPC::MakeHeader(0x0406, 0, 0), &CFG_I::D<&CFG_I::SecureInfoGetRegion, 0x0406>, "SecureInfoGetRegion"},
 | 
			
		||||
        {IPC::MakeHeader(0x0407, 0, 0), nullptr, "SecureInfoGetByte101"},
 | 
			
		||||
        {IPC::MakeHeader(0x0407, 0, 0), &CFG_I::D<&CFG_I::SecureInfoGetByte101, 0x0407>, "SecureInfoGetByte101"},
 | 
			
		||||
        {IPC::MakeHeader(0x0408, 1, 2), nullptr, "SecureInfoGetSerialNo"},
 | 
			
		||||
        {IPC::MakeHeader(0x0409, 0, 0), nullptr, "UpdateConfigBlk00040003"},
 | 
			
		||||
        {IPC::MakeHeader(0x0801, 2, 2), &CFG_I::D<&CFG_I::GetConfigInfoBlk8, 0x0801>, "GetConfigInfoBlk8"},
 | 
			
		||||
| 
						 | 
				
			
			@ -55,7 +55,7 @@ CFG_I::CFG_I(std::shared_ptr<Module> cfg) : Module::Interface(std::move(cfg), "c
 | 
			
		|||
        {IPC::MakeHeader(0x0814, 1, 2), nullptr, "SecureInfoGetData"},
 | 
			
		||||
        {IPC::MakeHeader(0x0815, 1, 2), nullptr, "SecureInfoGetSignature"},
 | 
			
		||||
        {IPC::MakeHeader(0x0816, 0, 0), &CFG_I::D<&CFG_I::SecureInfoGetRegion, 0x0816>, "SecureInfoGetRegion"},
 | 
			
		||||
        {IPC::MakeHeader(0x0817, 0, 0), nullptr, "SecureInfoGetByte101"},
 | 
			
		||||
        {IPC::MakeHeader(0x0817, 0, 0), &CFG_I::D<&CFG_I::SecureInfoGetByte101, 0x0817>, "SecureInfoGetByte101"},
 | 
			
		||||
        {IPC::MakeHeader(0x0818, 1, 2), nullptr, "SecureInfoGetSerialNo"},
 | 
			
		||||
        // clang-format on
 | 
			
		||||
    };
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -31,7 +31,7 @@ CFG_S::CFG_S(std::shared_ptr<Module> cfg) : Module::Interface(std::move(cfg), "c
 | 
			
		|||
        {IPC::MakeHeader(0x0404, 1, 2), nullptr, "GetLocalFriendCodeSeedData"},
 | 
			
		||||
        {IPC::MakeHeader(0x0405, 0, 0), nullptr, "GetLocalFriendCodeSeed"},
 | 
			
		||||
        {IPC::MakeHeader(0x0406, 0, 0), &CFG_S::D<&CFG_S::SecureInfoGetRegion, 0x0406>, "SecureInfoGetRegion"},
 | 
			
		||||
        {IPC::MakeHeader(0x0407, 0, 0), nullptr, "SecureInfoGetByte101"},
 | 
			
		||||
        {IPC::MakeHeader(0x0407, 0, 0), &CFG_S::D<&CFG_S::SecureInfoGetByte101, 0x0407>, "SecureInfoGetByte101"},
 | 
			
		||||
        {IPC::MakeHeader(0x0408, 1, 2), nullptr, "SecureInfoGetSerialNo"},
 | 
			
		||||
        {IPC::MakeHeader(0x0409, 0, 0), nullptr, "UpdateConfigBlk00040003"},
 | 
			
		||||
        // clang-format on
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue