diff options
| author | Brian Potchik <brian@vector35.com> | 2025-01-20 16:34:57 -0500 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2025-01-20 16:34:57 -0500 |
| commit | cbd4d7f12d54ddc4b6d3d90a8d7b49591f468a94 (patch) | |
| tree | 7f3c44e5c16688ed032a9d963bbc116f9acf5c64 /view/sharedcache/core/DSCView.cpp | |
| parent | 13e8a11adf4910c8871eb80a84f080652f76e72b (diff) | |
Allow overriding common loader settings when automatic load file parsing fails.
Diffstat (limited to 'view/sharedcache/core/DSCView.cpp')
| -rw-r--r-- | view/sharedcache/core/DSCView.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<Settings> DSCViewType::GetLoadSettingsForData(BinaryView* data) Ref<BinaryView> 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> settings = GetDefaultLoadSettingsForData(viewRef); |
