mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-11-03 23:28:48 +00:00 
			
		
		
		
	Upgrade codebase to C++ 20 + fix warnings + update submodules (#6115)
This commit is contained in:
		
							parent
							
								
									90b418fd1a
								
							
						
					
					
						commit
						cbd5d1c15c
					
				
					 67 changed files with 6837 additions and 7475 deletions
				
			
		| 
						 | 
				
			
			@ -262,8 +262,8 @@ void Module::APTInterface::GetSharedFont(Kernel::HLERequestContext& ctx) {
 | 
			
		|||
    // kernel version and an applet with new kernel version run at the same time, and they both use
 | 
			
		||||
    // shared font, different linear heap region would have required shared font to relocate
 | 
			
		||||
    // according to two different addresses at the same time, which is impossible.
 | 
			
		||||
    VAddr target_address =
 | 
			
		||||
        apt->shared_font_mem->GetLinearHeapPhysicalOffset() + Memory::LINEAR_HEAP_VADDR;
 | 
			
		||||
    VAddr target_address = static_cast<VAddr>(apt->shared_font_mem->GetLinearHeapPhysicalOffset()) +
 | 
			
		||||
                           Memory::LINEAR_HEAP_VADDR;
 | 
			
		||||
    if (!apt->shared_font_relocated) {
 | 
			
		||||
        BCFNT::RelocateSharedFont(apt->shared_font_mem, target_address);
 | 
			
		||||
        apt->shared_font_relocated = true;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -150,15 +150,15 @@ void ServiceFrameworkBase::ReportUnimplementedFunction(u32* cmd_buf, const Funct
 | 
			
		|||
    int num_params = header.normal_params_size + header.translate_params_size;
 | 
			
		||||
    std::string function_name = info == nullptr ? fmt::format("{:#08x}", cmd_buf[0]) : info->name;
 | 
			
		||||
 | 
			
		||||
    fmt::memory_buffer buf;
 | 
			
		||||
    fmt::format_to(buf, "function '{}': port='{}' cmd_buf={{[0]={:#x}", function_name, service_name,
 | 
			
		||||
                   cmd_buf[0]);
 | 
			
		||||
    std::string result = fmt::format("function '{}': port='{}' cmd_buf={{[0]={:#x}", function_name,
 | 
			
		||||
                                     service_name, cmd_buf[0]);
 | 
			
		||||
    for (int i = 1; i <= num_params; ++i) {
 | 
			
		||||
        fmt::format_to(buf, ", [{}]={:#x}", i, cmd_buf[i]);
 | 
			
		||||
        result += fmt::format(", [{}]={:#x}", i, cmd_buf[i]);
 | 
			
		||||
    }
 | 
			
		||||
    buf.push_back('}');
 | 
			
		||||
 | 
			
		||||
    LOG_ERROR(Service, "unknown / unimplemented {}", fmt::to_string(buf));
 | 
			
		||||
    result.push_back('}');
 | 
			
		||||
 | 
			
		||||
    LOG_ERROR(Service, "unknown / unimplemented {}", result);
 | 
			
		||||
    // TODO(bunnei): Hack - ignore error
 | 
			
		||||
    header.normal_params_size.Assign(1);
 | 
			
		||||
    header.translate_params_size.Assign(0);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue