mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-27 21:34:14 +08:00
(ConsoleBrowser): deserialize formats data.
This commit is contained in:
parent
4585f78074
commit
cd5304f083
@ -85,6 +85,7 @@ namespace GARbro
|
||||
return;
|
||||
}
|
||||
}
|
||||
DeserializeGameData();
|
||||
foreach (var file in VFS.GetFiles (args[argn]))
|
||||
{
|
||||
m_arc_name = file.Name;
|
||||
@ -116,6 +117,20 @@ namespace GARbro
|
||||
}
|
||||
}
|
||||
|
||||
void DeserializeGameData ()
|
||||
{
|
||||
string scheme_file = Path.Combine (FormatCatalog.Instance.DataDirectory, "Formats.dat");
|
||||
try
|
||||
{
|
||||
using (var file = File.OpenRead (scheme_file))
|
||||
FormatCatalog.Instance.DeserializeScheme (file);
|
||||
}
|
||||
catch (Exception X)
|
||||
{
|
||||
Console.Error.WriteLine ("Scheme deserialization failed: {0}", X.Message);
|
||||
}
|
||||
}
|
||||
|
||||
static void Usage ()
|
||||
{
|
||||
Console.WriteLine ("Usage: gameres [OPTIONS] ARC [ENTRIES]");
|
||||
|
Loading…
x
Reference in New Issue
Block a user