summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-11-13 21:46:09 +0000
committerfrosch <frosch@openttd.org>2012-11-13 21:46:09 +0000
commit4aa17c5109d66787db20827093996cc4384ab777 (patch)
tree502577be070ded2b4e02df2dc0cb0736f9e70b68 /src
parenteb56e60e94902fc9fd6e88da874292ece021351f (diff)
downloadopenttd-4aa17c5109d66787db20827093996cc4384ab777.tar.xz
(svn r24722) -Add: Display unique ID and md5sum in console content info.
Diffstat (limited to 'src')
-rw-r--r--src/console_cmds.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp
index 05846c96f..c3e81919e 100644
--- a/src/console_cmds.cpp
+++ b/src/console_cmds.cpp
@@ -1776,7 +1776,9 @@ DEF_CONSOLE_CMD(ConContent)
static const TextColour state_to_colour[] = { CC_COMMAND, CC_INFO, CC_INFO, CC_WHITE, CC_ERROR };
const ContentInfo *ci = *iter;
- IConsolePrintF(state_to_colour[ci->state], "%d, %s, %s, %s", ci->id, types[ci->type - 1], states[ci->state], ci->name);
+ char buf[sizeof(ci->md5sum) * 2 + 1];
+ md5sumToString(buf, lastof(buf), ci->md5sum);
+ IConsolePrintF(state_to_colour[ci->state], "%d, %s, %s, %s, %08X, %s", ci->id, types[ci->type - 1], states[ci->state], ci->name, ci->unique_id, buf);
}
return true;
}