From 14fd17bc1525703c53b5be9f26337f4fcc97bf43 Mon Sep 17 00:00:00 2001 From: AlejandroFuster <9201111+AlejandroFuster@users.noreply.github.com> Date: Tue, 14 Apr 2026 15:55:36 +0200 Subject: [PATCH] Update for 3.0.2 --- Makefile | 2 +- src/parser.hpp | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index dbe053d..035b07a 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ endif TOPDIR ?= $(CURDIR) -VERSION = 1.7.6 +VERSION = 1.7.7 COMMIT = $(shell git rev-parse --short HEAD) # ----------------------------------------------- diff --git a/src/parser.hpp b/src/parser.hpp index 6d84888..acf2a3b 100644 --- a/src/parser.hpp +++ b/src/parser.hpp @@ -43,7 +43,7 @@ enum class Version: std::size_t { V1100, V1110, V1111, V200, V201, V202, V203, V204, V205, V206, V207, V208, - V300,V301, + V300, V301, V302, Unknown, Total = Unknown, }; @@ -141,6 +141,7 @@ class VersionParser { VersionInfo{ 0x80009, 0x80085, 2, 0, 2, 30 }, // 2.0.8 VersionInfo{ 0xA0002, 0xA0028, 2, 0, 2, 31 }, // 3.0.0 VersionInfo{ 0xA0002, 0xA0028, 2, 0, 2, 32 }, // 3.0.1 + VersionInfo{ 0xA0002, 0xA0028, 2, 0, 2, 33 }, // 3.0.2 }; static_assert(versions.size() == static_cast(Version::Total)); @@ -186,7 +187,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, 0x490770ul, // 3.0.x + 0x490770ul, 0x490770ul, 0x490770ul, // 3.0.x }; constexpr static std::array turnip_patterns = { @@ -239,7 +240,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, 0x494624ul, // 3.0.x + 0x494624ul, 0x494624ul, 0x494624ul, // 3.0.x }; constexpr static std::array visitor_names = { @@ -314,7 +315,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, 0x97d670ul, // 3.0.x + 0x97d670ul, 0x97d670ul, 0x97d670ul, // 3.0.x }; static_assert(date_offsets.size() == static_cast(Version::Total)); @@ -362,7 +363,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, 0x1e3714ul, // 3.0.x + 0x1e3714ul, 0x1e3714ul, 0x1e3714ul, // 3.0.x }; constexpr static std::uint32_t weather_seed_max = 2147483647;