Skip to content

Commit 7d50ecf

Browse files
committed
Version bump
1 parent 4e78054 commit 7d50ecf

4 files changed

Lines changed: 35 additions & 28 deletions

File tree

.github/workflows/application.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
runs-on: windows-latest
1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v5
1818

19-
- uses: actions/setup-dotnet@v4
19+
- uses: actions/setup-dotnet@v5
2020
with:
21-
dotnet-version: '9.0.x'
21+
dotnet-version: '10.0.x'
2222

2323
- name: Build
2424
run: |

Encdec/AION-Encdec.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
</PropertyGroup>
99
<PropertyGroup>
1010
<ApplicationIcon>Resources/icon.ico</ApplicationIcon>
11-
<Copyright>Iswenzz (c) 2024</Copyright>
12-
<Version>1.3</Version>
13-
<AssemblyVersion>1.3</AssemblyVersion>
14-
<FileVersion>1.3</FileVersion>
11+
<Copyright>Iswenzz (c) 2025</Copyright>
12+
<Version>1.4</Version>
13+
<AssemblyVersion>1.4</AssemblyVersion>
14+
<FileVersion>1.4</FileVersion>
1515
</PropertyGroup>
1616
<ItemGroup>
1717
<PackageReference Include="CommandLineParser" Version="2.9.1" />

Encdec/Program.cs

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,30 +19,32 @@ public static class Program
1919
public static Options Arguments { get; set; }
2020

2121
[DllImport("kernel32.dll")]
22-
static extern bool AttachConsole(int dwProcessId);
23-
private const int ATTACH_PARENT_PROCESS = -1;
22+
private static extern bool AttachConsole(int dwProcessId);
23+
24+
[DllImport("kernel32.dll")]
25+
private static extern bool FreeConsole();
2426

2527
/// <summary>
2628
/// Command line arguments.
2729
/// </summary>
2830
public sealed class Options
2931
{
30-
[Option('u', "unpack", Required = false, HelpText = "Unpack files.")]
32+
[Option('u', "unpack", HelpText = "Unpack files.")]
3133
public bool Unpack { get; set; }
3234

33-
[Option('p', "pakzip", Required = false, HelpText = "Unpack to zip.")]
35+
[Option('p', "pakzip", HelpText = "Unpack to zip.")]
3436
public bool Pakzip { get; set; }
3537

36-
[Option('d', "decode", Required = false, HelpText = "Decode files.")]
38+
[Option('d', "decode", HelpText = "Decode files.")]
3739
public bool Decode { get; set; }
3840

39-
[Option('r', "repack", Required = false, HelpText = "Repack folder.")]
41+
[Option('r', "repack", HelpText = "Repack folder.")]
4042
public bool Repack { get; set; }
4143

42-
[Option('i', "input", Required = false, Default = "PAK", HelpText = "The input folder path.")]
43-
public string Input { get; set; }
44+
[Option('i', "input", Default = "PAK", HelpText = "The input folder path.")]
45+
public string Input { get; set; } = "PAK";
4446

45-
[Option('c', "create-folder", Required = false, HelpText = "Create a folder when unpacking.")]
47+
[Option('c', "create-folder", HelpText = "Create a folder when unpacking.")]
4648
public bool CreateFolder { get; set; }
4749
}
4850

@@ -52,12 +54,13 @@ public sealed class Options
5254
[STAThread]
5355
public static void Main(string[] args)
5456
{
57+
const int ATTACH_PARENT_PROCESS = -1;
5558
AttachConsole(ATTACH_PARENT_PROCESS);
59+
5660
Parser.Default.ParseArguments<Options>(args)
5761
.WithParsed(options => Arguments = options)
5862
.WithNotParsed(_ => Arguments = new());
5963

60-
if (string.IsNullOrEmpty(Arguments.Input)) return;
6164
Arguments.Input = Path.GetFullPath(Arguments.Input);
6265
if (!Directory.Exists(Arguments.Input))
6366
Directory.CreateDirectory(Arguments.Input);
@@ -67,10 +70,13 @@ public static void Main(string[] args)
6770
List<string> folders = [Arguments.Input];
6871
List<string> paks = [.. Directory.GetFiles(Arguments.Input, "*.pak", SearchOption.AllDirectories)];
6972
Console.WriteLine();
70-
if (Arguments.Unpack) Unpack.Run(paks, Arguments.CreateFolder, true);
71-
else if (Arguments.Pakzip) Unpack.Run(paks, Arguments.CreateFolder, false);
73+
74+
if (Arguments.Unpack || Arguments.Pakzip) Unpack.Run(paks, Arguments.CreateFolder, Arguments.Unpack);
7275
if (Arguments.Decode) Decode.Run(folders);
7376
if (Arguments.Repack) Repack.Run(folders);
77+
78+
FreeConsole();
79+
SendKeys.SendWait("{ENTER}");
7480
return;
7581
}
7682
ApplicationConfiguration.Initialize();

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,24 @@
77

88
![](https://i.imgur.com/0kAlsBZ.png)
99

10-
This program serves as both a Graphical User Interface and Command Line Interface for roxan & M. Soltys' command line applications. Some features this application provides include decoding `.XML`, `.HTML`, and `.CFG` files, as well as un-packing and re-packing `.PAK` files. Usage information and miscellaneous details can be found at the bottom of this document.
10+
This program serves as both a Graphical User Interface and Command Line Interface for roxan & M. Soltys' command line applications. Some features this application provides include decoding `.XML`, `.HTML`. as well as un-packing and re-packing `.PAK` files. Usage information and miscellaneous details can be found at the bottom of this document.
1111

1212
## Features
13-
* Encode/Decode `.XML`, `.HTML`, and `.CFG` files.
13+
* Decode `.XML`, `.HTML`.
1414
* Un-pack and re-pack `.PAK` files.
1515
* Graphical User Interface
1616
* Command Line Interface
1717

1818
## Command Line Interface
1919
```c
20-
-u, --unpack Unpack pak files at the specified input folder.
21-
-d, --decode Decode pak files at the specified input folder.
22-
-r, --repack Repack pak files at the specified output folder.
23-
-o, --output (Default: ./REPACK) The output folder path.
24-
-i, --input (Default: ./PAK) The input folder path.
25-
--help Display this help screen.
26-
--version Display version information.
20+
-u, --unpack Unpack files.
21+
-p, --pakzip Unpack to zip.
22+
-d, --decode Decode files.
23+
-r, --repack Repack folder.
24+
-i, --input (Default: PAK) The input folder path.
25+
-c, --create-folder Create a folder when unpacking.
26+
--help Display this help screen.
27+
--version Display version information.
2728
```
2829

2930
## Instructions

0 commit comments

Comments
 (0)