45baab94a6
Added a bunch of new file natives. Fixed possible corruption in snprintf when input buffer was bigger than output buffer and relaying on its retval. Fixed all cases when the above situation happened. Fixed _PrintToHL2Log not taking va_list in.
Borja Ferrer2007-01-07 01:30:28 +00:00
814007df49
since these two functions are implemented separately, API calls are now divided got rid of ARRAYSIZE warning
David Anderson2007-01-06 07:53:34 +00:00
4bd40d69e1
restructure of HandleSys admin permissions and interface removal of HandleSys helper functions removed useless BaseContext stuff from Engine put SourceMod specific stuff in BaseContext cleaned up broken Handle code
David Anderson2007-01-04 02:08:27 +00:00
5c6bc80f20
Registered player and float natives. Added error strings to these natives.
Borja Ferrer2007-01-02 02:40:32 +00:00
32a2aa75e3
fixed various issues in the handle system with cloning fixed plugins being able to free each other's handles
David Anderson2007-01-02 01:44:46 +00:00
86f9be5714
Added CPlayer class Added new player natives Fixed floatround returning a float instead of an int Added new float.inc file Added OnClientSettingsChanged forward
Borja Ferrer2007-01-01 03:33:14 +00:00
a7fe408995
debug break now uses context struct instead of context interface err is renamed to 'n_err' 'n_err' is now a 'native only' member, for native errors only
David Anderson2006-12-31 22:33:47 +00:00
cf15783eb0
fixed atcprintf counting the null terminator for the return value added format and formatex natives
Borja Ferrer2006-12-31 03:02:40 +00:00
388c062c96
added automatic native registration added string include file renamed typeutil and its functions redid a bunch of the string natives string natives now register
David Anderson2006-12-30 07:23:17 +00:00
17af34bba5
unmanaged forwards need to be pruned for dead plugins too
David Anderson2006-12-30 06:07:32 +00:00
4153221ca8
fixed a "-1" bug in atcprintf moved string functions to the stringutils file added strncopy
Borja Ferrer2006-12-29 23:28:44 +00:00
f068587ecc
initial import of sharesystem (unfinished) final revision of handle system (I hope!) initial import of plugin handles
David Anderson2006-12-29 23:18:13 +00:00
5e75d0928c
Added PlayerManager basic hookings Moved ftoc and ctof to an utility file Added some more string natives
Borja Ferrer2006-12-28 00:48:09 +00:00
aba273f93d
IPlugin context pointer is passed now to natives Added basic string natives Added floating point natives
Borja Ferrer2006-12-23 02:20:53 +00:00
7af40128a3
Clarified states a little Fixed include order and double include prevention
David Anderson2006-12-17 09:59:01 +00:00
352b15c1b7
Added Handle cloning and reference counting in preparation for IShareSys Made the internal code a bit more flexible and improved access security structures
David Anderson2006-12-17 09:56:45 +00:00
c9002c2011
Added initial console commands for plugins fixed crash in plugin destructor fixed compilation not being freed causing a crash fixed small issues in plugin system fixed plugin iterator not being reseted when freed and not being initialized it's current pointer. fixed a bug where insertion of a prefixed string would not check whether a value could be set.
Borja Ferrer2006-12-16 02:16:21 +00:00
8792f0b4f0
new plugin API, sample plugin is now a fail load plugin
David Anderson2006-12-15 13:45:21 +00:00
90d1f4495e
Added global class initialization automation Finalized basics of plugin loading Began redoing how dependencies will be tracked Renamed some bad names Finished some stuff in ForwardSys
David Anderson2006-12-15 13:38:04 +00:00
a93faa3cbf
exposed new pathformat function to ILibrarySys
David Anderson2006-12-13 11:19:46 +00:00
23a91de75c
!Added MOSTLY UNTESTED plugin loading Fixed a match bug in TestAliasMatch() Removed pointless implementation of context switching in CPlugin Redesigned how CPlugins are allocated, deallocated, and instantiated. Added a basedir function so all code can reference relative paths. This may be redesigned. Various other changes
David Anderson2006-12-13 11:16:20 +00:00
dc60ae49de
Fixed a bug where EOS/EOF was interpreted as a stream error
David Anderson2006-12-13 11:14:25 +00:00
ef296710c6
added a few debug checks and a fix for deallocation
David Anderson2006-12-07 19:10:26 +00:00
5fc2918377
fixed a series of addressing bugs where the indexer could reach past basearray bounds
David Anderson2006-12-07 08:17:19 +00:00
eabc33b4d2
fixed a problem causing the string table to never grow fixed growth and zeroing of the base array (was corrupting) fixed parent being set wrong resulting in node access corruption fixed a really retarded loop bug fixed base array growth invalidating cached pointers fixed insertion of similar strings which both had valid arc paths but no terminators
David Anderson2006-12-06 23:35:51 +00:00
f3ad0f5b67
rewritten PushStringEx in Forward and Function systems fixed PushCellByRef and PushFloatByRef in the varargs case where it wouldn't set the pushed type fixed the BindNatives functions not setting the BOUND flag thus making the JIT not exec the natives done the rest of tests with forwards, only left to do string varargs
Borja Ferrer2006-12-06 14:52:11 +00:00
f305cafe8c
fixed a compiler bug with declaring natives having parameters with no arrays and returning strings
David Anderson2006-12-06 00:53:34 +00:00
bad69571b6
rewrote forward API to use cached parameter pushing instead of immediate pushing removed copy back cruft since it's no longer needed removed PushCells() from API requirements, not needed adjusted documentation and added TODO list to ForwardSys.cpp various internal improvements
David Anderson2006-11-12 09:51:39 +00:00
4d89283924
string functions in the VM are now compatible with packed strings added a StringToLocal UTF-8 version to the VM
Borja Ferrer2006-11-12 00:40:58 +00:00
adc1475b76
Fleshed out forward system and extensively documented its design considerations Implemented and did basic tests on new IPluginFunction type Split function types into a separate file
David Anderson2006-11-11 11:10:24 +00:00
c25cc64024
Implemented a lot more of the plugin system added aggressive caching O(1) function object retrieval
David Anderson2006-11-11 05:49:52 +00:00