From 307d30cf7eed4a86e12cbc142aa0534897de3a57 Mon Sep 17 00:00:00 2001 From: LAK132 Date: Sun, 29 Oct 2023 20:36:20 +1030 Subject: [PATCH] hack fix for 281 --- src/explorer.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/explorer.cpp b/src/explorer.cpp index 064b693..e84ae92 100644 --- a/src/explorer.cpp +++ b/src/explorer.cpp @@ -3487,6 +3487,12 @@ namespace SourceExplorer // used for offsets. const size_t begin = cstrm.position(); + if (!game.old_game && game.product_build <= 281) + { + ERROR(":TODO: HACK FIX FOR 281 CRASH"); + return lak::ok_t{}; + } + TRY_ASSIGN(size =, cstrm.read_u32()); DEBUG("Size: ", size); @@ -3905,6 +3911,12 @@ namespace SourceExplorer data_reader_t pstrm(span); + if (!game.old_game && game.product_build <= 281) + { + ERROR(":TODO: HACK FIX FOR 281 CRASH"); + return lak::ok_t{}; + } + TRY_ASSIGN(unknown =, pstrm.read_u32()); CHECK_REMAINING(pstrm, colors.size() * 4); @@ -4047,6 +4059,12 @@ namespace SourceExplorer auto span =, entry.decode_body().RES_ADD_TRACE("frame::object_instances_t::read")); + if (!game.old_game && game.product_build <= 281) + { + ERROR(":TODO: HACK FIX FOR 281 CRASH"); + return lak::ok_t{}; + } + data_reader_t hstrm(span); TRY_ASSIGN(const auto object_count =, hstrm.read_u32());