diff --git a/polymer/eduke32/source/gamedef.c b/polymer/eduke32/source/gamedef.c index bb83b7ade..a41be68f5 100644 --- a/polymer/eduke32/source/gamedef.c +++ b/polymer/eduke32/source/gamedef.c @@ -6019,6 +6019,10 @@ static void C_AddDefaultDefinitions(void) C_AddDefinition("STR_VERSION",STR_VERSION,LABEL_DEFINE); C_AddDefinition("STR_GAMETYPE",STR_GAMETYPE,LABEL_DEFINE); C_AddDefinition("STR_VOLUMENAME",STR_VOLUMENAME,LABEL_DEFINE); + C_AddDefinition("STR_YOURTIME",STR_YOURTIME,LABEL_DEFINE); + C_AddDefinition("STR_PARTIME",STR_PARTIME,LABEL_DEFINE); + C_AddDefinition("STR_DESIGNERTIME",STR_DESIGNERTIME,LABEL_DEFINE); + C_AddDefinition("STR_BESTTIME",STR_BESTTIME,LABEL_DEFINE); C_AddDefinition("NO",0,LABEL_DEFINE|LABEL_ACTION|LABEL_AI|LABEL_MOVE); C_AddDefinition("MAXSTATUS", MAXSTATUS, LABEL_DEFINE); diff --git a/polymer/eduke32/source/gamedef.h b/polymer/eduke32/source/gamedef.h index 51d276229..52874264b 100644 --- a/polymer/eduke32/source/gamedef.h +++ b/polymer/eduke32/source/gamedef.h @@ -139,7 +139,11 @@ enum SystemString_t { STR_PLAYERNAME, STR_VERSION, STR_GAMETYPE, - STR_VOLUMENAME + STR_VOLUMENAME, + STR_YOURTIME, + STR_PARTIME, + STR_DESIGNERTIME, + STR_BESTTIME, }; enum ScriptError_t diff --git a/polymer/eduke32/source/gameexec.c b/polymer/eduke32/source/gameexec.c index d54fef85b..1c5811477 100644 --- a/polymer/eduke32/source/gameexec.c +++ b/polymer/eduke32/source/gameexec.c @@ -2237,6 +2237,18 @@ skip_check: } Bstrcpy(ScriptQuotes[i],EpisodeNames[ud.volume_number]); break; + case STR_YOURTIME: + Bstrcpy(ScriptQuotes[i],G_PrintYourTime()); + break; + case STR_PARTIME: + Bstrcpy(ScriptQuotes[i],G_PrintParTime()); + break; + case STR_DESIGNERTIME: + Bstrcpy(ScriptQuotes[i],G_PrintDesignerTime()); + break; + case STR_BESTTIME: + Bstrcpy(ScriptQuotes[i],G_PrintBestTime()); + break; default: CON_ERRPRINTF("unknown str ID %d %d\n", i,j); } diff --git a/polymer/eduke32/source/lunatic/con_lang.lua b/polymer/eduke32/source/lunatic/con_lang.lua index 3c6e19825..fe266a373 100644 --- a/polymer/eduke32/source/lunatic/con_lang.lua +++ b/polymer/eduke32/source/lunatic/con_lang.lua @@ -37,6 +37,10 @@ local STR = { STR_VERSION = 3, STR_GAMETYPE = 4, STR_VOLUMENAME = 5, + STR_YOURTIME = 6, + STR_PARTIME = 7, + STR_DESIGNERTIME = 8, + STR_BESTTIME = 9, } PROJ = { diff --git a/polymer/eduke32/source/lunatic/control.lua b/polymer/eduke32/source/lunatic/control.lua index d1d5ecd07..9497f36d4 100644 --- a/polymer/eduke32/source/lunatic/control.lua +++ b/polymer/eduke32/source/lunatic/control.lua @@ -938,6 +938,14 @@ function _qgetsysstr(qdst, what, pli) local vol = ffiC.ud.volume_number bcheck.volume_idx(vol) ffi.copy(dst, ffiC.EpisodeNames[vol], ffi.sizeof(ffiC.EpisodeNames[0])) + elseif (what == ffiC.STR_YOURTIME) then + ffi.copy(dst, ffiC.G_PrintYourTime()) + elseif (what == ffiC.STR_PARTIME) then + ffi.copy(dst, ffiC.G_PrintParTime()) + elseif (what == ffiC.STR_DESIGNERTIME) then + ffi.copy(dst, ffiC.G_PrintDesignerTime()) + elseif (what == ffiC.STR_BESTTIME) then + ffi.copy(dst, ffiC.G_PrintBestTime()) else error("unknown system string ID "..what, 2) end