FEXCore: Expose DiskCache version to the frontend

With a comment about includes currently being incorrectly shared to the
frontend and needs to get resolved.
This commit is contained in:
Ryan Houdek committed 2026-08-30 14:26:43 -07:00
1 parent 51c241d1f8
commit eca6569bd3
2 files changed
+9 -2

No files matched your search

@@ -636,6 +636,9 @@ namespace DiskCache {
return true;
}
uint16_t GetFormatVersion() {
return FormatVersion;
}
} // namespace DiskCache
} // namespace FEXCore
+6 -2
View File
@@ -177,7 +177,6 @@ namespace DiskCache {
uint64_t MakeBlobKey(const uint64_t ModuleOffset);
FEXCore::Context::ContextImpl* CTX;
static const uint16_t FormatVersion = 3;
XXH128_hash_t BucketHash;
fextl::vector<fextl::unique_ptr<IndexedDB>> ROCacheDBs;
fextl::unique_ptr<IndexedDB> RWCacheDB;
@@ -196,6 +195,11 @@ namespace DiskCache {
FEX_CONFIG_OPT(RODBNames, DISKCACHERODBNAMES);
};
// TODO: This header is in global installed header path, but uses internal headers.
// Migrate this once that is fixed.
static constexpr uint16_t FormatVersion = 3;
FEX_DEFAULT_VISIBILITY uint16_t GetFormatVersion();
} // namespace DiskCache
} // namespace FEXCore
} // namespace FEXCore