|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
@ -8,5 +9,23 @@ namespace apphost_extract
|
|
|
|
|
{
|
|
|
|
|
public class AppHostFileEntry
|
|
|
|
|
{
|
|
|
|
|
public int Offset { get; set; }
|
|
|
|
|
public int Size { get; set; }
|
|
|
|
|
public string RelativePath { get; set; }
|
|
|
|
|
|
|
|
|
|
private byte[] Raw;
|
|
|
|
|
|
|
|
|
|
private const int FILE_ENTRY_SIZE = 0x12;
|
|
|
|
|
|
|
|
|
|
public AppHostFileEntry(FileStream File)
|
|
|
|
|
{
|
|
|
|
|
byte[] entryBuffer = new byte[FILE_ENTRY_SIZE];
|
|
|
|
|
File.Read(entryBuffer, 0, entryBuffer.Length);
|
|
|
|
|
Raw = entryBuffer;
|
|
|
|
|
|
|
|
|
|
byte[] stringBuffer = new byte[Raw[0x11]];
|
|
|
|
|
File.Read(stringBuffer, 0, stringBuffer.Length);
|
|
|
|
|
RelativePath = Encoding.UTF8.GetString(stringBuffer);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|