mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-23 19:34:15 +08:00
(DirectoryPosition): added constructor from filename.
This commit is contained in:
parent
46c05b25de
commit
6bf0e89f21
@ -292,5 +292,13 @@ namespace GARbro.GUI
|
||||
else
|
||||
ArchivePath = "";
|
||||
}
|
||||
|
||||
public DirectoryPosition (string filename)
|
||||
{
|
||||
Path = System.IO.Path.GetDirectoryName (filename);
|
||||
ArchivePath = "";
|
||||
var entry = FormatCatalog.Instance.CreateEntry (filename);
|
||||
Item = new EntryViewModel (entry, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user