Skip to content

Commit a9e5ab1

Browse files
committed
core: add loplyguy.dff warning
Closes: #687 Signed-off-by: David Heidelberg <david@ixit.cz>
1 parent f10a5a8 commit a9e5ab1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

rwcore/loaders/LoaderDFF.cpp

Lines changed: 5 additions & 0 deletions
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)