mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
use FormatCatalog.ReadFileList method to read file lists.
This commit is contained in:
@@ -1208,21 +1208,12 @@ namespace GameRes.Formats.KiriKiri
|
||||
|
||||
void ReadNames ()
|
||||
{
|
||||
var dir = FormatCatalog.Instance.DataDirectory;
|
||||
var names_file = Path.Combine (dir, FileListName);
|
||||
var names = new Dictionary<uint, string>();
|
||||
try
|
||||
{
|
||||
using (var reader = new StreamReader (names_file))
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
var name = reader.ReadLine();
|
||||
if (null == name)
|
||||
break;
|
||||
names[GetNameHash (name)] = name;
|
||||
}
|
||||
}
|
||||
FormatCatalog.Instance.ReadFileList (FileListName, name => {
|
||||
names[GetNameHash (name)] = name;
|
||||
});
|
||||
}
|
||||
catch (Exception X)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user