From bb93f07bdf25e6b9a5a597fb0ba69d32a56076a1 Mon Sep 17 00:00:00 2001 From: CCHyper <73803386+CCHyper@users.noreply.github.com> Date: Tue, 13 Jul 2021 13:12:32 +0100 Subject: [PATCH] Adds ColorSchemes to the dump heap debug command. --- src/extensions/command/commandext.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/extensions/command/commandext.cpp b/src/extensions/command/commandext.cpp index 61158fc52..337c580e8 100644 --- a/src/extensions/command/commandext.cpp +++ b/src/extensions/command/commandext.cpp @@ -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");