mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(DirectoryPosition): added constructor from filename.
This commit is contained in:
@@ -292,5 +292,13 @@ namespace GARbro.GUI
|
|||||||
else
|
else
|
||||||
ArchivePath = "";
|
ArchivePath = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public DirectoryPosition (string filename)
|
||||||
|
{
|
||||||
|
Path = System.IO.Path.GetDirectoryName (filename);
|
||||||
|
ArchivePath = "";
|
||||||
|
var entry = FormatCatalog.Instance.CreateEntry (filename);
|
||||||
|
Item = new EntryViewModel (entry, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user