[gamecode] Re-expose PR_LoadStrings

It's required for qfprogs now that PR_LoadDebug reads strings early.
This commit is contained in:
Bill Currie 2020-04-04 14:30:50 +09:00
parent 63714c7c55
commit 2bec2527b4
3 changed files with 9 additions and 1 deletions

View file

@ -1254,6 +1254,13 @@ int PR_RelocateBuiltins (progs_t *pr);
*/
void PR_Strings_Init (progs_t *pr);
/** Initialize the string tables using the strings supplied by the progs.
Called automatically during progs load.
\param pr pointer to ::progs_t VM struct
\return true for success, false for failure
*/
int PR_LoadStrings (progs_t *pr);
/** Check the validity of a string index.
\param pr pointer to ::progs_t VM struct
\param num string index to be validated

View file

@ -229,7 +229,7 @@ pr_strings_clear (progs_t *pr, void *data)
pr->pr_xtstr = 0;
}
static int
VISIBLE int
PR_LoadStrings (progs_t *pr)
{
prstr_resources_t *res = PR_Resources_Find (pr, "Strings");

View file

@ -289,6 +289,7 @@ load_progs (const char *name)
return 0;
PR_ResolveGlobals (&pr);
PR_LoadStrings (&pr);
PR_LoadDebug (&pr);
}
for (i = 0; i < pr.progs->numfunctions; i++) {