Commit 9a9750fd authored by Richard Gobeille's avatar Richard Gobeille

Duke3d: add STR_REVISION to CON_QGETSYSSTR

It returns the binary's revision string without the "r".
parent 13342dcb
......@@ -6074,6 +6074,7 @@ static void C_AddDefaultDefinitions(void)
{ "STR_MAPNAME", STR_MAPNAME },
{ "STR_PARTIME", STR_PARTIME },
{ "STR_PLAYERNAME", STR_PLAYERNAME },
{ "STR_REVISION", STR_REVISION },
{ "STR_USERMAPFILENAME", STR_USERMAPFILENAME },
{ "STR_VERSION", STR_VERSION },
{ "STR_VOLUMENAME", STR_VOLUMENAME },
......
......@@ -204,6 +204,7 @@ enum SystemString_t {
STR_DESIGNERTIME,
STR_BESTTIME,
STR_USERMAPFILENAME,
STR_REVISION,
};
enum ScriptError_t
......
......@@ -3888,6 +3888,7 @@ badindex:
VM_ASSERT((unsigned)ud.volume_number < MAXVOLUMES, "invalid volume %d\n", ud.volume_number);
Bstrcpy(apStrings[q], g_volumeNames[ud.volume_number]);
break;
case STR_REVISION: Bstrcpy(apStrings[q], &s_buildRev[1]); break;
case STR_YOURTIME: Bstrcpy(apStrings[q], G_PrintYourTime()); break;
case STR_PARTIME: Bstrcpy(apStrings[q], G_PrintParTime()); break;
case STR_DESIGNERTIME: Bstrcpy(apStrings[q], G_PrintDesignerTime()); break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment