From 003072f957498a11b7fdcbb56892af0c281c85b3 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Wed, 2 Apr 2025 14:42:55 -0400 Subject: [SharedCache] Misc fixes and comments --- view/sharedcache/core/SharedCacheController.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'view/sharedcache/core/SharedCacheController.cpp') diff --git a/view/sharedcache/core/SharedCacheController.cpp b/view/sharedcache/core/SharedCacheController.cpp index 5b14d7ce..2dabefb5 100644 --- a/view/sharedcache/core/SharedCacheController.cpp +++ b/view/sharedcache/core/SharedCacheController.cpp @@ -83,6 +83,11 @@ DSCRef SharedCacheController::Initialize(BinaryView& view dscView->m_regionFilter = std::regex(settings->Get("loader.dsc.regionFilter", &view)); } + // TODO: Support old shared cache metadata + // TODO: Not strictly necessary as the user has already loaded the information into the database, this would just + // TODO: prevent incidental extra work from being done when loading a region or image. + // const uint64_t oldStateCount = view.GetUIntMetadata(OLD_METADATA_KEY_COUNT); + // Check the view auto metadata for shared cache information. // This effectively restores the state of the opened database to when it was last saved. // NOTE: We store on the parent view because hilariously, the metadata is not present until after view init. -- cgit v1.3.1