Skip to content

Commit

Permalink
core: add loplyguy.dff warning
Browse files Browse the repository at this point in the history
Closes: rwengine#687

Signed-off-by: David Heidelberg <[email protected]>
  • Loading branch information
okias committed Nov 26, 2024
1 parent ebc0d05 commit a76fe3f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rwcore/loaders/LoaderDFF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit a76fe3f

Please sign in to comment.