mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 07:09:48 -06:00
Reformat repo to clang-format 7.0 rules
This commit is contained in:
@ -210,4 +210,4 @@ std::unique_ptr<BlobReader> CreateBlobReader(const std::string& filename)
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace DiscIO
|
||||
|
@ -166,4 +166,4 @@ bool CompressFileToBlob(const std::string& infile_path, const std::string& outfi
|
||||
bool DecompressBlobToFile(const std::string& infile_path, const std::string& outfile_path,
|
||||
CompressCB callback = nullptr, void* arg = nullptr);
|
||||
|
||||
} // namespace
|
||||
} // namespace DiscIO
|
||||
|
@ -79,4 +79,4 @@ bool CISOFileReader::Read(u64 offset, u64 nbytes, u8* out_ptr)
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace DiscIO
|
||||
|
@ -57,4 +57,4 @@ private:
|
||||
MapType m_ciso_map[CISO_MAP_SIZE];
|
||||
};
|
||||
|
||||
} // namespace
|
||||
} // namespace DiscIO
|
||||
|
@ -425,4 +425,4 @@ bool IsGCZBlob(File::IOFile& file)
|
||||
return is_gcz;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace DiscIO
|
||||
|
@ -68,4 +68,4 @@ private:
|
||||
std::string m_file_name;
|
||||
};
|
||||
|
||||
} // namespace
|
||||
} // namespace DiscIO
|
||||
|
@ -826,4 +826,4 @@ static std::string ASCIIToUppercase(std::string str)
|
||||
return str;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace DiscIO
|
||||
|
@ -21,7 +21,7 @@ namespace File
|
||||
{
|
||||
struct FSTEntry;
|
||||
class IOFile;
|
||||
}
|
||||
} // namespace File
|
||||
|
||||
namespace DiscIO
|
||||
{
|
||||
@ -186,4 +186,4 @@ private:
|
||||
u64 m_data_size;
|
||||
};
|
||||
|
||||
} // namespace
|
||||
} // namespace DiscIO
|
||||
|
@ -96,7 +96,10 @@ DriveReader::DriveReader(const std::string& drive)
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
else { NOTICE_LOG(DISCIO, "Load from DVD backup failed or no disc in drive %s", drive.c_str()); }
|
||||
else
|
||||
{
|
||||
NOTICE_LOG(DISCIO, "Load from DVD backup failed or no disc in drive %s", drive.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
DriveReader::~DriveReader()
|
||||
@ -156,4 +159,4 @@ bool DriveReader::ReadMultipleAlignedBlocks(u64 block_num, u64 num_blocks, u8* o
|
||||
#endif
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace DiscIO
|
||||
|
@ -44,4 +44,4 @@ private:
|
||||
u64 m_size = 0;
|
||||
};
|
||||
|
||||
} // namespace
|
||||
} // namespace DiscIO
|
||||
|
@ -672,4 +672,4 @@ const std::string& GetCompanyFromID(const std::string& company_id)
|
||||
else
|
||||
return EMPTY_STRING;
|
||||
}
|
||||
}
|
||||
} // namespace DiscIO
|
||||
|
@ -88,4 +88,4 @@ Region GetSysMenuRegion(u16 title_version);
|
||||
std::string GetSysMenuVersionString(u16 title_version);
|
||||
|
||||
const std::string& GetCompanyFromID(const std::string& company_id);
|
||||
}
|
||||
} // namespace DiscIO
|
||||
|
@ -36,4 +36,4 @@ bool PlainFileReader::Read(u64 offset, u64 nbytes, u8* out_ptr)
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace DiscIO
|
||||
|
@ -32,4 +32,4 @@ private:
|
||||
s64 m_size;
|
||||
};
|
||||
|
||||
} // namespace
|
||||
} // namespace DiscIO
|
||||
|
@ -330,4 +330,4 @@ std::unique_ptr<FileInfo> FileSystemGCWii::FindFileInfo(u64 disc_offset) const
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace DiscIO
|
||||
|
@ -103,4 +103,4 @@ private:
|
||||
std::unique_ptr<FileInfo> FindFileInfo(const std::string& path, const FileInfo& file_info) const;
|
||||
};
|
||||
|
||||
} // namespace
|
||||
} // namespace DiscIO
|
||||
|
@ -272,4 +272,4 @@ void NANDImporter::ExportKeys(const std::string& nand_root)
|
||||
if (!file.WriteBytes(m_nand_keys.data(), NAND_KEYS_SIZE))
|
||||
PanicAlertT("Unable to write to file %s", file_path.c_str());
|
||||
}
|
||||
}
|
||||
} // namespace DiscIO
|
||||
|
@ -58,4 +58,4 @@ private:
|
||||
std::function<void()> m_update_callback;
|
||||
size_t m_nand_root_length = 0;
|
||||
};
|
||||
}
|
||||
} // namespace DiscIO
|
||||
|
@ -58,7 +58,7 @@ void Replace32(u64 offset, u64 nbytes, u8* out_ptr, u64 replace_offset, u32 repl
|
||||
for (size_t i = 0; i < sizeof(u32); ++i)
|
||||
Replace8(offset, nbytes, out_ptr, replace_offset + i, reinterpret_cast<u8*>(&replace_value)[i]);
|
||||
}
|
||||
}
|
||||
} // namespace
|
||||
|
||||
namespace DiscIO
|
||||
{
|
||||
|
@ -69,4 +69,4 @@ std::unique_ptr<Volume> CreateVolumeFromFilename(const std::string& filename)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace DiscIO
|
||||
|
@ -48,4 +48,4 @@ bool VolumeFileBlobReader::Read(u64 offset, u64 length, u8* out_ptr)
|
||||
|
||||
return m_volume.Read(m_file_info->GetOffset() + offset, length, out_ptr, m_partition);
|
||||
}
|
||||
} // namespace
|
||||
} // namespace DiscIO
|
||||
|
@ -36,4 +36,4 @@ private:
|
||||
const Partition& m_partition;
|
||||
std::unique_ptr<FileInfo> m_file_info;
|
||||
};
|
||||
} // namespace
|
||||
} // namespace DiscIO
|
||||
|
@ -287,4 +287,4 @@ VolumeGC::ConvertedGCBanner VolumeGC::ExtractBannerInformation(const GCBanner& b
|
||||
|
||||
VolumeGC::ConvertedGCBanner::ConvertedGCBanner() = default;
|
||||
VolumeGC::ConvertedGCBanner::~ConvertedGCBanner() = default;
|
||||
} // namespace
|
||||
} // namespace DiscIO
|
||||
|
@ -108,4 +108,4 @@ private:
|
||||
std::unique_ptr<BlobReader> m_reader;
|
||||
};
|
||||
|
||||
} // namespace
|
||||
} // namespace DiscIO
|
||||
|
@ -33,7 +33,7 @@ namespace IOS::ES
|
||||
{
|
||||
struct Content;
|
||||
class SignedBlobReader;
|
||||
}
|
||||
} // namespace IOS::ES
|
||||
|
||||
namespace DiscIO
|
||||
{
|
||||
|
@ -218,4 +218,4 @@ u64 VolumeWAD::GetRawSize() const
|
||||
return m_reader->GetRawSize();
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace DiscIO
|
||||
|
@ -79,4 +79,4 @@ private:
|
||||
u32 m_data_size = 0;
|
||||
};
|
||||
|
||||
} // namespace
|
||||
} // namespace DiscIO
|
||||
|
@ -98,4 +98,4 @@ private:
|
||||
mutable u8 m_last_decrypted_block_data[BLOCK_DATA_SIZE];
|
||||
};
|
||||
|
||||
} // namespace
|
||||
} // namespace DiscIO
|
||||
|
@ -180,4 +180,4 @@ std::unique_ptr<WbfsFileReader> WbfsFileReader::Create(File::IOFile file, const
|
||||
return reader;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace DiscIO
|
||||
|
@ -81,4 +81,4 @@ private:
|
||||
bool m_good;
|
||||
};
|
||||
|
||||
} // namespace
|
||||
} // namespace DiscIO
|
||||
|
@ -38,4 +38,4 @@ private:
|
||||
bool m_valid = true;
|
||||
std::string m_path;
|
||||
};
|
||||
}
|
||||
} // namespace DiscIO
|
||||
|
@ -46,4 +46,4 @@ private:
|
||||
std::vector<u8> m_data_app;
|
||||
std::vector<u8> m_footer;
|
||||
};
|
||||
}
|
||||
} // namespace DiscIO
|
||||
|
Reference in New Issue
Block a user