Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.7.4
VERSION = 1.7.5
COMMIT = $(shell git rev-parse --short HEAD)

# -----------------------------------------------
Expand Down
6 changes: 6 additions & 0 deletions src/parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ enum class Version: std::size_t {
V1100,
V1110, V1111,
V200, V201, V202, V203, V204, V205, V206, V207, V208,
V300,
Unknown,
Total = Unknown,
};
Expand Down Expand Up @@ -138,6 +139,7 @@ class VersionParser {
VersionInfo{ 0x80009, 0x80085, 2, 0, 2, 28 }, // 2.0.6
VersionInfo{ 0x80009, 0x80085, 2, 0, 2, 29 }, // 2.0.7
VersionInfo{ 0x80009, 0x80085, 2, 0, 2, 30 }, // 2.0.8
VersionInfo{ 0xA0002, 0xA0028, 2, 0, 2, 31 }, // 3.0.0
};

static_assert(versions.size() == static_cast<std::size_t>(Version::Total));
Expand Down Expand Up @@ -183,6 +185,7 @@ class TurnipParser {
0x43ec7cul, // 1.10.0
0x43ec7cul, 0x43ec7cul, // 1.11.x
0x45e35cul, 0x45e35cul, 0x45e35cul, 0x45e35cul, 0x45e35cul, 0x45e35cul, 0x45e35cul, 0x45e35cul, 0x45e35cul, // 2.0.x
0x490770ul, // 3.0.0
};

constexpr static std::array turnip_patterns = {
Expand Down Expand Up @@ -235,6 +238,7 @@ class VisitorParser {
0x4426f4ul, // 1.10.0
0x4426f4ul, 0x4426f4ul, // 1.11.x
0x462158ul, 0x462158ul, 0x462158ul, 0x462158ul, 0x462158ul, 0x462158ul, 0x462158ul, 0x462158ul, 0x462158ul, // 2.0.x
0x494624ul, // 3.0.0
};

constexpr static std::array visitor_names = {
Expand Down Expand Up @@ -309,6 +313,7 @@ class DateParser {
0x86ccd0ul, // 1.10.0
0x86ccd0ul, 0x86ccd0ul, // 1.11.x
0x8be540ul, 0x8be540ul, 0x8be540ul, 0x8be540ul, 0x8be540ul, 0x8be540ul, 0x8be540ul, 0x8be540ul, 0x8be540ul, // 2.0.x
0x97d670ul, // 3.0.0
};

static_assert(date_offsets.size() == static_cast<std::size_t>(Version::Total));
Expand Down Expand Up @@ -356,6 +361,7 @@ class WeatherSeedParser {
0x1e24e4ul, // 1.10.0
0x1e24e4ul, 0x1e24e4ul, // 1.11.x
0x1e3714ul, 0x1e3714ul, 0x1e3714ul, 0x1e3714ul, 0x1e3714ul, 0x1e3714ul, 0x1e3714ul, 0x1e3714ul, 0x1e3714ul, // 2.0.x
0x1e3714ul, // 3.0.0
};

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