-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
631 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
test/ | ||
env/ | ||
env/ | ||
PakTool/.vs/ | ||
PakTool/bin/ | ||
PakTool/obj/ | ||
PakTool/PAKTool.pdb | ||
*ref.hx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System.Reflection; | ||
using System.Runtime.InteropServices; | ||
|
||
[assembly: AssemblyTitle("PAKTool")] | ||
[assembly: AssemblyDescription("")] | ||
[assembly: AssemblyConfiguration("")] | ||
[assembly: AssemblyCompany("")] | ||
[assembly: AssemblyProduct("PAKTool")] | ||
[assembly: AssemblyCopyright("Copyright © 2018")] | ||
[assembly: AssemblyTrademark("")] | ||
[assembly: ComVisible(false)] | ||
[assembly: Guid("72731be3-1523-4543-9287-f1205e754f6d")] | ||
[assembly: AssemblyFileVersion("1.0.0.0")] | ||
[assembly: AssemblyVersion("1.0.0.0")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Decompiled with JetBrains decompiler | ||
// Type: PAKTool.DirectoryData | ||
// Assembly: PAKTool, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null | ||
// MVID: ECC9A4AB-62C6-4F7C-95CE-FBC3CF0F40A2 | ||
// Assembly location: D:\SteamLibrary\steamapps\common\Dead Cells\ModTools\PAKTool.exe | ||
|
||
using System.Collections.Generic; | ||
|
||
#nullable disable | ||
namespace PAKTool | ||
{ | ||
internal class DirectoryData : EntryData | ||
{ | ||
public override bool isDirectory => true; | ||
|
||
public DirectoryData(DirectoryData _parent, string _name) | ||
: base(_parent, _name) | ||
{ | ||
} | ||
|
||
public void AddEntry(EntryData _entry) | ||
{ | ||
if (_entry.isDirectory) | ||
this.directories.Add((DirectoryData) _entry); | ||
else | ||
this.files.Add((FileData) _entry); | ||
} | ||
|
||
public List<FileData> files { get; private set; } = new List<FileData>(); | ||
|
||
public List<DirectoryData> directories { get; private set; } = new List<DirectoryData>(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// Decompiled with JetBrains decompiler | ||
// Type: PAKTool.EntryData | ||
// Assembly: PAKTool, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null | ||
// MVID: ECC9A4AB-62C6-4F7C-95CE-FBC3CF0F40A2 | ||
// Assembly location: D:\SteamLibrary\steamapps\common\Dead Cells\ModTools\PAKTool.exe | ||
|
||
using System.IO; | ||
|
||
#nullable disable | ||
namespace PAKTool | ||
{ | ||
internal abstract class EntryData | ||
{ | ||
public abstract bool isDirectory { get; } | ||
|
||
public string name { get; private set; } | ||
|
||
public string fullName | ||
{ | ||
get | ||
{ | ||
DirectoryData parent = this.parent; | ||
return parent != null ? Path.Combine(parent.fullName, this.name) : this.name; | ||
} | ||
} | ||
|
||
public DirectoryData parent { get; private set; } | ||
|
||
public EntryData(DirectoryData _parent, string _name) | ||
{ | ||
this.name = _name; | ||
this.parent = _parent; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Decompiled with JetBrains decompiler | ||
// Type: PAKTool.FileData | ||
// Assembly: PAKTool, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null | ||
// MVID: ECC9A4AB-62C6-4F7C-95CE-FBC3CF0F40A2 | ||
// Assembly location: D:\SteamLibrary\steamapps\common\Dead Cells\ModTools\PAKTool.exe | ||
|
||
#nullable disable | ||
namespace PAKTool | ||
{ | ||
internal class FileData : EntryData | ||
{ | ||
public int position { get; private set; } | ||
|
||
public int size { get; private set; } | ||
|
||
public int checksum { get; private set; } | ||
|
||
public override bool isDirectory => false; | ||
|
||
public FileData(DirectoryData _parent, string _name, int _position, int _size, int _crc) | ||
: base(_parent, _name) | ||
{ | ||
this.position = _position; | ||
this.size = _size; | ||
this.checksum = _crc; | ||
} | ||
} | ||
} |
Oops, something went wrong.