Go to file
Peace-Maker 2c8614c639 Keep optional natives optional after reloading
Bug 6518

Starting from no plugins loaded, after the final step of the following,
basetriggers will be marked as errored because mapchooser is missing:

Load basetriggers
Load mapchooser
Unload mapchooser
Load mapchooser
Unload mapchooser

We lose the SP_NTVFLAG_OPTIONAL when removing a WeakNative. The
__pl_mapchooser_SetNTVOptional() is only called in basetriggers when it
is loaded. It adds the OPTIONAL flag to the mapchooser natives the
basetrigger plugin uses.
When mapchooser is loaded, the native is overwritten and the OPTIONAL
flag consumed (WeakNative registered), but not preserved. Later when
mapchooser is unloaded the WeakNative is removed in
CNativeOwner::UnbindWeakRef, but the OPTIONAL flag isn't added again.
The next time mapchooser is loaded, the natives aren't optional anymore
and will cause a real dependency.

The change in ShareSys isn't needed to fix the error, but is included to
keep the SP_NTVFLAG_OPTIONAL flag consistent.
2016-07-21 01:52:47 +02:00
bridge/include Rename CPlugin::SetErrorState to EvictWithError. 2015-10-31 17:25:59 -07:00
configs Add initial version of safety checks for CS:GO to attempt to avoid user GSLT bans. 2016-03-02 15:25:01 -05:00
core Keep optional natives optional after reloading 2016-07-21 01:52:47 +02:00
editor Added AMXX Pawn geshi generation script. 2010-08-23 13:53:44 -04:00
extensions Remove TFHoliday_SpyVsEngyWar - no longer exists. 2016-07-08 15:44:49 -04:00
gamedata Update TF2 "holiday" gamedata. 2016-07-08 15:44:16 -04:00
loader Remove support for Source 1 Dota 2. (#496) 2016-04-26 23:18:47 -04:00
plugins Fix syntax for SourcePawn update. 2016-07-09 12:24:18 -07:00
public Update to the latest AMTL. 2016-07-09 12:16:17 -07:00
sourcepawn@594bfbb5e4 Update to the latest SourcePawn and AMTL. 2016-03-13 16:29:11 -07:00
tools Add PowerShell version of checkout-deps script for Windows (NPOTB). 2016-06-11 11:17:29 -04:00
translations Remove unused phrase. 2015-03-22 15:36:07 -04:00
versionlib Change version display. 2014-05-25 03:18:05 -07:00
.arcconfig Add a .arcconfig file so that arc works 2013-10-15 22:57:59 +01:00
.gitignore Update to the latest SourcePawn revision. 2015-08-18 09:51:24 -07:00
.gitmodules Use upstream SourcePawn as a submodule. 2015-03-15 16:38:38 -07:00
.travis.yml Download Clang from SourceMod site (#523) 2016-06-20 17:12:58 +01:00
AMBuildScript 🐍🐍🐍🐍🐍🐍🐍🐍🐍🐍🐍🐍 2016-06-11 12:43:04 -04:00
changelog.txt Triggering a build. 2011-04-13 19:05:41 -05:00
configure.py Add an ambuild configure option to disable auto versioning. 2014-07-02 13:29:59 -05:00
product.version Bump version number. 2016-06-05 10:10:07 -04:00
pushbuild.txt Force build for CS:GO CUserCmd mouse vector fix 2016-07-03 01:04:02 +01:00
README.md and maybe also a hyphen 2014-05-27 01:09:12 -06:00

SourceMod

General

Development