amxmodx/amxmodx
Vincent Herbet 115916d753 Add basic ReHLDS and ReGameDLL support (#417)
* Add ReHLDS API files and its dependencies

Note: This has been stolen from ReAPI AMXX module and modified/adjusted to match AMXX existing includes and to provide as less dependencies as possible as well

* Add the necessary files to get ReHLDS interface

* Split SV_DropClient into pre/post code

* Init ReHLDS API and add SV_DropClient hook

* Add Cvar_DirectSet hook and adjust code with helpers

Note: we don't need to split code here. This is pretty much the naive and straight way, but fairly enough for our case. If it happens we got a lot more hooks, we may consider to use some class to manage better the things.

* Move platform and interface stuff in their own files in public directory

* Make sure to init cvar stuff after ReHLDS

* Add ReGameDLL API files and its dependencies in cstrike module

* Init ReHLDS in cstrike module and adjust code

Note: About cs_uset_set_model(). ReHLDS API doesn't offer a way to know directly the precached models, so instead of looping through all the ressources, the models list is saved one time at map change into a hashmap.

* Init ReGameDLL and adjust code

* Fix linux compilation

* Init ReGameDLL in fakemeta module and adjust code

* Rename /reapi directory to /resdk to avoid confusion

* Retrieve gamerules pointer through InstallGameRules in fakemeta module

* Retrieve gamerules pointer through InstallGameRules in cstrike module

Note: actually gamerules is not used if regamedll is enabled, but it could be used in future natives.

* Fix a typo when ReGameDLL is not enabled

* Fix missing interface check for ReHLDS.

I'm pretty sure I was checking at the very first since I worked first on vanilla version of engine, looks like change has been lost.
2017-03-09 19:59:38 +01:00
..
JIT Fix a floatround bug (#376) 2016-06-27 12:23:08 +02:00
mmgr New dir reading natives, new memory outputs 2005-07-13 23:31:02 +00:00
msvc12 Add basic ReHLDS and ReGameDLL support (#417) 2017-03-09 19:59:38 +01:00
AMBuilder Add basic ReHLDS and ReGameDLL support (#417) 2017-03-09 19:59:38 +01:00
amx.cpp Replace more snprintf by UTIL_Format. 2014-08-08 12:47:15 +02:00
amx.h Update license headers for AMXX core. 2014-08-04 13:18:19 -05:00
amxcore.cpp Update license headers for AMXX core. 2014-08-04 13:18:19 -05:00
amxdbg.cpp Update license headers for AMXX core. 2014-08-04 13:18:19 -05:00
amxdbg.h Update license headers for AMXX core. 2014-08-04 13:18:19 -05:00
amxdefn.asm Whoa! Merged in Pawn! (Small 3.0) 2005-07-25 06:03:43 +00:00
amxexecn.asm Fix a floatround bug (#376) 2016-06-27 12:23:08 +02:00
amxjitsn.asm Fix a floatround bug (#376) 2016-06-27 12:23:08 +02:00
amxmodx.cpp Add RequestFrame() native (#412) 2017-02-23 12:55:53 +01:00
amxmodx.h Add RequestFrame() native (#412) 2017-02-23 12:55:53 +01:00
amxtime.cpp Update license headers for AMXX core. 2014-08-04 13:18:19 -05:00
amxx_mm.def new file names 2004-03-24 01:35:44 +00:00
amxxfile.cpp Update license headers for AMXX core. 2014-08-04 13:18:19 -05:00
amxxfile.h Update license headers for AMXX core. 2014-08-04 13:18:19 -05:00
amxxlog.cpp Remove UTIL_Format() and UTIL_VarArgs() 2015-10-05 19:12:08 +02:00
amxxlog.h Retrieve log type in MetaAttach to allow log to be written earlier 2015-07-18 09:55:13 +02:00
binlog.cpp More AMTL conversion - 🔥 CString and CVector 2015-07-13 23:37:20 +02:00
binlog.h Fix AMTL internal paths 2015-10-02 23:22:21 +02:00
CCmd.cpp Add a param to register_*cmd() and get_*cmd() to indiquate info is a multilingual key + modify plugin 2016-04-16 11:56:49 +02:00
CCmd.h Add a param to register_*cmd() and get_*cmd() to indiquate info is a multilingual key + modify plugin 2016-04-16 11:56:49 +02:00
CDataPack.cpp Improve DataPack memory allocation 2015-07-13 23:49:51 +02:00
CDataPack.h Rename Handle class to avoid name collision in mac 2015-07-21 00:18:54 +02:00
CEvent.cpp Rename Handle class to avoid name collision in mac 2015-07-21 00:18:54 +02:00
CEvent.h Add enable/disable_logevent() natives 2015-12-24 19:08:00 +01:00
CFileSystem.h Fix AMTL internal paths 2015-10-02 23:22:21 +02:00
CFlagManager.cpp More AMTL conversion - 🔥 CString and CVector 2015-07-13 23:37:20 +02:00
CFlagManager.h More AMTL conversion - 🔥 CString and CVector 2015-07-13 23:37:20 +02:00
CForward.cpp Values by reference in forwards 2016-04-05 18:51:18 +02:00
CForward.h Values by reference in forwards 2016-04-05 18:51:18 +02:00
CFrameAction.h Add RequestFrame() native (#412) 2017-02-23 12:55:53 +01:00
CGameConfigs.cpp Add info message when loading custom gamedata 2016-02-09 11:19:35 +01:00
CGameConfigs.h Fix AMTL internal paths 2015-10-02 23:22:21 +02:00
CLang.cpp Remove inline comment support in multilingual INI parser 2016-03-16 19:50:46 +01:00
CLang.h More AMTL conversion - 🔥 CString and CVector 2015-07-13 23:37:20 +02:00
CLibrarySys.cpp Update to the latest AMTL - Rename Ref to RefPtr. 2015-11-23 14:45:07 +01:00
CLibrarySys.h Add basic ReHLDS and ReGameDLL support (#417) 2017-03-09 19:59:38 +01:00
CList.h Update license headers for AMXX core. 2014-08-04 13:18:19 -05:00
CLogEvent.cpp Add enable/disable_logevent() natives 2015-12-24 19:08:00 +01:00
CLogEvent.h Add enable/disable_logevent() natives 2015-12-24 19:08:00 +01:00
CMenu.cpp More AMTL conversion - 🔥 CString and CVector 2015-07-13 23:37:20 +02:00
CMenu.h More AMTL conversion - 🔥 CString and CVector 2015-07-13 23:37:20 +02:00
CMisc.cpp Fix player not being internally disconnected in some situation + add client_disconnected forward 2015-08-14 00:08:50 +02:00
CMisc.h Fix player not being internally disconnected in some situation + add client_disconnected forward 2015-08-14 00:08:50 +02:00
CModule.cpp More AMTL conversion - 🔥 CString and CVector 2015-07-13 23:37:20 +02:00
CModule.h More AMTL conversion - 🔥 CString and CVector 2015-07-13 23:37:20 +02:00
CoreConfig.cpp Remove UTIL_Format() and UTIL_VarArgs() 2015-10-05 19:12:08 +02:00
CoreConfig.h AutoExecConfig: Add CoreConfig class + OnAutoConfigsBuffered / OnConfigsExecuted forwards 2015-08-14 16:37:48 +02:00
CPlugin.cpp AutoExecConfig: Adjust few things 2015-08-26 10:38:31 +02:00
CPlugin.h Fix AMTL internal paths 2015-10-02 23:22:21 +02:00
CQueue.h Update license headers for AMXX core. 2014-08-04 13:18:19 -05:00
CTask.cpp Normalize all the line endings 2015-03-10 16:51:45 +01:00
CTask.h Update license headers for AMXX core. 2014-08-04 13:18:19 -05:00
CTextParsers.cpp Remove inline comment support in multilingual INI parser 2016-03-16 19:50:46 +01:00
CTextParsers.h Remove inline comment support in multilingual INI parser 2016-03-16 19:50:46 +01:00
CvarManager.cpp Add basic ReHLDS and ReGameDLL support (#417) 2017-03-09 19:59:38 +01:00
CvarManager.h Add basic ReHLDS and ReGameDLL support (#417) 2017-03-09 19:59:38 +01:00
cvars.cpp Fix max length inconsistencies + typo 2015-10-05 19:12:30 +02:00
CVault.cpp More AMTL conversion - 🔥 CString and CVector 2015-07-13 23:37:20 +02:00
CVault.h More AMTL conversion - 🔥 CString and CVector 2015-07-13 23:37:20 +02:00
datapacks.cpp Rename Handle class to avoid name collision in mac 2015-07-21 00:18:54 +02:00
datastructs.cpp Fix a potential crash in ArrayClone for too large arrays (#408) 2017-02-23 13:27:16 +01:00
datastructs.h Fix a potential crash in ArrayClone for too large arrays (#408) 2017-02-23 13:27:16 +01:00
debugger.cpp Remove UTIL_Format() and UTIL_VarArgs() 2015-10-05 19:12:08 +02:00
debugger.h More AMTL conversion - 🔥 CString and CVector 2015-07-13 23:37:20 +02:00
emsg.cpp More AMTL conversion - 🔥 CString and CVector 2015-07-13 23:37:20 +02:00
fakemeta.cpp Update license headers for AMXX core. 2014-08-04 13:18:19 -05:00
fakemeta.h Update license headers for AMXX core. 2014-08-04 13:18:19 -05:00
file.cpp Fix set_amxstring_utf8 insconsistency 2015-06-29 12:42:57 +02:00
float.cpp Fix Warning from MSVC: 'Double to Float precision loss' (#402) 2017-01-21 20:58:33 +01:00
format.cpp Fix an out of bound buffer index 2016-01-07 19:42:47 +01:00
format.h Fix incorrect translation language for %l format identifier 2015-12-13 20:02:13 +01:00
gameconfigs.cpp Fix LoadGameConfigFile returning valid handle on invalid path 2016-01-15 17:35:21 +01:00
gameconfigs.h Rename Handle class to avoid name collision in mac 2015-07-21 00:18:54 +02:00
helpers-x86.asm Update license headers for AMXX core. 2014-08-04 13:18:19 -05:00
libraries.cpp Fix max length inconsistencies + typo 2015-10-05 19:12:30 +02:00
libraries.h More AMTL conversion - 🔥 CString and CVector 2015-07-13 23:37:20 +02:00
messages.cpp Consistency: Replace GETEDICT with HLTypeConversion in core 2015-10-08 19:36:42 +02:00
messages.h More AMTL conversion - 🔥 CString and CVector 2015-07-13 23:37:20 +02:00
meta_api.cpp Add basic ReHLDS and ReGameDLL support (#417) 2017-03-09 19:59:38 +01:00
modules.cpp SELinux compatibility: memalign -> mmap 2016-01-03 21:38:31 +03:00
modules.h VFS: Add LibrarySys class helper 2015-03-22 11:00:32 +01:00
natives_handles.h Add enable/disable_logevent() natives 2015-12-24 19:08:00 +01:00
natives-amd64.asm Update license headers for AMXX core. 2014-08-04 13:18:19 -05:00
natives-x86.asm Update license headers for AMXX core. 2014-08-04 13:18:19 -05:00
natives.cpp SELinux compatibility: memalign -> mmap 2016-01-03 21:38:31 +03:00
natives.h More AMTL conversion - 🔥 CString and CVector 2015-07-13 23:37:20 +02:00
newmenus.cpp Fix recursion issue with show_menu and newmenus 2016-01-15 12:56:16 +01:00
newmenus.h Fix recursion issue with show_menu and newmenus 2016-01-15 12:56:16 +01:00
nongpl_matches.cpp Normalize all the line endings 2015-03-10 16:51:45 +01:00
nongpl_matches.h Normalize all the line endings 2015-03-10 16:51:45 +01:00
optimizer.cpp Update license headers for AMXX core. 2014-08-04 13:18:19 -05:00
optimizer.h Update license headers for AMXX core. 2014-08-04 13:18:19 -05:00
osdefs.h Added support for Mac OS X and building with clang (bug 5601, r=dvander). 2013-02-13 01:14:37 -06:00
power.cpp Use exponentiation by squaring instead of n-times multiplications in power() (#385) 2016-08-27 10:12:02 +02:00
sclinux.h Added support for Mac OS X and building with clang (bug 5601, r=dvander). 2013-02-13 01:14:37 -06:00
sh_list.h Added support for Mac OS X and building with clang (bug 5601, r=dvander). 2013-02-13 01:14:37 -06:00
sh_stack.h Added optimizations to the task system 2005-10-25 20:38:00 +00:00
sh_tinyhash.h Added support for Mac OS X and building with clang (bug 5601, r=dvander). 2013-02-13 01:14:37 -06:00
sorting.cpp Fix an SortADTArray() issue where strings are not properly sorted 2015-08-04 17:08:40 +02:00
srvcmd.cpp Extend amxx list command (#377) 2016-06-26 14:04:33 +02:00
stackstructs.cpp Remove duplicated code of native handles 2015-07-11 18:14:16 +02:00
string.cpp Fix UTF-8 character parsing due to improper casting (#401) 2017-01-17 15:50:00 +01:00
strptime.cpp Added support for Mac OS X and building with clang (bug 5601, r=dvander). 2013-02-13 01:14:37 -06:00
textparse.cpp Add a data argument in INI/SMC_ParseFile() to pass through to callbacks (bug 6228) 2015-07-29 22:23:13 +02:00
textparse.h Add a data argument in INI/SMC_ParseFile() to pass through to callbacks (bug 6228) 2015-07-29 22:23:13 +02:00
trie_natives.cpp Fix missing backward compatibility check in TrieGetString() and TrieGetArray() (#406) 2017-02-05 11:52:04 +01:00
trie_natives.h Update AMTL (#390) 2016-12-31 23:49:46 +01:00
util.cpp Fix UTIL_ReplaceAll not properly tracking length. 2016-06-06 12:09:42 +02:00
vault.cpp Update license headers for AMXX core. 2014-08-04 13:18:19 -05:00
vector.cpp Consistency: Replace GETEDICT with HLTypeConversion in core 2015-10-08 19:36:42 +02:00
version.rc Update copyright year 2015-03-29 20:01:25 +02:00