diff options
Diffstat (limited to 'src/engineapi.c')
-rw-r--r-- | src/engineapi.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/engineapi.c b/src/engineapi.c index 5a78a92..62a4eb1 100644 --- a/src/engineapi.c +++ b/src/engineapi.c @@ -1,5 +1,5 @@ /* - * Copyright © 2024 Michael Smith <mikesmiffy128@gmail.com> + * Copyright © 2025 Michael Smith <mikesmiffy128@gmail.com> * Copyright © 2023 Willian Henrique <wsimanbrazil@yahoo.com.br> * * Permission to use, copy, modify, and/or distribute this software for any @@ -18,6 +18,7 @@ #include <stdlib.h> // used in generated code #include <string.h> // " +#include "abi.h" // for NVDTOR use in gamedata generated code #include "con_.h" #include "engineapi.h" #include "gamedata.h" @@ -30,7 +31,7 @@ #include "vcall.h" #include "x86.h" -u64 _gametype_tag = 0; // declared in gametype.h but seems sensible enough here +u32 _gametype_tag = 0; // declared in gametype.h but seems sensible enough here ifacefactory factory_client = 0, factory_server = 0, factory_engine = 0, factory_inputsystem = 0; @@ -49,6 +50,7 @@ struct CServerPlugin *pluginhandler; DECL_VFUNC_DYN(void *, GetAllServerClasses) #include <entpropsinit.gen.h> // generated by build/mkentprops.c +#include <gamedatainit.gen.h> // generated by build/mkgamedata.c bool engineapi_init(int pluginver) { if_cold (!con_detect(pluginver)) return false; @@ -110,8 +112,7 @@ bool engineapi_init(int pluginver) { _gametype_tag |= _gametype_tag_TheLastStand; } } - - gamedata_init(); + initgamedata(); con_init(); if_cold (!gameinfo_init()) { con_disconnect(); return false; } return true; |