summaryrefslogtreecommitdiff
path: root/view/sharedcache/core/SharedCache.h
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-02-19 23:17:55 -0500
committerMason Reed <mason@vector35.com>2025-04-02 05:36:54 -0400
commitad337df11a3939dea833fc39d7ee555a427b9d09 (patch)
treef393f670f428eb6f2f621eeb3dc630caca62fdaf /view/sharedcache/core/SharedCache.h
parent0d228d32f6087ea95d5de5235dd25aa6eeb7f406 (diff)
[SharedCache] Warn when loading BNDB with different shared cache metadata version
This does not actually give the user control to exit early, that looks to need core changes.
Diffstat (limited to 'view/sharedcache/core/SharedCache.h')
-rw-r--r--view/sharedcache/core/SharedCache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/view/sharedcache/core/SharedCache.h b/view/sharedcache/core/SharedCache.h
index f6a1e7a8..c78ad554 100644
--- a/view/sharedcache/core/SharedCache.h
+++ b/view/sharedcache/core/SharedCache.h
@@ -668,6 +668,7 @@ private:
public:
static std::optional<SharedCacheMetadata> LoadFromView(BinaryView*);
static bool ViewHasMetadata(BinaryView*);
+ static std::optional<unsigned int> ViewMetadataVersion(BinaryView*);
const std::unordered_map<uint64_t, std::shared_ptr<std::unordered_map<uint64_t, Ref<Symbol>>>>& ExportInfos() const;
std::string InstallNameForImageBaseAddress(uint64_t baseAddress) const;