mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
[gamecode] Re-expose PR_LoadStrings
It's required for qfprogs now that PR_LoadDebug reads strings early.
This commit is contained in:
parent
63714c7c55
commit
2bec2527b4
3 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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++) {
|
||||
|
|
Loading…
Reference in a new issue