From cbd4d7f12d54ddc4b6d3d90a8d7b49591f468a94 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Mon, 20 Jan 2025 16:34:57 -0500 Subject: Allow overriding common loader settings when automatic load file parsing fails. --- view/sharedcache/core/DSCView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'view/sharedcache/core/DSCView.cpp') diff --git a/view/sharedcache/core/DSCView.cpp b/view/sharedcache/core/DSCView.cpp index 1ef6198b..459a37bc 100644 --- a/view/sharedcache/core/DSCView.cpp +++ b/view/sharedcache/core/DSCView.cpp @@ -769,8 +769,8 @@ Ref DSCViewType::GetLoadSettingsForData(BinaryView* data) Ref viewRef = Parse(data); if (!viewRef || !viewRef->Init()) { - LogError("View type '%s' could not be created", GetName().c_str()); - return nullptr; + LogWarn("Failed to initialize view of type '%s'. Generating default load settings.", GetName().c_str()); + viewRef = data; } Ref settings = GetDefaultLoadSettingsForData(viewRef); -- cgit v1.3.1