Skip to content

Commit

Permalink
docs(Vfs): fixup ordering of entry and file count fields
Browse files Browse the repository at this point in the history
  • Loading branch information
lmichaelis committed Jun 9, 2024
1 parent 51540d8 commit e034c47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/engine/formats/vdf.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ a C struct like this.
struct zFILE_VDFS_Header {
char comment[256]; // (1)
char signature[16]; // (2)
uint numFiles;
uint numEntries;
uint numFiles;
uint timestamp; // (3)
uint size; // (4)
uint catalogOffset; // (5)
Expand Down
2 changes: 1 addition & 1 deletion src/Vfs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -558,8 +558,8 @@ namespace zenkit {

auto comment = r->read_string(256);
auto signature = r->read_string(16);
[[maybe_unused]] auto file_count = r->read_uint();
[[maybe_unused]] auto entry_count = r->read_uint();
[[maybe_unused]] auto file_count = r->read_uint();
auto timestamp = vfs_dos_to_unix_time(r->read_uint());
[[maybe_unused]] auto _size = r->read_uint();
auto catalog_offset = r->read_uint();
Expand Down

0 comments on commit e034c47

Please sign in to comment.