From 536ff9e95d7287c5fa7bdb27b3a450c5574f0877 Mon Sep 17 00:00:00 2001 From: David Heidelberg Date: Tue, 26 Nov 2024 13:29:42 -0500 Subject: [PATCH] core: add loplyguy.dff warning Closes: https://github.com/rwengine/openrw/issues/687 Signed-off-by: David Heidelberg --- rwcore/loaders/LoaderDFF.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rwcore/loaders/LoaderDFF.cpp b/rwcore/loaders/LoaderDFF.cpp index 85473dc0f..a321271f3 100644 --- a/rwcore/loaders/LoaderDFF.cpp +++ b/rwcore/loaders/LoaderDFF.cpp @@ -439,6 +439,11 @@ AtomicPtr LoaderDFF::readAtomic(FrameList &framelist, // Verify the atomic's particulars RW_CHECK(frame < framelist.size(), "atomic frame " << frame << " out of bounds"); + RW_CHECK(atomicStream.getChunkVersion() >= 0x30400, + "Warning: You using old assets (old LOPLYGUY.DFF version 0x" << + std::hex << atomicStream.getChunkVersion() << + "). Expect atomic geometry warning!\n" + "Please, upgrade your game data.\n"); RW_CHECK(geometry < geometrylist.size(), "atomic geometry " << geometry << " out of bounds");