Skip to content

Commit

Permalink
UI|Home: Package info popup shows WAD directory CRC32
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Mar 23, 2017
1 parent b47fe0b commit 59614dc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions doomsday/apps/client/src/ui/dialogs/packageinfodialog.cpp
Expand Up @@ -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<DataBundle>();
if (bundle)
Expand All @@ -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
{
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 59614dc

Please sign in to comment.