Skip to content

Commit

Permalink
Update for 2.0.6
Browse files Browse the repository at this point in the history
(closes #57)
  • Loading branch information
averne committed Nov 15, 2022
1 parent e8ba257 commit c0bbf45
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 54 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ endif

TOPDIR ?= $(CURDIR)

VERSION = 1.6.18
VERSION = 1.6.19
COMMIT = $(shell git rev-parse --short HEAD)

# -----------------------------------------------
Expand Down
107 changes: 54 additions & 53 deletions src/parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ enum class Version: std::size_t {
V190,
V1100,
V1110, V1111,
V200, V201, V202, V203, V204, V205,
V200, V201, V202, V203, V204, V205, V206,
Unknown,
Total = Unknown,
};
Expand Down Expand Up @@ -135,6 +135,7 @@ class VersionParser {
VersionInfo{ 0x80009, 0x80085, 2, 0, 2, 25 }, // 2.0.3
VersionInfo{ 0x80009, 0x80085, 2, 0, 2, 26 }, // 2.0.4
VersionInfo{ 0x80009, 0x80085, 2, 0, 2, 27 }, // 2.0.5
VersionInfo{ 0x80009, 0x80085, 2, 0, 2, 28 }, // 2.0.6
};

static_assert(versions.size() == static_cast<std::size_t>(Version::Total));
Expand Down Expand Up @@ -167,19 +168,19 @@ class VersionParser {
class TurnipParser {
private:
constexpr static std::array turnip_offsets = {
0x4118C0ul, // 1.0.0
0x412060ul, 0x412060ul, 0x412060ul, 0x412060ul, 0x412060ul, // 1.1.x
0x412060ul, 0x412060ul, // 1.2.x
0x412060ul, 0x412060ul, // 1.3.x
0x412060ul, 0x412060ul, 0x412060ul, // 1.4.x
0x41d4a0ul, 0x41d4a0ul, // 1.5.x
0x41d570ul, // 1.6.0
0x41b63cul, // 1.7.0
0x41b63cul, // 1.8.0
0x43ec6cul, // 1.9.0
0x43ec7cul, // 1.10.0
0x43ec7cul, 0x43ec7cul, // 1.11.x
0x45e35cul, 0x45e35cul, 0x45e35cul, 0x45e35cul, 0x45e35cul, 0x45e35cul, // 2.0.x
0x4118C0ul, // 1.0.0
0x412060ul, 0x412060ul, 0x412060ul, 0x412060ul, 0x412060ul, // 1.1.x
0x412060ul, 0x412060ul, // 1.2.x
0x412060ul, 0x412060ul, // 1.3.x
0x412060ul, 0x412060ul, 0x412060ul, // 1.4.x
0x41d4a0ul, 0x41d4a0ul, // 1.5.x
0x41d570ul, // 1.6.0
0x41b63cul, // 1.7.0
0x41b63cul, // 1.8.0
0x43ec6cul, // 1.9.0
0x43ec7cul, // 1.10.0
0x43ec7cul, 0x43ec7cul, // 1.11.x
0x45e35cul, 0x45e35cul, 0x45e35cul, 0x45e35cul, 0x45e35cul, 0x45e35cul, 0x45e35cul, // 2.0.x
};

constexpr static std::array turnip_patterns = {
Expand Down Expand Up @@ -219,19 +220,19 @@ class TurnipParser {
class VisitorParser {
private:
constexpr static std::array visitor_offsets = {
0x414f8cul, // 1.0.0
0x41572cul, 0x41572cul, 0x41572cul, 0x41572cul, 0x41572cul, // 1.1.x
0x4159d8ul, 0x4159d8ul, // 1.2.x
0x4159d8ul, 0x4159d8ul, // 1.3.x
0x4159d8ul, 0x4159d8ul, 0x4159d8ul, // 1.4.x
0x420e18ul, 0x420e18ul, // 1.5.x
0x420ee8ul, // 1.6.0
0x41f0b4ul, // 1.7.0
0x41f0b4ul, // 1.8.0
0x4426e4ul, // 1.9.0
0x4426f4ul, // 1.10.0
0x4426f4ul, 0x4426f4ul, // 1.11.x
0x462158ul, 0x462158ul, 0x462158ul, 0x462158ul, 0x462158ul, 0x462158ul, // 2.0.x
0x414f8cul, // 1.0.0
0x41572cul, 0x41572cul, 0x41572cul, 0x41572cul, 0x41572cul, // 1.1.x
0x4159d8ul, 0x4159d8ul, // 1.2.x
0x4159d8ul, 0x4159d8ul, // 1.3.x
0x4159d8ul, 0x4159d8ul, 0x4159d8ul, // 1.4.x
0x420e18ul, 0x420e18ul, // 1.5.x
0x420ee8ul, // 1.6.0
0x41f0b4ul, // 1.7.0
0x41f0b4ul, // 1.8.0
0x4426e4ul, // 1.9.0
0x4426f4ul, // 1.10.0
0x4426f4ul, 0x4426f4ul, // 1.11.x
0x462158ul, 0x462158ul, 0x462158ul, 0x462158ul, 0x462158ul, 0x462158ul, 0x462158ul, // 2.0.x
};

constexpr static std::array visitor_names = {
Expand Down Expand Up @@ -293,19 +294,19 @@ class VisitorParser {
class DateParser {
private:
constexpr static std::array date_offsets = {
0xac0928ul, // 1.0.0
0xac27c8ul, 0xac27c8ul, 0xac27c8ul, 0xac27c8ul, 0xac27c8ul, // 1.1.x
0xace9f8ul, 0xace9f8ul, // 1.2.x
0xaceaa8ul, 0xaceaa8ul, // 1.3.x
0xb054a8ul, 0xb054a8ul, 0xb054a8ul, // 1.4.x
0xb20468ul, 0xb20468ul, // 1.5.x
0xb25038ul, // 1.6.0
0x849388ul, // 1.7.0
0x849388ul, // 1.8.0
0x86ccc0ul, // 1.9.0
0x86ccd0ul, // 1.10.0
0x86ccd0ul, 0x86ccd0ul, // 1.11.x
0x8be540ul, 0x8be540ul, 0x8be540ul, 0x8be540ul, 0x8be540ul, 0x8be540ul, // 2.0.x
0xac0928ul, // 1.0.0
0xac27c8ul, 0xac27c8ul, 0xac27c8ul, 0xac27c8ul, 0xac27c8ul, // 1.1.x
0xace9f8ul, 0xace9f8ul, // 1.2.x
0xaceaa8ul, 0xaceaa8ul, // 1.3.x
0xb054a8ul, 0xb054a8ul, 0xb054a8ul, // 1.4.x
0xb20468ul, 0xb20468ul, // 1.5.x
0xb25038ul, // 1.6.0
0x849388ul, // 1.7.0
0x849388ul, // 1.8.0
0x86ccc0ul, // 1.9.0
0x86ccd0ul, // 1.10.0
0x86ccd0ul, 0x86ccd0ul, // 1.11.x
0x8be540ul, 0x8be540ul, 0x8be540ul, 0x8be540ul, 0x8be540ul, 0x8be540ul, 0x8be540ul, // 2.0.x
};

static_assert(date_offsets.size() == static_cast<std::size_t>(Version::Total));
Expand Down Expand Up @@ -340,19 +341,19 @@ class DateParser {
class WeatherSeedParser {
private:
constexpr static std::array info_offsets = {
0x1d70ccul, // 1.0.0
0x1d70d4ul, 0x1d70d4ul, 0x1d70d4ul, 0x1d70d4ul, 0x1d70d4ul, // 1.1.x
0x1d70d4ul, 0x1d70d4ul, // 1.2.x
0x1d70d4ul, 0x1d70d4ul, // 1.3.x
0x1d70d4ul, 0x1d70d4ul, 0x1d70d4ul, // 1.4.x
0x1e24d4ul, 0x1e24d4ul, // 1.5.x
0x1e24d4ul, // 1.6.0
0x1e24d4ul, // 1.7.0
0x1e24d4ul, // 1.8.0
0x1e24d4ul, // 1.9.0
0x1e24e4ul, // 1.10.0
0x1e24e4ul, 0x1e24e4ul, // 1.11.x
0x1e3714ul, 0x1e3714ul, 0x1e3714ul, 0x1e3714ul, 0x1e3714ul, 0x1e3714ul, // 2.0.x
0x1d70ccul, // 1.0.0
0x1d70d4ul, 0x1d70d4ul, 0x1d70d4ul, 0x1d70d4ul, 0x1d70d4ul, // 1.1.x
0x1d70d4ul, 0x1d70d4ul, // 1.2.x
0x1d70d4ul, 0x1d70d4ul, // 1.3.x
0x1d70d4ul, 0x1d70d4ul, 0x1d70d4ul, // 1.4.x
0x1e24d4ul, 0x1e24d4ul, // 1.5.x
0x1e24d4ul, // 1.6.0
0x1e24d4ul, // 1.7.0
0x1e24d4ul, // 1.8.0
0x1e24d4ul, // 1.9.0
0x1e24e4ul, // 1.10.0
0x1e24e4ul, 0x1e24e4ul, // 1.11.x
0x1e3714ul, 0x1e3714ul, 0x1e3714ul, 0x1e3714ul, 0x1e3714ul, 0x1e3714ul, 0x1e3714ul, // 2.0.x
};

constexpr static std::uint32_t weather_seed_max = 2147483647;
Expand Down

0 comments on commit c0bbf45

Please sign in to comment.