(FormatCatalog.DataDirectory): new property.

This commit is contained in:
morkt
2016-09-07 20:28:23 +04:00
parent 7f272a6c16
commit 7c5b26933a
3 changed files with 8 additions and 4 deletions

View File

@@ -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))