From a46893afab8206a754c279c6180153ea98ebfed4 Mon Sep 17 00:00:00 2001 From: Rajko Horvat Date: Wed, 20 Mar 2024 19:57:09 +0100 Subject: [PATCH] Release bugfixes --- How To Install.txt | 6 ----- README.md | 26 +++++++++++-------- src/CPU/CPU.cs | 2 +- .../CVL and EXE driver overlays.txt | 10 +++---- src/Game/Game.cs | 2 +- src/OpenCiv1.csproj | 18 +++++++------ 6 files changed, 32 insertions(+), 32 deletions(-) delete mode 100644 How To Install.txt diff --git a/How To Install.txt b/How To Install.txt deleted file mode 100644 index 8330b96..0000000 --- a/How To Install.txt +++ /dev/null @@ -1,6 +0,0 @@ -The file OpenCiv1.exe should be copied directly into installed and working DOS Civilization game directory. -The Debug mode can be toggled by pressing Alt + D Key. - -The only dependency is .NET 8 - -I hope you enjoy this Alpha Release! diff --git a/README.md b/README.md index 871e619..ad41b32 100644 --- a/README.md +++ b/README.md @@ -17,22 +17,15 @@

The part of the game assembly code is emulated with Virtual CPU, and the rest of the code has been rewritten from scratch until all of the code is replaced with new copyright free code. The other resources (like graphics, music and text) will also be completely replaced with copyright free resources before publishing the complete game.

-## Current status -

The game is in working state, but you have to legally own the Original game (the .txt, .pic and .pal files have to be present).

-Keyboard shortcuts: +## Dependencies

+
  • .NET 8
  • +
  • Visual C++ 2015-2019 redistributable (on some Windows machines)
  • + ## How to install release version of OpenCiv1

    The files from the Release should be copied directly into installed and working DOS Civilization game directory.

    -

    The only dependency is .NET 8

    - ## How to compile the code (.NET 8 SDK required) If you want to compile the code, it is assumed that: +## Current status +

    The game is in working state, but you have to legally own the Original game (the .txt, .pic and .pal files have to be present).

    +Keyboard shortcuts: +

    + ## Help needed

    All contributions are welcome.

    For this stage of code rewrite, the programmings skills needed are: diff --git a/src/CPU/CPU.cs b/src/CPU/CPU.cs index d795147..1036486 100644 --- a/src/CPU/CPU.cs +++ b/src/CPU/CPU.cs @@ -86,7 +86,7 @@ static CPU() Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), Path.DirectorySeparatorChar); } #else - DefaultCIVPath = ""; + DefaultCIVPath = $"{Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)}{Path.DirectorySeparatorChar}"; #endif } diff --git a/src/Documentation/CVL and EXE driver overlays.txt b/src/Documentation/CVL and EXE driver overlays.txt index 24e6858..1f748ec 100644 --- a/src/Documentation/CVL and EXE driver overlays.txt +++ b/src/Documentation/CVL and EXE driver overlays.txt @@ -91,8 +91,8 @@ Sound drivers ASOUND.CVL, ISOUND.CVL, NSOUND.CVL, RSOUND.CVL and TSOUND.CVL (onl * jmp instruction at offset 0xa41 is mapped to function 4 * jmp instruction at offset 0xa48 is mapped to function 5 * jmp instruction at offset 0xa4f is mapped to function 6 -* jmp instruction at offset 0xa56 is mapped to function 7 -* jmp instruction at offset 0xa5d is mapped to function 8 -* jmp instruction at offset 0xa64 is mapped to function 9 -* jmp instruction at offset 0xa6b is mapped to function 10 -* jmp instruction at offset 0xa72 is mapped to function 11 +* jmp instruction at offset 0xa56 is mapped to function 7 (Not used) +* jmp instruction at offset 0xa5d is mapped to function 8 (Not used) +* jmp instruction at offset 0xa64 is mapped to function 9 (Not used) +* jmp instruction at offset 0xa6b is mapped to function 10 (Not used) +* jmp instruction at offset 0xa72 is mapped to function 11 (Not used) \ No newline at end of file diff --git a/src/Game/Game.cs b/src/Game/Game.cs index 0884afb..8bba321 100644 --- a/src/Game/Game.cs +++ b/src/Game/Game.cs @@ -177,7 +177,7 @@ public void Start() if (!File.Exists(sFilePath)) { - throw new ResourceMissingException($"Missing resource file {sFilePath}. Plsease ensure that the file exists at specified path."); + throw new ResourceMissingException($"Missing resource file {sFilePath}. Please ensure that the file exists at specified path."); } } #endregion diff --git a/src/OpenCiv1.csproj b/src/OpenCiv1.csproj index 71e0057..be516a2 100644 --- a/src/OpenCiv1.csproj +++ b/src/OpenCiv1.csproj @@ -68,15 +68,17 @@ - - PreserveNewest - - + + + + + + PreserveNewest - - + + PreserveNewest - + - + \ No newline at end of file