mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(ConsoleBrowser): deserialize formats data.
This commit is contained in:
@@ -85,6 +85,7 @@ namespace GARbro
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
DeserializeGameData();
|
||||||
foreach (var file in VFS.GetFiles (args[argn]))
|
foreach (var file in VFS.GetFiles (args[argn]))
|
||||||
{
|
{
|
||||||
m_arc_name = file.Name;
|
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 ()
|
static void Usage ()
|
||||||
{
|
{
|
||||||
Console.WriteLine ("Usage: gameres [OPTIONS] ARC [ENTRIES]");
|
Console.WriteLine ("Usage: gameres [OPTIONS] ARC [ENTRIES]");
|
||||||
|
|||||||
Reference in New Issue
Block a user