Skip to content

Commit

Permalink
feat(Vfs): add 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 243d31c commit c3a91f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/zenkit-capi/Vfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ typedef ZkBool (*ZkVfsNodeEnumerator)(void* ctx, ZkVfsNode const* node);

ZKC_API ZkVfs* ZkVfs_new(void);
ZKC_API void ZkVfs_del(ZkVfs* slf);
ZKC_API void ZkVfs_save(ZkVfs const* slf, ZkString path, ZkGameVersion version);
ZKC_API void ZkVfs_save(ZkVfs const* slf, ZkString path, ZkGameVersion version, time_t unix_t);

ZKC_API ZkVfsNode const* ZkVfs_getRoot(ZkVfs const* slf);

Expand Down
4 changes: 2 additions & 2 deletions src/Vfs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ void ZkVfs_del(ZkVfs* slf) {
delete slf;
}

void ZkVfs_save(ZkVfs const* slf, ZkString path, ZkGameVersion version) {
void ZkVfs_save(ZkVfs const* slf, ZkString path, ZkGameVersion version, time_t unix_t) {
ZKC_TRACE_FN();
ZKC_CHECK_NULLV(slf, path);

auto wr = zenkit::Write::to(path);
slf->save(wr.get(), static_cast<zenkit::GameVersion>(version));
slf->save(wr.get(), static_cast<zenkit::GameVersion>(version), unix_t);
}

ZkVfsNode const* ZkVfs_getRoot(ZkVfs const* slf) {
Expand Down
2 changes: 1 addition & 1 deletion vendor/ZenKit

0 comments on commit c3a91f1

Please sign in to comment.