mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 11:10:39 +00:00
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:
parent
e741c8d067
commit
b497a6cbde
3 changed files with 5 additions and 0 deletions
|
@ -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 },
|
||||
|
|
|
@ -218,6 +218,7 @@ enum SystemString_t {
|
|||
STR_PARTIME,
|
||||
STR_DESIGNERTIME,
|
||||
STR_BESTTIME,
|
||||
STR_USERMAPFILENAME,
|
||||
};
|
||||
|
||||
enum ScriptError_t
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue