Commit Graph

235 Commits

Author SHA1 Message Date
David Anderson
1f97a66fbf fixed makefile for jit/sp stuff
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40740
2007-05-04 02:36:11 +00:00
Borja Ferrer
d8c7af77a3 exposed the sourcepawn and JIT interfaces with pointers
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40739
2007-05-04 01:28:08 +00:00
Scott Ehlert
de9dc9ed99 Various pointless things of no importance:
- Renamed ISourceMod::GetModPath() to GetGamePath()
- Renamed ISourceMod::GetModFolderName() to GetGameFolderName()
- Various spelling corrections (why did I do this?)

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40735
2007-05-03 03:45:53 +00:00
David Anderson
462fe04f95 added SOURCEMOD_BUILD define for extensions
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40721
2007-05-02 02:13:15 +00:00
David Anderson
960bee31da jit helpers are now public
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40712
2007-04-26 22:20:39 +00:00
Borja Ferrer
b0e21c9da0 added game config file natives
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40709
2007-04-22 18:25:10 +00:00
Scott Ehlert
199d839122 Made libPtr param const. Doesn't get modified so why not.
Also removed some unneccessary code (for now)

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40707
2007-04-20 18:50:52 +00:00
Scott Ehlert
efa6067669 Basic signature scanning has arrived!
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40706
2007-04-20 18:32:33 +00:00
Scott Ehlert
43856e7dc4 User message functions now use SourceMM 1.4's new API
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40704
2007-04-15 05:43:43 +00:00
Scott Ehlert
77e49c855f Added client convar querying :o
Also added ISourceMod::GetModFolderName() for returning the name of the mod directory by itself

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40702
2007-04-14 04:27:47 +00:00
Borja Ferrer
21923d7871 added datamap property offset native
added clientofuserid native for fast userid to client id translation
fixed a memory leek (some tries weren't being deleted)
added createdialog native
added 2 million inetchannelinfo wrappers

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40688
2007-04-12 00:45:53 +00:00
David Anderson
e42773b07d added strncmp
renamed StrCompare to strcmp

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40686
2007-04-11 16:24:50 +00:00
David Anderson
3474ba74a5 removed unused libraries section
added tag section for sawce

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40685
2007-04-11 16:07:44 +00:00
David Anderson
3bec29a1fe GET_V_IFACE_* will work from SDK_OnMetamodLoad now
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40682
2007-04-09 03:05:53 +00:00
David Anderson
7263533fe5 initial import of skeletal DBI code
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40672
2007-04-05 07:08:39 +00:00
Scott Ehlert
bb92fc06a6 More consistency of some sort...
Oh god, what has possessed me to do this?

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40659
2007-03-22 21:50:20 +00:00
Borja Ferrer
a98c47e04b typo fix
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40631
2007-03-16 15:41:56 +00:00
Scott Ehlert
5fa53bfc68 Dear me, I should have committed this long ago...
1) Added natives to create and manipulate global and private forward
2) Added natives to call forwards and functions
3) Added an IChanageableForward::RemoveFunction overload for convenience or something
4) Added test suite plugins for functions and forwards
5) Some random touch-ups to some include files

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40627
2007-03-16 06:54:24 +00:00
Borja Ferrer
b45b71fdd2 some doxygen fixes
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40626
2007-03-15 22:32:45 +00:00
David Anderson
043b8f255f removed const from most apis. it was pointless since there were no actual const pointers.
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40621
2007-03-15 04:34:42 +00:00
David Anderson
21ed05048f dynamic native providers can now be unloaded safely
fixed an api naming typo :(

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40611
2007-03-12 20:40:30 +00:00
David Anderson
7c06d89b00 initial import of dynamic native code for both the JIT and plugins
note: dependency resolution is not done yet!

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40607
2007-03-12 07:08:05 +00:00
Borja Ferrer
f64945b2aa implemented the bf_read natives
message hooks now receive the bf_read handle

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40604
2007-03-11 21:09:05 +00:00
David Anderson
38c94838b9 IPluginFunction implementation is re-entrant across native calls, as heap allocations are delayed until execution
removed ICallable::GetAddressOfPushedParam
removed phys_addr from ICallable::PushArray
fixed a bug where sp_context_t::n_idx was overwritten upon re-entrant calls

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40595
2007-03-10 21:02:40 +00:00
Borja Ferrer
5fe8bed256 Added timer system implementation
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40593
2007-03-10 13:16:19 +00:00
Scott Ehlert
949b83c99b Reverted change where flags param was removed on PushCellByRef and PushFloatByRef. Instead set the param to a default value of SM_PARAM_COPYBACK. (DS, how dare you!)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40591
2007-03-07 18:37:41 +00:00
Scott Ehlert
dfed71eb28 Breakage alert :\
ThrowNativeErrorEx now returns 0 for convenience
PushCellByRef and PushFloatByRef no longer have a flags parameter because it was almost pointless

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40590
2007-03-07 18:24:09 +00:00
David Anderson
868d9d4ba1 removed weird and bad lines from the Makefile
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40575
2007-03-03 08:34:11 +00:00
David Anderson
30a8e3237a removed Metamod from the build list, it was pointless
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40574
2007-03-03 08:11:40 +00:00
David Anderson
52e8a1fa76 initial sketch of the timer system
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40570
2007-03-02 23:54:26 +00:00
David Anderson
66b244011e added ThrowError() a la amxmodx's abort()
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40566
2007-03-02 19:10:44 +00:00
Scott Ehlert
9de900d3eb Made this const for great justice
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40565
2007-03-02 09:15:54 +00:00
Borja Ferrer
7ebe3f33cd initial implementation of message hooks
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40558
2007-03-01 22:49:08 +00:00
David Anderson
d893af2ea4 added keys to game config files
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40554
2007-03-01 03:58:18 +00:00
David Anderson
8d29b2c02e initial import of game compatibility backend
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40553
2007-03-01 01:02:47 +00:00
David Anderson
348f21b61a renamed this function to avoid clashes
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40547
2007-02-27 07:31:55 +00:00
David Anderson
e4fdaede32 added per-handle security (untested)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40534
2007-02-26 02:47:03 +00:00
David Anderson
8553f12d59 Corrected an API design flaw with pausing. Contexts can now be flagged as paused, and IsRunnable() is moved from IBaseContext to IPluginFunction. While this allows for per-function pausing, it is not intended that way.
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40531
2007-02-22 02:05:50 +00:00
David Anderson
2b8a69dfcc spec'd out more of the message hooking stuff
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40514
2007-02-16 20:07:40 +00:00
David Anderson
371c764668 initial import of usermessage interface
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40513
2007-02-16 19:12:27 +00:00
Borja Ferrer
8f9a0706bf improved data pack type checking
added readmemory member

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40494
2007-02-14 11:03:03 +00:00
David Anderson
20441b70d3 added plugin properties
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40492
2007-02-13 19:20:48 +00:00
Borja Ferrer
1ff370b91d initial implementation of data packs
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40490
2007-02-13 16:11:04 +00:00
David Anderson
4f1101a006 changed these numbers for future expandability
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40487
2007-02-13 03:19:59 +00:00
Scott Ehlert
0d54b19b8e More convar insanity
1) Added natives: HookConVarChange(), UnhookConVarChange(), and GetConVarName()
2) Fixed bug(s) where ConVar handles were being created when they didn't need to be
3) Fixed bug where convars not created by SourceMod would be unregistered

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40471
2007-02-11 11:09:38 +00:00
David Anderson
1c80875ea3 initial import of binding user admin ids to players in game
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40464
2007-02-09 01:08:59 +00:00
Scott Ehlert
1300048946 Typo fix and removal of a semicolon in the name of consistency?
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40461
2007-02-08 04:56:08 +00:00
David Anderson
085264e837 Execute result pointer is now optional
fixed a bug where result could be filled with no executions

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40453
2007-02-07 08:42:48 +00:00
David Anderson
9969243266 added data pack functions
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40447
2007-02-06 19:05:45 +00:00
David Anderson
e9204c0bf4 added interface spec for data packs
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40446
2007-02-06 19:00:58 +00:00
David Anderson
8860ff6224 changed how the admin cache is rebuilt
renamed the plugin and fixed compilation errors

