Skip to content

Commit

Permalink
Fixed missing trace on expanded commands (#809)
Browse files Browse the repository at this point in the history
  • Loading branch information
KiritoDv authored Feb 21, 2025
1 parent 7fb120b commit 204c62f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/resource/factory/DisplayListFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,11 @@ std::shared_ptr<Ship::IResource> ResourceFactoryBinaryDisplayListV0::ReadResourc

// These are 128-bit commands, so read an extra 64 bits...
if (isExpanded) {
#ifdef USE_GBI_TRACE
command.words.trace.file = file->InitData->Path.c_str();
command.words.trace.idx = idx++;
command.words.trace.valid = true;
#endif
displayList->Instructions.push_back(command);
command.words.w0 = reader->ReadUInt32();
command.words.w1 = reader->ReadUInt32();
Expand Down

0 comments on commit 204c62f

Please sign in to comment.