Skip to content

Commit

Permalink
Adds ColorSchemes to the dump heap debug command.
Browse files Browse the repository at this point in the history
  • Loading branch information
CCHyper committed Jul 20, 2021
1 parent bcfb94f commit bb93f07
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/extensions/command/commandext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,27 @@ bool DumpHeapCRCCommandClass::Process()

LOG_CRC(WeaponTypeClass, WeaponTypes);
LOG_CRC(WarheadTypeClass, WarheadTypes);

/**
* Color Schemes.
*/
{
DEBUG_INFO("ColorSchemes :\n");
if (!ColorSchemes.Count()) {
DEBUG_INFO(" EMPTY\n");
} else {
WWCRCEngine crc;
for (unsigned i = 0; i < ColorSchemes.Count(); ++i) {
ColorScheme *ptr = ColorSchemes[i];
if (ptr != nullptr) {
DEBUG_INFO(" %04d\tName: %s\tfield_310: %d\n", i, ptr->Name, ptr->field_310);
} else {
DEBUG_INFO(" %04d\tFAILED!\n", i);
}
}
}
DEBUG_INFO("\n");
}

DEBUG_INFO("\nFinished!\n\n");

Expand Down

0 comments on commit bb93f07

Please sign in to comment.