CON: Add STR_USERMAPFILENAME for qgetsysstr.

Patch from Fox.

git-svn-id: https://svn.eduke32.com/eduke32@6629 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2018-01-30 01:03:50 +00:00
parent e741c8d067
commit b497a6cbde
3 changed files with 5 additions and 0 deletions

View file

@ -6295,6 +6295,7 @@ static void C_AddDefaultDefinitions(void)
{ "STR_PARTIME", STR_PARTIME },
{ "STR_DESIGNERTIME", STR_DESIGNERTIME },
{ "STR_BESTTIME", STR_BESTTIME },
{ "STR_USERMAPFILENAME", STR_USERMAPFILENAME },
{ "MAXSTATUS", MAXSTATUS },
{ "MAXSPRITES", MAXSPRITES },

View file

@ -218,6 +218,7 @@ enum SystemString_t {
STR_PARTIME,
STR_DESIGNERTIME,
STR_BESTTIME,
STR_USERMAPFILENAME,
};
enum ScriptError_t

View file

@ -2357,6 +2357,9 @@ skip_check:
case STR_BESTTIME:
Bstrcpy(apStrings[i],G_PrintBestTime());
break;
case STR_USERMAPFILENAME:
Bstrcpy(apStrings[i],boardfilename);
break;
default:
CON_ERRPRINTF("invalid string index %d or %d\n", i, j);
}