mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 20:43:09 +00:00
0c126e4155
Rewrote the compression handling from scatch. It's way easier and cleaner to add new formats code wise as it's handled like file formats. Added wip TVOL support (Touhou Azure Reflections) Added XCI support. Note I plan to improve NSP, XCI, NCA, etc later for exefs exporting. The compression rework now compresses via streams, so files get decompressed properly within archives as streams. Added hyrule warriors bin.gz compression along with archive rebuilding. Note i do not have texture rebuilding done just yet.
21 lines
476 B
C#
21 lines
476 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.IO;
|
|
|
|
namespace Toolbox.Library
|
|
{
|
|
public interface ICompressionFormat
|
|
{
|
|
string[] Description { get; set; }
|
|
string[] Extension { get; set; }
|
|
|
|
bool Identify(Stream stream, string fileName);
|
|
bool CanCompress { get; }
|
|
|
|
Stream Decompress(Stream stream);
|
|
Stream Compress(Stream stream);
|
|
}
|
|
}
|