From c2559c7511d613c2ce80e9fc583c5463ff2df712 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 25 Jun 2020 19:38:33 +0900 Subject: [PATCH] [qwaq] PR_RunPostLoadFuncs for qwaq-x11 Same issue as for the menus. But now I know why PR_LoadProgsFile is used instead of PR_LoadProgs (at least for qwaq): avoidance of the gamedir restriction (however, the menus are supposed to be restricted). --- ruamoko/qwaq/builtins/qwaq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruamoko/qwaq/builtins/qwaq.c b/ruamoko/qwaq/builtins/qwaq.c index 111af8764..0a8070825 100644 --- a/ruamoko/qwaq/builtins/qwaq.c +++ b/ruamoko/qwaq/builtins/qwaq.c @@ -149,7 +149,7 @@ load_progs (const char *name) pr.zone_size = 1024*1024; PR_LoadProgsFile (&pr, file, size); Qclose (file); - if (!PR_RunLoadFuncs (&pr)) + if (!PR_RunLoadFuncs (&pr) || !PR_RunPostLoadFuncs (&pr)) PR_Error (&pr, "unable to load %s", pr.progs_name); return 1; }