Skip to content

Commit

Permalink
Update namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
rajko-horvat committed Jan 10, 2025
1 parent 9577540 commit e9719c5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
4 changes: 1 addition & 3 deletions src/MZ/MZExecutable.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Runtime.CompilerServices;

namespace Disassembler.MZ
namespace IRB.VirtualCPU
{
public class MZExecutable
{
Expand Down
8 changes: 1 addition & 7 deletions src/MZ/MZRelocationItem.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Disassembler.MZ
namespace IRB.VirtualCPU
{
/// <summary>
/// MZ relocation entry
Expand Down
14 changes: 7 additions & 7 deletions src/Program.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
using Disassembler.MZ;
using IRB.VirtualCPU;

internal class Program
{
private static void Main(string[] args)
{
Console.WriteLine($"CivUnpack version 1.1 (DOS Civilization (1991) EXE Unpacker) by R. Horvat");

//UnpackDOSEXE("CIV1.EXE", "CIV1.NEW"); // OK
//UnpackDOSEXE("CIV2.EXE", "CIV2.NEW"); // OK
//UnpackDOSEXE("CIV3.EXE", "CIV3.NEW"); // OK
//UnpackDOSEXE("CIV4.EXE", "CIV4.NEW"); // OK
//UnpackDOSEXE("CIV5.EXE", "CIV5.NEW"); // OK
/*UnpackDOSEXE("CIV1.EXE", "CIV1_NEW.EXE"); // OK
UnpackDOSEXE("CIV2.EXE", "CIV2_NEW.EXE"); // OK
UnpackDOSEXE("CIV3.EXE", "CIV3_NEW.EXE"); // OK
UnpackDOSEXE("CIV4.EXE", "CIV4_NEW.EXE"); // OK
UnpackDOSEXE("CIV5.EXE", "CIV5_NEW.EXE"); // OK //*/

if (File.Exists("CIV.EXE"))
{
Expand All @@ -37,7 +37,7 @@ private static void Main(string[] args)
else
{
Console.WriteLine("CIV.EXE does not exist. Put CivUnpack.exe in a directory with CIV.EXE and run it.");
}
}//*/
}

private static void UnpackDOSEXE(string inputPath, string outputPath)
Expand Down

0 comments on commit e9719c5

Please sign in to comment.