mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +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
				
			
		|  | @ -101,7 +101,7 @@ struct ArchiveFormatInfo { | |||
|     u32_le number_files;       ///< The pre-defined number of files in the archive.
 | ||||
|     u8 duplicate_data;         ///< Whether the archive should duplicate the data.
 | ||||
| }; | ||||
| static_assert(std::is_pod<ArchiveFormatInfo>::value, "ArchiveFormatInfo is not POD"); | ||||
| static_assert(std::is_trivial_v<ArchiveFormatInfo>, "ArchiveFormatInfo is not POD"); | ||||
| 
 | ||||
| class ArchiveBackend : NonCopyable { | ||||
| public: | ||||
|  |  | |||
|  | @ -58,8 +58,7 @@ bool DiskFile::Close() const { | |||
| ////////////////////////////////////////////////////////////////////////////////////////////////////
 | ||||
| 
 | ||||
| DiskDirectory::DiskDirectory(const std::string& path) { | ||||
|     unsigned size = FileUtil::ScanDirectoryTree(path, directory); | ||||
|     directory.size = size; | ||||
|     directory.size = FileUtil::ScanDirectoryTree(path, directory); | ||||
|     directory.isDirectory = true; | ||||
|     children_iterator = directory.children.begin(); | ||||
| } | ||||
|  |  | |||
|  | @ -390,7 +390,7 @@ Loader::ResultStatus NCCHContainer::Load() { | |||
|                 exheader_header.arm11_system_local_caps.resource_limit_category; | ||||
| 
 | ||||
|             LOG_DEBUG(Service_FS, "Name:                        {}", | ||||
|                       exheader_header.codeset_info.name); | ||||
|                       reinterpret_cast<const char*>(exheader_header.codeset_info.name)); | ||||
|             LOG_DEBUG(Service_FS, "Program ID:                  {:016X}", ncch_header.program_id); | ||||
|             LOG_DEBUG(Service_FS, "Code compressed:             {}", is_compressed ? "yes" : "no"); | ||||
|             LOG_DEBUG(Service_FS, "Entry point:                 0x{:08X}", entry_point); | ||||
|  |  | |||
|  | @ -99,7 +99,7 @@ public: | |||
| 
 | ||||
|     template <typename ValueType> | ||||
|     std::optional<ValueType> Read() { | ||||
|         static_assert(std::is_pod_v<ValueType>); | ||||
|         static_assert(std::is_trivial_v<ValueType>); | ||||
|         ValueType val{}; | ||||
|         if (!Read(&val, sizeof(val))) | ||||
|             return std::nullopt; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue