You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
137 lines
2.6 KiB
C#
137 lines
2.6 KiB
C#
using NetMFAPatcher.Utils;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using NetMFAPatcher.mmfparser;
|
|
using NetMFAPatcher.MMFParser.ChunkLoaders;
|
|
using static NetMFAPatcher.MMFParser.Data.ChunkList;
|
|
|
|
namespace NetMFAPatcher.MMFParser.ChunkLoaders
|
|
{
|
|
class StringChunk : ChunkLoader
|
|
{
|
|
public string Value;
|
|
|
|
|
|
public override void Read()
|
|
{
|
|
Reader = new ByteIO(Chunk.ChunkData);
|
|
Value = Reader.ReadWideString();
|
|
}
|
|
|
|
public override void Print(bool ext)
|
|
{
|
|
Logger.Log($"{Chunk.Name} contains: {Value}\n",true,ConsoleColor.DarkCyan);
|
|
}
|
|
|
|
|
|
public StringChunk(ByteIO reader) : base(reader)
|
|
{
|
|
}
|
|
|
|
public StringChunk(Chunk chunk) : base(chunk)
|
|
{
|
|
}
|
|
}
|
|
|
|
class AppName : StringChunk
|
|
{
|
|
public AppName(ByteIO reader) : base(reader)
|
|
{
|
|
}
|
|
|
|
public AppName(Chunk chunk) : base(chunk)
|
|
{
|
|
}
|
|
}
|
|
|
|
class AppAuthor : StringChunk
|
|
{
|
|
public AppAuthor(ByteIO reader) : base(reader)
|
|
{
|
|
}
|
|
|
|
public AppAuthor(Chunk chunk) : base(chunk)
|
|
{
|
|
}
|
|
}
|
|
|
|
class ExtPath : StringChunk
|
|
{
|
|
public ExtPath(ByteIO reader) : base(reader)
|
|
{
|
|
}
|
|
|
|
public ExtPath(Chunk chunk) : base(chunk)
|
|
{
|
|
}
|
|
}
|
|
|
|
class EditorFilename : StringChunk
|
|
{
|
|
public EditorFilename(ByteIO reader) : base(reader)
|
|
{
|
|
}
|
|
|
|
public EditorFilename(Chunk chunk) : base(chunk)
|
|
{
|
|
}
|
|
}
|
|
|
|
class TargetFilename : StringChunk
|
|
{
|
|
public TargetFilename(ByteIO reader) : base(reader)
|
|
{
|
|
}
|
|
|
|
public TargetFilename(Chunk chunk) : base(chunk)
|
|
{
|
|
}
|
|
}
|
|
|
|
class AppDoc : StringChunk
|
|
{
|
|
public AppDoc(ByteIO reader) : base(reader)
|
|
{
|
|
}
|
|
|
|
public AppDoc(Chunk chunk) : base(chunk)
|
|
{
|
|
}
|
|
}
|
|
|
|
class AboutText : StringChunk
|
|
{
|
|
public AboutText(ByteIO reader) : base(reader)
|
|
{
|
|
}
|
|
|
|
public AboutText(Chunk chunk) : base(chunk)
|
|
{
|
|
}
|
|
}
|
|
|
|
class Copyright : StringChunk
|
|
{
|
|
public Copyright(ByteIO reader) : base(reader)
|
|
{
|
|
}
|
|
|
|
public Copyright(Chunk chunk) : base(chunk)
|
|
{
|
|
}
|
|
}
|
|
|
|
class DemoFilePath : StringChunk
|
|
{
|
|
public DemoFilePath(ByteIO reader) : base(reader)
|
|
{
|
|
}
|
|
|
|
public DemoFilePath(Chunk chunk) : base(chunk)
|
|
{
|
|
}
|
|
}
|
|
} |