Skip to content

Commit a76fe3f

Browse files
committed
core: add loplyguy.dff warning
Closes: rwengine#687 Signed-off-by: David Heidelberg <[email protected]>
1 parent ebc0d05 commit a76fe3f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rwcore/loaders/LoaderDFF.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,11 @@ AtomicPtr LoaderDFF::readAtomic(FrameList &framelist,
439439
// Verify the atomic's particulars
440440
RW_CHECK(frame < framelist.size(), "atomic frame " << frame
441441
<< " out of bounds");
442+
RW_CHECK(atomicStream.getChunkVersion() >= 0x30400,
443+
"Warning: You using old assets (old LOPLYGUY.DFF version 0x" <<
444+
std::hex << atomicStream.getChunkVersion() <<
445+
"). Expect atomic geometry warning!\n"
446+
"Please, upgrade your game data.\n");
442447
RW_CHECK(geometry < geometrylist.size(),
443448
"atomic geometry " << geometry << " out of bounds");
444449

0 commit comments

Comments
 (0)