--HG--
rename : plugins/admin-flatfile/admin-base.sp => plugins/admin-flatfile/admin-flatfile.sp
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40444
2007-02-06 05:13:24 +00:00
David Anderson
b596e10304 heavily cleaned up the player API
exposed player API as an interface
added client event listeners to API

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40441
2007-02-05 20:32:34 +00:00
David Anderson
6858d12ad9 added some access helper functions
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40440
2007-02-05 10:34:58 +00:00
David Anderson
b018cd9d3a initial import of the new admin api restructuring
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40439
2007-02-05 09:14:40 +00:00
Scott Ehlert
6a7f216615 Worst commit ever, but I have removed some unnecessary things
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40438
2007-02-05 08:58:03 +00:00
David Anderson
fcb8c35eec removed InvalidateGroup() - it was a bad idea
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40437
2007-02-05 02:16:33 +00:00
Borja Ferrer
c21bfe57c1 Optimized forwards, now paused functions are stored in a temp list so we dont have to check if they're runnable on each function execution.
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40436
2007-02-04 22:41:44 +00:00
Scott Ehlert
3efb158754 Code clean-up on aisle nana! Well, barely any code was touched here actually...
1) Fixed a few minor warnings
2) Removed MM build configs from geoip
3) Made sure that every project and build config had its Character Set set to Multi-Byte and that Detect 64-Bit Portability Issues was set to No.

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40431
2007-02-02 11:27:22 +00:00
David Anderson
3091462dff clarified parameter indexing
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40422
2007-01-29 23:54:46 +00:00
David Anderson
c66632776f initial import of finished admin api
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40410
2007-01-29 04:19:14 +00:00
David Anderson
32679b7d48 fixed license mistakes (greentryst)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40406
2007-01-27 05:38:23 +00:00
Borja Ferrer
21123f4c74 fixed plugins being loaded twice if they were loaded previously
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40389
2007-01-27 00:03:34 +00:00
Borja Ferrer
b489378b9c nearly finished my exams!!! :D
library table is no longer needed

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40387
2007-01-26 19:35:33 +00:00
David Anderson
fcc5f00a2b changed license header once again
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40384
2007-01-26 04:35:08 +00:00
David Anderson
cb8829b009 corrected line endings
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40383
2007-01-26 04:26:47 +00:00
David Anderson
f5b969c551 added license
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40382
2007-01-26 04:25:59 +00:00
David Anderson
51d1aa70ac changed license header again
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40381
2007-01-26 02:50:48 +00:00
David Anderson
cf866e5446 Added vim settings to SDK files
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40380
2007-01-26 02:27:34 +00:00
David Anderson
676a6ea760 Filled out more license headers
Completed lots of missing documentation
Fixed /** on one-liners, must be /**<

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40377
2007-01-26 01:55:06 +00:00
David Anderson
4e75204c77 reorganization
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40366
2007-01-25 21:14:30 +00:00
David Anderson
3b2f126221 fixed a namespace collision
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40364
2007-01-25 20:45:49 +00:00
David Anderson
f5eab0e777 little makefile fix
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40363
2007-01-25 20:45:37 +00:00
David Anderson
7c76226230 added linux support
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40359
2007-01-25 20:30:04 +00:00
David Anderson
3e936bbd88 initial import of linux support
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40356
2007-01-25 09:19:38 +00:00
David Anderson
2129bb6d92 changed the API - funcid_t is now index only rather than a code address
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40353
2007-01-25 06:21:20 +00:00
David Anderson
f9a5920e5b added an easier format string Function
changed normal log names to be more consistent
added logging natives

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40352
2007-01-25 06:19:17 +00:00
David Anderson
e506745890 Added more path building stuff
Addeed text parsing API

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40350
2007-01-25 04:37:23 +00:00
David Anderson
aeb512c444 Non-public function addresses are no longer accepted
Added a new VM function for pcode addresses (unused right now)

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40349
2007-01-25 04:36:48 +00:00
David Anderson
0b8b26042e Added initial admin system natives
Added a few API changes to the admin system
Exposed more interfaces

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40341
2007-01-24 23:43:31 +00:00
David Anderson
ffd308f42c Initial import of admin system (groups and overrides done)
Added a "clear" function for Tries

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40340
2007-01-24 21:51:49 +00:00
Borja Ferrer
ba1daf3142 plugins get updated on map change
maponly plugins get unloaded on map change

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40338
2007-01-20 02:12:53 +00:00
David Anderson
607509cec6 changed this to reject iface removal by default
added forwardsys to defaults

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40334
2007-01-19 10:02:43 +00:00
David Anderson
cd735aec71 finished massive reorganization - IPluginFunction is now part of the VM, NOT the plugin system! This is how it should have been in the first place...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40332
2007-01-19 08:22:44 +00:00
David Anderson
cc977859d6 More reorganizations
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40330
2007-01-19 05:45:45 +00:00
David Anderson
8a46219d96 reorganized SourceMod for the public SDK
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40329
2007-01-19 05:33:04 +00:00