Handle GAM_FILE chunk
This commit is contained in:
parent
acc3add512
commit
db293791e0
|
@ -0,0 +1,22 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
|
||||
namespace KeepersCompound.LGS.Database.Chunks;
|
||||
|
||||
public class GamFile : IChunk
|
||||
{
|
||||
public ChunkHeader Header { get; set; }
|
||||
public string fileName;
|
||||
|
||||
public void ReadData(BinaryReader reader, DbFile.TableOfContents.Entry entry)
|
||||
{
|
||||
var tmpName = Encoding.UTF8.GetString(reader.ReadBytes(256)).Replace("\0", string.Empty);
|
||||
fileName = tmpName[..Math.Min(255, tmpName.Length)];
|
||||
}
|
||||
|
||||
public void WriteData(BinaryWriter writer)
|
||||
{
|
||||
throw new System.NotImplementedException();
|
||||
}
|
||||
}
|
|
@ -98,6 +98,7 @@ public class DbFile
|
|||
{
|
||||
// "AI_ROOM_DB" => new AiRoomDb(),
|
||||
// "AICONVERSE" => new AiConverseChunk(),
|
||||
"GAM_FILE" => new GamFile(),
|
||||
"TXLIST" => new TxList(),
|
||||
"WREXT" => new WorldRep(),
|
||||
"BRLIST" => new BrList(),
|
||||
|
|
Loading…
Reference in New Issue