mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 13:01:47 +00:00
Add wad name to mapchecksum output
This commit is contained in:
parent
93c7f4b4b5
commit
ee9f64427c
1 changed files with 2 additions and 1 deletions
|
@ -595,12 +595,13 @@ CCMD (mapchecksum)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
map->GetChecksum(cksum);
|
map->GetChecksum(cksum);
|
||||||
|
const char *wadname = Wads.GetWadName(Wads.GetLumpFile(map->lumpnum));
|
||||||
delete map;
|
delete map;
|
||||||
for (size_t j = 0; j < sizeof(cksum); ++j)
|
for (size_t j = 0; j < sizeof(cksum); ++j)
|
||||||
{
|
{
|
||||||
Printf("%02X", cksum[j]);
|
Printf("%02X", cksum[j]);
|
||||||
}
|
}
|
||||||
Printf(" // %s\n", argv[i]);
|
Printf(" // %s %s\n", wadname, argv[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue