summaryrefslogtreecommitdiff
path: root/view/sharedcache/core/SharedCacheView.cpp
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-04-02 05:35:19 -0400
committerMason Reed <mason@vector35.com>2025-04-02 05:36:54 -0400
commitbc4ad889f0edc54f0f6e073e3f5a474d8cec55e3 (patch)
tree1eaa7be6e8f53ca7b09f089a568ee2ddc42581ac /view/sharedcache/core/SharedCacheView.cpp
parentcfb8215d6aa0703ad0d6c3046431536b4e37d810 (diff)
[SharedCache] Consistent logger naming and misc changes
Diffstat (limited to 'view/sharedcache/core/SharedCacheView.cpp')
-rw-r--r--view/sharedcache/core/SharedCacheView.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/view/sharedcache/core/SharedCacheView.cpp b/view/sharedcache/core/SharedCacheView.cpp
index f27f7c14..0d9b0e70 100644
--- a/view/sharedcache/core/SharedCacheView.cpp
+++ b/view/sharedcache/core/SharedCacheView.cpp
@@ -169,7 +169,7 @@ bool SharedCacheView::Init()
std::string os;
std::string arch;
- auto logger = new Logger("SharedCacheView", GetFile()->GetSessionId());
+ auto logger = new Logger("SharedCache.View", GetFile()->GetSessionId());
uint32_t platform;
GetParentView()->Read(&platform, 0xd8, 4);
@@ -794,6 +794,7 @@ bool SharedCacheView::Init()
// TODO: Prompt the user to select the primary cache file? We can still recover from here.
// Oh no, we failed to process the cache, this likely means the primary on-disk file was not able to be found.
logger->LogError("Failed to process cache, likely missing cache files.");
+ // TODO: Returning false here does not prevent the file from being opened.
// NOTE: An interaction handler headlessly could select yes to this, however for the purposes of this we will just let them continue by defualt.
if (IsUIEnabled() && ShowMessageBox("Continue opening", "This shared cache file was unable to be processed, would you like to open without shared cache information?", YesNoButtonSet, QuestionIcon) != YesButton)
return false;