[gamecode] Put strings and debug back in load funcs

It turns out they're required to be initialized before most of the rest
of the system.
This commit is contained in:
Bill Currie 2021-01-12 17:34:57 +09:00
parent 858ac19327
commit db14025935
3 changed files with 2 additions and 2 deletions

View file

@ -1702,7 +1702,6 @@ PR_Debug_Init (progs_t *pr)
pr->hashlink_freelist);
PR_Resources_Register (pr, "PR_Debug", res, pr_debug_clear);
PR_AddLoadFunc (pr, PR_LoadDebug);
}
void

View file

@ -378,7 +378,9 @@ pr_run_ctors (progs_t *pr)
}
static int (*load_funcs_1[])(progs_t *) = {
PR_LoadStrings,
PR_RelocateBuiltins,
PR_LoadDebug,
0,
};

View file

@ -1222,5 +1222,4 @@ PR_Strings_Init (progs_t *pr)
res->print_str = dstring_new ();
PR_Resources_Register (pr, "Strings", res, pr_strings_clear);
PR_AddLoadFunc (pr, PR_LoadStrings);
}