diff --git a/FEXCore/Source/Interface/Core/DiskCache.cpp b/FEXCore/Source/Interface/Core/DiskCache.cpp index 7e2c1a7a1..e9c49f8df 100644 --- a/FEXCore/Source/Interface/Core/DiskCache.cpp +++ b/FEXCore/Source/Interface/Core/DiskCache.cpp @@ -636,6 +636,9 @@ namespace DiskCache { return true; } + uint16_t GetFormatVersion() { + return FormatVersion; + } } // namespace DiskCache } // namespace FEXCore diff --git a/FEXCore/include/FEXCore/Core/DiskCache.h b/FEXCore/include/FEXCore/Core/DiskCache.h index 08468fc2a..8cda7b15d 100644 --- a/FEXCore/include/FEXCore/Core/DiskCache.h +++ b/FEXCore/include/FEXCore/Core/DiskCache.h @@ -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> ROCacheDBs; fextl::unique_ptr 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 \ No newline at end of file +} // namespace FEXCore