From ce01181d88cf0feadfbf804a9b99bfa318234a5f Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 19 Jun 2022 15:17:35 +0000 Subject: [PATCH] wither reported that findkeysforcommandex wasn't present in menuqc. Fix that. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6264 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/pr_menu.c | 1 + engine/server/pr_cmds.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/engine/client/pr_menu.c b/engine/client/pr_menu.c index 802454fc8..a0e4788dc 100644 --- a/engine/client/pr_menu.c +++ b/engine/client/pr_menu.c @@ -2652,6 +2652,7 @@ static struct { {"getresolution", PF_cl_getresolution, 608}, {"keynumtostring", PF_cl_keynumtostring, 609}, {"findkeysforcommand", PF_cl_findkeysforcommand, 610}, + {"findkeysforcommandex", PF_cl_findkeysforcommandex, 0}, {"gethostcachevalue", PF_cl_gethostcachevalue, 611}, {"gethostcachestring", PF_cl_gethostcachestring, 612}, {"parseentitydata", PF_parseentitydata, 613}, diff --git a/engine/server/pr_cmds.c b/engine/server/pr_cmds.c index 60e570990..10a46f4f4 100644 --- a/engine/server/pr_cmds.c +++ b/engine/server/pr_cmds.c @@ -13733,9 +13733,9 @@ void PR_DumpPlatform_f(void) {"FILE_READ", "const float", ALL, D("The file may be read via fgets to read a single line at a time."), FRIK_FILE_READ}, {"FILE_APPEND", "const float", ALL, D("Like FILE_WRITE, but writing starts at the end of the file."), FRIK_FILE_APPEND}, {"FILE_WRITE", "const float", ALL, D("fputs will be used to write to the file."), FRIK_FILE_WRITE}, - {"FILE_READNL", "const float", QW|NQ|CS, D("Like FILE_READ, except newlines are not special. fgets reads the entire file into a tempstring."), FRIK_FILE_READNL}, - {"FILE_MMAP_READ", "const float", QW|NQ|CS, D("The file will be loaded into memory. fgets returns a pointer to the first byte (and will always return the same value for this file). Cast this to your datatype."), FRIK_FILE_MMAP_READ}, - {"FILE_MMAP_RW", "const float", QW|NQ|CS, D("Like FILE_MMAP_READ, except any changes to the data will be written back to disk once the file is closed."), FRIK_FILE_MMAP_RW}, + {"FILE_READNL", "const float", ALL, D("Like FILE_READ, except newlines are not special. fgets reads the entire file into a tempstring."), FRIK_FILE_READNL}, + {"FILE_MMAP_READ", "const float", ALL, D("The file will be loaded into memory. fgets returns a pointer to the first byte (and will always return the same value for this file). Cast this to your datatype."), FRIK_FILE_MMAP_READ}, + {"FILE_MMAP_RW", "const float", ALL, D("Like FILE_MMAP_READ, except any changes to the data will be written back to disk once the file is closed."), FRIK_FILE_MMAP_RW}, {"MASK_ENGINE", "const float", CS, D("Valid as an argument for addentities. If specified, all non-csqc entities will be added to the scene."), MASK_DELTA}, {"MASK_VIEWMODEL", "const float", CS, D("Valid as an argument for addentities. If specified, the regular engine viewmodel will be added to the scene."), MASK_STDVIEWMODEL},