mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(FormatCatalog.DataDirectory): new property.
This commit is contained in:
@@ -122,7 +122,7 @@ namespace GameRes.Formats.Neko
|
||||
static string[] KnownFileNames { get { return s_known_file_names.Value; } }
|
||||
|
||||
static string[] s_known_dir_names = {
|
||||
"image/actor", "image/back", "image/mask", "image/visual",
|
||||
"image/actor", "image/back", "image/mask", "image/visual", "image/actor/big",
|
||||
"sound/bgm", "sound/env", "sound/se", "voice", "script", "system", "count",
|
||||
};
|
||||
|
||||
@@ -177,7 +177,7 @@ namespace GameRes.Formats.Neko
|
||||
{
|
||||
try
|
||||
{
|
||||
var dir = Path.GetDirectoryName (System.Reflection.Assembly.GetExecutingAssembly().Location);
|
||||
var dir = FormatCatalog.Instance.DataDirectory;
|
||||
var lst_file = Path.Combine (dir, "nekopack.lst");
|
||||
if (!File.Exists (lst_file))
|
||||
return new string[0];
|
||||
|
||||
@@ -219,7 +219,7 @@ namespace GameRes.Formats.NonColor
|
||||
{
|
||||
if (null != LastAccessedScheme && LastAccessedScheme.Item1 == scheme.Hash)
|
||||
return LastAccessedScheme.Item2;
|
||||
var dir = Path.GetDirectoryName (System.Reflection.Assembly.GetExecutingAssembly().Location);
|
||||
var dir = FormatCatalog.Instance.DataDirectory;
|
||||
var lst_file = Path.Combine (dir, PersistentFileMapName);
|
||||
var idx_file = Path.ChangeExtension (lst_file, ".idx");
|
||||
using (var idx_stream = File.OpenRead (idx_file))
|
||||
|
||||
Reference in New Issue
Block a user