This repository consists of the following components:
- PKGLib: A C# library for handling PKG files .
- dlang-sencompress: A high performance library for Sen no Kiseki Compression/Decompression written in the D language.
- SenCompressSharp: A C# wrapper for the dlang-sencompress library.
- PKGToolCmd: A simple C# commandline utility for extracting and packing of Sen no Kiseki PKG files.
The compression library component is implemented using the D Programming Language and is based off of my own PKG Compressor dlang-prs.
The PKGLib and SenCompress libraries are written in .NET Standard thus can be used with any .NET implementation such as Framework, Core, Xamarin or Mono.
-
Install the latest version of Visual D: https://github.com/dlang/visuald/releases
-
Add the DMD and LDC compilers to your System Environment Variables' PATH (in case they are not added).
-
Open
Dlang.sln
with Visual Studio.
Note: Successful builds output in build
directory. where the solution files reside
- Install the latest .NET Core 2.X SDK.
- Compile
dlang-sencompress
(see above) for Win32 (x86) and x64. - Open
CSharp.sln
in Visual Studio and build.
Do note that in order to use the actual libraries in your own projects you do not actually need the D compiler.
Individual precompiled packages are available on NuGet; you will only need the compiler should you choose to contribute to the repository.
For more details see "Using the Libraries".