Commit Graph

139 Commits

Author SHA1 Message Date
David Anderson
6053dff454 fixed a bug where sm_dump_handles reported some freed handles incorrectly
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401327
2007-08-13 19:41:15 +00:00
Scott Ehlert
005f49947a Implemented amb506 - plugin file name can now be used with "sm plugins unload"
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401258
2007-08-02 17:41:59 +00:00
David Anderson
2bd5170e33 stupid gcc... what is it with you and newlines (fixes linux build)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401238
2007-08-01 02:18:19 +00:00
David Anderson
38ddbb37b9 updated more header files (mostly internal now)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401237
2007-08-01 02:12:47 +00:00
Borja Ferrer
b0a96e69c1 added amb567, new OnAllPluginsLoaded forward
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401227
2007-07-31 22:34:52 +00:00
David Anderson
2f3c518eb1 fixed a bug where extensions were forwarded their unload call AFTER being dropped as an identity
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401208
2007-07-29 01:05:58 +00:00
Phong Dang
f2630470c4 Fixed AskPluginLoad would still allowed plugin to load even if it returned false.
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401206
2007-07-29 00:26:18 +00:00
David Anderson
1154b20fc9 added a new function to ILibrarySys
added define in SDK for LIBRARYSYS

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401198
2007-07-27 18:24:09 +00:00
David Anderson
c3cd2ac4a3 added amb670 (exposed IDBThreadOperation to extensions)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401163
2007-07-24 02:24:37 +00:00
David Anderson
30b475ef35 fixed bug amb659 (unloading parent extensions)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401156
2007-07-23 20:20:45 +00:00
Scott Ehlert
d7512156e8 Fixed amb667 - Forward called twice when returning Plugin_Stop in ET_Hook
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401146
2007-07-21 21:48:26 +00:00
Scott Ehlert
387ac70d1e Fixed linux build
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401131
2007-07-16 04:22:16 +00:00
David Anderson
4ce48512b1 - added callbacks for libraries becoming available
- fixed MarkNTVOptional requring native to exist
- fixed a bug where it looks like plugins could not be paused

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401130
2007-07-16 02:06:02 +00:00
David Anderson
399fb8a8e8 fixed a bug where __pl_*_SetNTVOptional could not be called
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401129
2007-07-15 22:34:30 +00:00
David Anderson
a80d38f799 - reloading now refreshes weak native binds
- fixed a crash bug when unloading a plugin being pointed to by weak ntvrefs in another plugin

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401128
2007-07-15 21:29:49 +00:00
David Anderson
430e63d6cd fixed crash bug when unloading a plugin with a weak ntvref
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401127
2007-07-15 20:27:11 +00:00
Borja Ferrer
fe8ebeae89 added amb292, optional natives
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401118
2007-07-15 01:04:34 +00:00
Borja Ferrer
8a8e6ef594 added experimental optional natives (part 1)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401095
2007-07-12 02:57:43 +00:00
David Anderson
271a8b5b56 - sourcemod can now unload properly without crashing
- extensions now unload, dependencies are resolved

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401024
2007-06-26 17:08:07 +00:00
David Anderson
254fc2557a - removed OnServerCfg in favor of OnConfigsExecuted
- added AutoExecConfig() which automates safe config execution

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40984
2007-06-18 07:04:22 +00:00
David Anderson
8335aab394 fixed bug amb399
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40967
2007-06-16 22:04:46 +00:00
David Anderson
74a2a1498c ShareSys::AddDependency now functions
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40947
2007-06-16 01:34:05 +00:00
David Anderson
00e9d047c7 added sm_dump_handles command for tracking down Handle leaks... more to come someday
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40906
2007-06-07 02:36:54 +00:00
David Anderson
e334e5f7e7 -initial import of database natives + config
-initial import of completed database layer
-CreateIdentity now requires a non-optional second pointer.  This breaks backwards compatibility for CreateIdentity(), however, this is not a function extension authors are supposed to be calling

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40874
2007-06-01 02:30:29 +00:00
Scott Ehlert
1dffe2e648 Fixed linux build *sigh*
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40867
2007-05-29 22:05:52 +00:00
Scott Ehlert
8bd6bf1b57 Implemented amb20 - 'sm plugins info' now shows when plugin will be reloaded
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40866
2007-05-29 20:18:53 +00:00
David Anderson
196a665d51 implemented request amb302 (onservercfg and onmapstart are now called if a plugin is late loaded)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40854
2007-05-23 17:54:45 +00:00
David Anderson
caab299d3e Added request amb231 (OnPluginStart errors cause load failures)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40844
2007-05-23 01:59:58 +00:00
Scott Ehlert
a5e3c79402 Wow, how did this go unnoticed:
Fixed ILibrarySys::GetFileExtension() and loading plugins without the "smx" extension.

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40835
2007-05-22 03:39:18 +00:00
David Anderson
f3b3ca6b22 jit errors will now get passed upwards
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40809
2007-05-16 18:30:43 +00:00
David Anderson
c9bc46e770 core will now ignore missing natives starting with '@'
the compiler will now resolve aliased natives to single references and export '@' natives for each redundant entry

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40804
2007-05-15 04:59:24 +00:00
Scott Ehlert
515be43896 Implemented amb286 - .smx extension no longer required with "sm plugins load"
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40800
2007-05-14 21:29:17 +00:00
David Anderson
d1dea716a6 Added a re-entrancy check to Handles so the destructor won't fire twice in certain cases
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40795
2007-05-13 22:36:22 +00:00
Scott Ehlert
3851dc9243 Renamed err_max to maxlength. Yes, I am crazy.
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40761
2007-05-08 00:21:44 +00:00
Scott Ehlert
a994857444 Couple of random of things
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40747
2007-05-06 03:24:54 +00:00
Borja Ferrer
b91f1b21ba fixed bug in amb249
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40742
2007-05-04 20:03:51 +00:00
Scott Ehlert
dc6a5fc4d9 This averted my eyes...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40736
2007-05-03 03:54:44 +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
f335c318bf Fixed a bug where natives were not rebound on debug toggle
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40699
2007-04-13 17:18:41 +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
Scott Ehlert
5b3a3cef27 Made this more consistent or something...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40658
2007-03-22 21:12:17 +00:00
Borja Ferrer
862f25b223 fixed possible overflow cases
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40657
2007-03-19 19:19:41 +00:00
Borja Ferrer
6e78ac6302 fixed several memory leaks
fixed plugin listeners being removed before a OnPluginUnloaded Call_AskPluginLoad
removed some virtuality
all cached ptrs using the Stack system are freed now

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40647
2007-03-17 00:55:46 +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
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
Scott Ehlert
62aa55b23b Global forwards created after all plugins have been loaded now properly get filled with IPluginFunction pointers.
Added CPluginManager::AddFunctionsToForward() to help do this...

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40617
2007-03-14 07:54:54 +00:00
David Anderson
8867fb1ce7 fixed linux build
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40612
2007-03-13 05:55:58 +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
David Anderson
5b1f1d19c1 part 2 of singleton renaming
--HG--
rename : core/CGameConfigs.cpp => core/GameConfigs.cpp
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40598
2007-03-10 21:26:04 +00:00