Skip to content

Commit d90756b

Browse files
committed
bump version + add info about config files
1 parent 48f55fb commit d90756b

6 files changed

Lines changed: 20 additions & 10 deletions

File tree

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Demo (old) : https://youtu.be/AIVDunCtSnM
1010
## Filesystem Parser
1111
The tool can parse the filesystem contained in a given Zelda ROM and extract/replace/open the files in it.
1212

13-
### ROM/RAM Address Conversion
13+
## ROM/RAM Address Conversion
1414
The tool recreates the memory map of the ROM like how it would lie in virtual RAM (i.e. without any heap allocation / code relocation) and makes you able to convert addresses from one address space to another.
1515

1616
## Object Analyzer
@@ -30,6 +30,11 @@ The Skeleton Viewer can parse and render skeletons and animations used in Ocarin
3030

3131
Note that currently only standart limbs are supported (no SkinLimb/LodLimb)
3232

33+
# Configuration
34+
Z64Utils requires some configuration files in order to work properly. The purpose of these files is to give some basic information on the different ROM versions.
35+
36+
You can find these configuration files as well as some additional information about them [here](https://github.com/Random06457/Z64Utils-Config).
37+
3338
# Dependencies
3439

3540
Currently, the only requirement is `.NET 5.0.5` (Not to be confused with `.NET Core` or `.NET Framework`).

Z64Utils/Common/UpdateChecker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public static class UpdateChecker
125125
{
126126

127127
public const string ReleaseURL = @"https://api.github.com/repos/Random06457/Z64Utils/releases/latest";
128-
public const string CurrentTag = "v2.0.1";
128+
public const string CurrentTag = "v2.1.0";
129129

130130
public static GithubRelease GetLatestRelease()
131131
{

Z64Utils/Forms/MainForm.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,18 +129,17 @@ private void RomOpenItem_Click(object sender, EventArgs e)
129129
});
130130

131131
StartTask(() => {
132-
//try
133-
//{
132+
try
133+
{
134134
_game = new Z64Game(openFileDialog1.FileName, ProcessCallback);
135-
/*}
135+
}
136136
catch(Exception ex)
137137
{
138138
Invoke(new Action(() =>
139139
{
140-
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
140+
MessageBox.Show(ex.Message + "\r\n\r\nIf this issue is related to config files, consider downloading the latest version at github.com/Random06457/Z64Utils-Config", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
141141
}));
142142
}
143-
*/
144143

145144
Invoke(new Action(() =>
146145
{

Z64Utils/Z64/Z64Game.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public Z64Game(N64Rom rom, Action<float, string> progressCalback = null)
142142

143143
Version = Z64Version.IdentifyRom(rom, out int fileTableOff);
144144
if (Version == null)
145-
throw new Z64GameException("Invalid or unknown build name");
145+
throw new Z64GameException("Could not identify build. Please check your config files.");
146146

147147
if (!N64CheckSum.Validate(Rom, Version.Cic))
148148
throw new Exception("Invalid CRC");

Z64Utils/Z64/Z64Memory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public Z64Memory(Z64Game game)
5252
}
5353
catch (Exception ex)
5454
{
55-
throw new Z64MemoryException("Error while creating the memory map. Please check your config file (versions/*.json)");
55+
throw new Z64MemoryException("Error while creating the memory map. Please check your config files (versions/*.json)");
5656
}
5757
}
5858

Z64Utils/Z64/Z64Version.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,13 @@ public static Z64Version IdentifyRom(N64Rom rom, out int fileTableOff)
263263
private static Dictionary<string, Z64Version> _versions;
264264
private static void LoadVersions()
265265
{
266-
var files = Directory.GetFiles("versions", "*.json");
266+
string path = "versions";
267+
if (!Directory.Exists(path))
268+
throw new Exception($"Could load config files (\"{path}/*.json\").");
269+
270+
var files = Directory.GetFiles(path, "*.json");
271+
if (files.Length == 0)
272+
throw new Exception($"Could load config files (\"{path}/*.json\").");
267273

268274
_versions = new();
269275
var options = new JsonSerializerOptions()

0 commit comments

Comments
 (0)