Skip to content

Commit 502bb30

Browse files
committed
Force XEX decompression on decryption method
1 parent 8d9a52a commit 502bb30

File tree

6 files changed

+93
-112
lines changed

6 files changed

+93
-112
lines changed

Sonic-06-Mod-Manager/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
[assembly: ComVisible(false)]
1313
[assembly: Guid("277111e3-79d8-41b5-b0d7-7609dff6e36f")]
1414
[assembly: AssemblyVersion("2.0.0.6")]
15-
[assembly: AssemblyFileVersion("3.3.0.0")]
15+
[assembly: AssemblyFileVersion("3.3.1.0")]
2 KB
Binary file not shown.

Sonic-06-Mod-Manager/src/Environment3/RushInterface.Designer.cs

Lines changed: 89 additions & 88 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sonic-06-Mod-Manager/src/Environment3/RushInterface.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1230,7 +1230,7 @@ private void LaunchEmulator(string emulator) {
12301230
// Uninstall mods after emulator quits
12311231
if (Properties.Settings.Default.General_AutoUninstall) UninstallThread();
12321232
}
1233-
}
1233+
} private void Ugh(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Right) { UnifyMessenger.UnifyMessage.ShowDialog("This source code is a huge mess... I can't wait for the next rewrite.", "Ugh", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }
12341234

12351235
/// <summary>
12361236
/// Opens the requested location by sender.

Sonic-06-Mod-Manager/src/UnifyPatcher.cs

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -476,14 +476,6 @@ public static void InstallPatches(string patch, string name)
476476
decrypted = true;
477477
break;
478478

479-
// Decompresses the game's XEX.
480-
case "DecompressExecutable()":
481-
BackupFile(gameExecutable);
482-
if (system == "Xbox 360") XEX.Decompress(gameExecutable);
483-
else continue;
484-
decrypted = true;
485-
break;
486-
487479
// Encrypts the game's XEX/EBOOT.
488480
case "EncryptExecutable()": EncryptExecutable(); break;
489481

@@ -1796,19 +1788,7 @@ public static void Decrypt(string filepath) {
17961788
ProcessStartInfo startInfo = new ProcessStartInfo {
17971789
WindowStyle = ProcessWindowStyle.Hidden,
17981790
FileName = Program.XexTool,
1799-
Arguments = $"-e u \"{filepath}\""
1800-
};
1801-
process.StartInfo = startInfo;
1802-
process.Start();
1803-
process.WaitForExit();
1804-
}
1805-
1806-
public static void Decompress(string filepath) {
1807-
Process process = new Process();
1808-
ProcessStartInfo startInfo = new ProcessStartInfo {
1809-
WindowStyle = ProcessWindowStyle.Hidden,
1810-
FileName = Program.XexTool,
1811-
Arguments = $"-c b \"{filepath}\""
1791+
Arguments = $"-e u -c b \"{filepath}\""
18121792
};
18131793
process.StartInfo = startInfo;
18141794
process.Start();

Sonic-06-Mod-Manager/src/UnifyProgram.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ namespace Unify.Environment3
3939
{
4040
static class Program
4141
{
42-
public static readonly string GlobalVersionNumber = $"Version 3.3";
42+
public static readonly string GlobalVersionNumber = $"Version 3.31";
4343

4444
#if !DEBUG
4545
public static readonly string VersionNumber = GlobalVersionNumber;

0 commit comments

Comments
 (0)