From 547a74ff3c4c83626443033fbc6c2ecc5cc384e3 Mon Sep 17 00:00:00 2001 From: averne Date: Tue, 17 Aug 2021 12:13:46 +0200 Subject: [PATCH] Update for v1.11.1 (closes #44) --- Makefile | 2 +- src/parser.hpp | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 664940c..14c7dcd 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ endif TOPDIR ?= $(CURDIR) -VERSION = 1.6.11 +VERSION = 1.6.12 COMMIT = $(shell git rev-parse --short HEAD) # ----------------------------------------------- diff --git a/src/parser.hpp b/src/parser.hpp index 28883fd..b7619e9 100644 --- a/src/parser.hpp +++ b/src/parser.hpp @@ -42,6 +42,7 @@ enum class Version: std::size_t { V190, V1100, V1110, + V1111, Unknown, Total = Unknown, }; @@ -127,6 +128,7 @@ class VersionParser { VersionInfo{ 0x7c001, 0x7c006, 2, 0, 2, 18 }, // 1.9.0 VersionInfo{ 0x7d001, 0x7d004, 2, 0, 2, 19 }, // 1.10.0 VersionInfo{ 0x7e001, 0x7e001, 2, 0, 2, 20 }, // 1.11.0 + VersionInfo{ 0x7e001, 0x7e001, 2, 0, 2, 21 }, // 1.11.1 }; static_assert(versions.size() == static_cast(Version::Total)); @@ -170,7 +172,7 @@ class TurnipParser { 0x41b63cul, // 1.8.0 0x43ec6cul, // 1.9.0 0x43ec7cul, // 1.10.0 - 0x43ec7cul, // 1.11.0 + 0x43ec7cul, 0x43ec7cul, // 1.11.x }; constexpr static std::array turnip_patterns = { @@ -221,7 +223,7 @@ class VisitorParser { 0x41f0b4ul, // 1.8.0 0x4426e4ul, // 1.9.0 0x4426f4ul, // 1.10.0 - 0x4426f4ul, // 1.11.0 + 0x4426f4ul, 0x4426f4ul, // 1.11.x }; constexpr static std::array visitor_names = { @@ -294,7 +296,7 @@ class DateParser { 0x849388ul, // 1.8.0 0x86ccc0ul, // 1.9.0 0x86ccd0ul, // 1.10.0 - 0x86ccd0ul, // 1.11.0 + 0x86ccd0ul, 0x86ccd0ul, // 1.11.x }; static_assert(date_offsets.size() == static_cast(Version::Total)); @@ -340,7 +342,7 @@ class WeatherSeedParser { 0x1e24d4ul, // 1.8.0 0x1e24d4ul, // 1.9.0 0x1e24e4ul, // 1.10.0 - 0x1e24e4ul, // 1.11.0 + 0x1e24e4ul, 0x1e24e4ul, // 1.11.x }; constexpr static std::uint32_t weather_seed_max = 2147483647;