Commit Graph

5959 Commits

Author SHA1 Message Date
David Anderson
d674414cf0 Add a versioned IPluginsListener and deprecate the non-versioned class. 2015-11-01 00:23:33 -07:00
David Anderson
cb3f6df111 Require that no plugin code be live when any plugin unloads. 2015-10-31 19:38:30 -07:00
David Anderson
59623695af Improve plugin console diagnostics. 2015-10-31 17:30:33 -07:00
David Anderson
87e9dee78b Evict plugins that fail to load. 2015-10-31 17:30:33 -07:00
David Anderson
62edc5f4c0 Clean up "sm plugins list" after status meaning clarifications. 2015-10-31 17:25:59 -07:00
David Anderson
903315747d Clarify plugin states. 2015-10-31 17:25:59 -07:00
David Anderson
485ade2610 Fix a number of inconsistencies in plugin state.
1. Fixed OnPluginUnloaded not pairing if the plugin failed.
2. Unify error message handling in the second pass.
3. Do not add libraries if a plugin failed during OnPluginStart.
2015-10-31 17:25:59 -07:00
David Anderson
9e4fff3362 Add a state variable to CPlugin to indicate queue/list membership. 2015-10-31 17:25:59 -07:00
David Anderson
7cc911ae58 Separate plugin unloading into an eviction step, which disconnects the plugin from Core.
Note: this also ensures that library action callbacks are balanced (i.e., we do not notify
libraries are being dropped if they were never notified as being added).
2015-10-31 17:25:59 -07:00
David Anderson
82ff7d5af7 Rename CPlugin::SetErrorState to EvictWithError. 2015-10-31 17:25:59 -07:00
David Anderson
c4c6efb140 Remove a crazy unused function from CPluginManager. 2015-10-31 17:25:59 -07:00
David Anderson
f078ea1f8a Remove the Illiad-length mostly-wrong comment at the top of PluginSys.h 2015-10-31 17:25:59 -07:00
David Anderson
ab1b915a3c Fix re-entrancy issues in CPluginManager by using ReentrantList. 2015-10-31 17:24:22 -07:00
David Anderson
709149fbed Remove the CPluginIterator cache. 2015-10-31 17:23:24 -07:00
David Anderson
e57a076dc8 Remove CPluginManager's friend access to CPlugin. 2015-10-31 17:19:10 -07:00
David Anderson
c21b3a36fc Remove CPluginManager direct use of CPlugin::NativeOwner::m_fakes. 2015-10-31 17:19:10 -07:00
David Anderson
f765c8d436 Remove CPluginManager direct use of CPlugin::m_LibraryMissing. 2015-10-31 17:19:10 -07:00
David Anderson
ae44a6540a Remove CPluginManager direct use of CPlugin::m_FakeNativesMissing. 2015-10-31 17:19:10 -07:00
David Anderson
f27dbaf716 Remove CPluginManager direct use of CPlugin::m_RequiredLibs. 2015-10-31 17:19:10 -07:00
David Anderson
717ad38d06 Remove CPluginManager direct use of CPlugin::m_errormsg. 2015-10-31 17:19:10 -07:00
David Anderson
60f06d1414 Remove CPluginManager direct use of CPlugin::m_FileVersion. 2015-10-31 17:19:10 -07:00
David Anderson
a579136a3d Remove CPluginManager direct use of CPlugin::m_DateTime. 2015-10-31 17:19:10 -07:00
David Anderson
2f3d523ac0 Remove CPluginManager use of CPlugin::m_pRuntime. 2015-10-31 17:19:10 -07:00
David Anderson
df5c53fa4a Remove CPluginManager direct use of CPlugin::m_filename. 2015-10-31 17:19:10 -07:00
David Anderson
46c069dbbe Remove CPluginManager direct use of CPlugin::m_Libraries. 2015-10-31 17:19:09 -07:00
David Anderson
bda9defc0f Remove CPlugin's friend access to CPluginManager. 2015-10-31 17:19:09 -07:00
Asher Baker
8817b4277d Merge pull request #435 from alliedmodders/spelling
Spelling.
2015-10-30 19:20:39 +00:00
Asher Baker
4346e963e5 Correct spelling in API documentation. 2015-10-30 12:26:34 +00:00
Asher Baker
9bbcae1648 Correct spelling in configuration files. 2015-10-30 12:26:11 +00:00
Asher Baker
fc504737c5 Fix a misleading error message from "sm config".
The Ignore state could be hit if the value was read directly rather than using OnSourceModConfigChanged.
2015-10-30 11:06:54 +00:00
Kyle Sanderson
1a09f2b6df Merge pull request #433 from alliedmodders/dinner
NPOTB: Remove 0x prefix from two-byte instructions.
2015-10-29 02:25:15 -07:00
Kyle Sanderson
44d34d0e5d NPOTB: Remove 0x prefix from two-byte instructions. 2015-10-28 19:43:17 -07:00
Nicholas Hastings
56339ed43a makesig.idc fucked me without taking me to dinner and a movie first 2015-10-28 22:37:10 -04:00
Nicholas Hastings
393ab89c34 Update TF2 gamedata. 2015-10-28 19:58:36 -04:00
Asher Baker
38fd55a05d Normalize repository root path. 2015-10-28 13:31:02 +00:00
Asher Baker
e0e946afac Merge pull request #431 from alliedmodders/symbol-repos
Include repo information in symbol files
2015-10-28 13:12:10 +00:00
Asher Baker
4d3c89c065 Flip INFO REPO records around for parsing sanity. 2015-10-28 09:47:40 +00:00
Nicholas Hastings
a7b1a9a5fa Update Insurgency gamedata. 2015-10-27 18:38:59 -07:00
Nicholas Hastings
529d7e2659 Fix Insurgency build on Linux for SDK changes. 2015-10-27 18:17:26 -07:00
Asher Baker
4be998c4dc Include repo information in symbol files. 2015-10-27 17:24:03 +00:00
Nicholas Hastings
261a4bb81b Merge pull request #430 from alliedmodders/packaging-latest
Upload sourcemod-latest-<os> text file when packaging.
2015-10-26 14:55:54 -04:00
Nicholas Hastings
beba03292a Upload sourcemod-latest-<os> text file when packaging. 2015-10-26 11:13:57 -07:00
Ruben Gonzalez
6042518691 Update CS:GO CSore offset. 2015-10-24 19:16:35 -04:00
Ruben Gonzalez
02a9db8e50 Update CS:GO gamedata for CScore. 2015-10-24 01:53:49 -04:00
David Anderson
d0dda098a2 Merge pull request #429 from powerlord/sqltxn-dbresultset
Allow SQLTxnSuccess to use DBResultSet[] in addition to Handle[]
2015-10-22 23:40:28 -07:00
David Anderson
195a836999 Merge pull request #427 from alliedmodders/refactor-amb
Refactor and cleanup the AMBuildScript a bit.
2015-10-17 18:58:05 -07:00
Nicholas Hastings
366c3c0e16 Merge pull request #425 from WildCard65/WildCard65-FixedDBI.inc
Fixed DBResultSet.IsFieldNull
2015-10-13 15:12:18 -04:00
Ross Bemrose
a4b45aea9b Allow SQLTxnSuccess to use DBResultSet[] in addition to Handle[] 2015-10-13 14:50:59 -04:00
Nicholas Hastings
fa65b62a04 Merge pull request #428 from FlaminSarge/tf_mannpower_conds
Update TFCond enum
2015-10-10 14:15:48 -04:00
Nicholas Hastings
71439b30ab Fix NeoTokyo SDKTools gamedata signatures. 2015-10-10 14:08:43 -04:00