Skip to content

Commit

Permalink
fix(Vfs): allow setting Vfs save date*
Browse files Browse the repository at this point in the history
  • Loading branch information
lmichaelis committed Dec 6, 2024
1 parent afe886a commit 2eca0a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Vfs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ namespace zenkit {
w->write_string(version == GameVersion::GOTHIC_1 ? VFS_DISK_SIGNATURE_G1 : VFS_DISK_SIGNATURE_G2);
w->write_uint(index);
w->write_uint(files);
w->write_uint(unix_t == 0 ? vfs_unix_to_dos_time(time(nullptr)) : vfs_unix_to_dos_time(time(&unix_t)));
w->write_uint(unix_t == 0 ? vfs_unix_to_dos_time(time(nullptr)) : vfs_unix_to_dos_time(unix_t));
w->write_uint(off + catalog.size());
w->write_uint(header_size);
w->write_uint(80);
Expand Down

0 comments on commit 2eca0a1

Please sign in to comment.