Flint Engine
Modular C++20 2D game engine powered by SDL3
Loading...
Searching...
No Matches

◆ getAssetRevision()

virtual uint64_t Flint::IAssetLoader::getAssetRevision ( const std::string & path) const
pure virtual

Return an opaque token that changes when path's contents change.

Only meaningful for equality comparison against a previously returned value for the same path. Not a timestamp, not ordered, not a counter.

Zero is reserved to mean "no such asset". Implementations must return 0 for any path that is absent or unreadable, and must never return 0 for an asset that getAsset() could successfully load. A loader that cannot track changes should still return a stable nonzero value for assets it has — returning 0 marks them permanently missing and disables hot reload.

Parameters
pathAsset path to query.
Returns
Nonzero revision token, or 0 if the asset is unavailable.

Implemented in Flint::FileSystem.