From 6e2adb4134969898cb9018b565fe57499e0e0922 Mon Sep 17 00:00:00 2001 From: chitaotao <1139954766@qq.com> Date: Sun, 25 Jul 2021 19:00:43 +0800 Subject: [PATCH] Make console version buildable --- Console/ConsoleBrowser.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Console/ConsoleBrowser.cs b/Console/ConsoleBrowser.cs index 552b7503..a9556571 100644 --- a/Console/ConsoleBrowser.cs +++ b/Console/ConsoleBrowser.cs @@ -67,6 +67,12 @@ namespace GARbro */ } + ImageFormat FindFormat(string format) + { + var range = FormatCatalog.Instance.LookupExtension(format); + return range.FirstOrDefault(); + } + void Run (string[] args) { int argn = 0; @@ -131,7 +137,7 @@ namespace GARbro Console.Error.WriteLine ("{0}: unknown format", m_arc_name); continue; } - var arc = (ArchiveFileSystem)VFS.Top; + var arc = ((ArchiveFileSystem)VFS.Top).Source; if (args.Length > argn+1) { for (int i = argn+1; i < args.Length; ++i)