mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-27 15:44:00 +08:00
(ArcView): store file name.
This commit is contained in:
parent
24659063f9
commit
cc44a73bc5
@ -136,11 +136,13 @@ namespace GameRes
|
|||||||
public const long PageSize = 4096;
|
public const long PageSize = 4096;
|
||||||
public long MaxOffset { get; private set; }
|
public long MaxOffset { get; private set; }
|
||||||
public Frame View { get; private set; }
|
public Frame View { get; private set; }
|
||||||
|
public string Name { get; private set; }
|
||||||
|
|
||||||
public ArcView (string name)
|
public ArcView (string name)
|
||||||
{
|
{
|
||||||
using (var fs = new FileStream(name, FileMode.Open, FileAccess.Read, FileShare.Read))
|
using (var fs = new FileStream(name, FileMode.Open, FileAccess.Read, FileShare.Read))
|
||||||
{
|
{
|
||||||
|
Name = name;
|
||||||
MaxOffset = fs.Length;
|
MaxOffset = fs.Length;
|
||||||
m_map = MemoryMappedFile.CreateFromFile (fs, null, 0,
|
m_map = MemoryMappedFile.CreateFromFile (fs, null, 0,
|
||||||
MemoryMappedFileAccess.Read, null, HandleInheritability.None, true);
|
MemoryMappedFileAccess.Read, null, HandleInheritability.None, true);
|
||||||
|
Loading…
Reference in New Issue
Block a user