From 59614dc3dd28fb10b568ad0e35de7d822be0ca4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= Date: Thu, 23 Mar 2017 07:41:59 +0200 Subject: [PATCH] UI|Home: Package info popup shows WAD directory CRC32 --- .../apps/client/src/ui/dialogs/packageinfodialog.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doomsday/apps/client/src/ui/dialogs/packageinfodialog.cpp b/doomsday/apps/client/src/ui/dialogs/packageinfodialog.cpp index 3b6e8aec1c..5312a28f1a 100644 --- a/doomsday/apps/client/src/ui/dialogs/packageinfodialog.cpp +++ b/doomsday/apps/client/src/ui/dialogs/packageinfodialog.cpp @@ -232,6 +232,7 @@ DENG_GUI_PIMPL(PackageInfoDialog) nativePath = file->correspondingNativePath(); String fileDesc = file->source()->description(); + String lumpDirCrc32; String format; DataBundle const *bundle = file->target().maybeAs(); if (bundle) @@ -248,6 +249,11 @@ DENG_GUI_PIMPL(PackageInfoDialog) { fileDesc = file->target().description(); } + else if (bundle->format() == DataBundle::Iwad || + bundle->format() == DataBundle::Pwad) + { + lumpDirCrc32 = String::format("%08x", bundle->lumpDirectory()->crc32()); + } } else { @@ -316,6 +322,11 @@ DENG_GUI_PIMPL(PackageInfoDialog) String::join(bundle->lumpDirectory()->mapsInContiguousRangesAsText(), ", "); } + if (lumpDirCrc32) + { + msg += "\nWAD directory CRC32: " _E(m) + lumpDirCrc32 + _E(.); + } + if (meta.has("notes")) { msg += "\n\n" + meta.gets("notes") + _E(r);