mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-22 11:25:02 +00:00
clang: fixed formatting
This commit is contained in:
parent
516a3e7104
commit
8f7b3c2e8c
4 changed files with 16 additions and 17 deletions
|
@ -27,7 +27,7 @@ bool PlaygoFile::LoadChunks(const Common::FS::IOFile& file) {
|
|||
|
||||
if (ret) {
|
||||
chunks.resize(playgoHeader.chunk_count);
|
||||
|
||||
|
||||
auto chunk_attrs =
|
||||
reinterpret_cast<playgo_chunk_attr_entry_t*>(&chunk_attrs_data[0]);
|
||||
auto chunk_mchunks = reinterpret_cast<u16*>(&chunk_mchunks_data[0]);
|
||||
|
@ -61,7 +61,7 @@ bool PlaygoFile::LoadChunks(const Common::FS::IOFile& file) {
|
|||
}
|
||||
|
||||
bool PlaygoFile::load_chunk_data(const Common::FS::IOFile& file, const chunk_t& chunk,
|
||||
std::string& data) {
|
||||
std::string& data) {
|
||||
if (file.IsOpen()) {
|
||||
if (file.Seek(chunk.offset)) {
|
||||
data.resize(chunk.length);
|
||||
|
@ -70,6 +70,6 @@ bool PlaygoFile::load_chunk_data(const Common::FS::IOFile& file, const chunk_t&
|
|||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
|
@ -36,8 +36,8 @@ struct PlaygoHeader {
|
|||
|
||||
chunk_t chunk_attrs; // [0;32000]
|
||||
chunk_t chunk_mchunks;
|
||||
chunk_t chunk_labels; // [0;16000]
|
||||
chunk_t mchunk_attrs; // [0;12800]
|
||||
chunk_t chunk_labels; // [0;16000]
|
||||
chunk_t mchunk_attrs; // [0;12800]
|
||||
chunk_t scenario_attrs; // [0;1024]
|
||||
chunk_t scenario_chunks;
|
||||
chunk_t scenario_labels;
|
||||
|
@ -67,7 +67,7 @@ struct playgo_chunk_attr_entry_t {
|
|||
u16 mchunk_count;
|
||||
u64 language_mask;
|
||||
u32 mchunks_offset; //<-chunk_mchunks
|
||||
u32 label_offset; //<-chunk_labels
|
||||
u32 label_offset; //<-chunk_labels
|
||||
} __attribute__((packed));
|
||||
|
||||
struct playgo_chunk_loc_t {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue