Commit Graph
63 Commits
Author SHA1 Message Date
d42a8c7c1e Move Safetyhook mess into a mirror repo (#2163)
* Bring in safetyhook mirror repo

* Add proper submodule

* Update submodule for linux fixes

* Update submodule again

* Change the method of compiling safetyhook (#2167)

Co-authored-by: Kenzzer <[email protected]>

* Update submodule

* Update submodule for -fPIC

---------

Co-authored-by: Benoist <[email protected]>
Co-authored-by: Kenzzer <[email protected]>
2024-06-08 20:05:29 +00:00
Headline c570150318 Lift raw pointers out of DatabaseConfBuilder (#1637)
* Lift raw pointers out of DatabaseConfBuilder

* Maybe: not
2022-05-24 11:41:15 +02:00
Headline e786ff54f7 Prevent enum shadowing & pin sourcemod for build fixes (#1661) 2021-12-10 14:22:04 -08:00
Headline 99c39b1d57 Update IPlugin reference on cmd hook removal (#1439) 2021-03-10 15:21:57 -08:00
Headline 1cd0efad41 NPOTB: Fix no SDK target exception (#1359) 2020-11-07 13:14:58 -08:00
Headline ef36604666 datapack: remove legacy cache (#1357) 2020-10-02 16:04:30 -07:00
Headline db56b14637 loader: preserve binary path for amd64 (#1358) 2020-10-02 16:01:30 -07:00
Headline b7650b11d6 NPOTB: Add x64 builds to travis-ci (#1321) 2020-07-24 16:48:22 -07:00
Headline a0d06b3209 Fix Linux x64 libpcre.a linkage failure (#1320) 2020-07-24 16:29:43 -07:00
HeadlineandKyle Sanderson 5fa25e70ad trie: implement clone() method (#852)
* Add Clone() for StringMap

* Fix for std::string addition

* trie: broken return key.

* clonetrie: correct handle leakage.

Co-authored-by: Kyle Sanderson <[email protected]>
2020-07-14 20:11:23 -07:00
Headline 939bdaf669 regex: update pcre to 8.44 (bug 6650, r=KyleS) (#1309)
* Update OSX PCRE dependency to 8.44

* Add OSX build instructions

* Update Windows PCRE dependency to 8.44

* Update Linux PCRE dependency to 8.44
2020-07-13 15:35:17 -07:00
Headline 2d2ba818e7 Add pcre lib for Windows x64 builds (#1307) 2020-07-11 16:08:14 -07:00
HeadlineandKyle Sanderson 2653a450fc handlesys: Output allocation timestamp during panic (#1110)
* Track Handle creation time

* Move ConVar operations outside of loop

* We support bee's here

* Catch windows awfulness

* Prevent Character Truncation

* Add timestamp info to memory leak dump

* Remove last line and adjust new leak dump output

* KyleS fixes

* Fixed width output

* Create invalid parameter failure redirection helper

* Fix rebase regression

* Update sm_invalidparamhandler.h

* Update HandleSys.cpp

* Update HandleSys.cpp

* Update HandleSys.cpp

Co-authored-by: Kyle Sanderson <[email protected]>
2020-07-09 18:21:45 -07:00
Headline 832519ab64 Prevent multiple calls to SDK_OnAllLoaded (#1293) 2020-06-21 23:32:11 -07:00
Headline 4e2806c951 Notify plugin reloads on next frame (#1292) 2020-06-21 23:31:52 -07:00
Headline 604942f0e7 Add helper stocks for getting numerical command arguments (#1194) 2020-03-04 13:17:10 -08:00
Headline c6f751bb67 Return DBDriver instead of Handle in DBI (#1109) 2019-10-31 01:53:50 -07:00
Headline 00b7ac5a39 Add bounds check for userid reset on disconnect (#1108) 2019-10-30 17:17:53 -07:00
Headline 8a4295d699 NPOTB: Correct GitHub's Linguist inaccuracies (#1096) 2019-10-07 19:14:09 +01:00
Headline 3b1fb85bb8 Fix quote mismatch (#1092) 2019-09-30 22:43:18 -07:00
Headline 28036966a6 Fix Miscellaneous Regressions and UBs (#1022) 2019-05-28 18:04:08 -07:00
Headline 2164f5191e Fix GCC 9 Builds (#1024) 2019-05-28 17:57:40 -07:00
Michael Flaherty 9cd2a74271 Fix ArgBuffer String Serialization (#999) 2019-05-04 01:46:55 -07:00
Michael Flaherty dae6d13f06 Fix CSS Builds (#992) 2019-05-01 17:29:55 -04:00
Michael Flaherty e2eac382c0 Add templated helper class to promote type-safety (#965) 2019-04-12 12:10:37 -07:00
Michael Flaherty dd81d7c78f Incorperate Licensing Into Project Tree (#961) 2019-04-12 12:10:13 -07:00
Michael Flaherty b7e252dfd6 Prevent FrameIterator OOB Errors (#949) 2019-01-13 13:36:35 -08:00
Michael Flaherty c8f3035cb0 Introduce enum structs to core sm plugins 2018-12-15 13:51:03 -08:00
Michael Flaherty 34e91fbd81 Restore SQL_CheckConfig Behavior (#873)
* Change lookup strategy for SQL_CheckConfig

* Ensure db conf lookup failures default to ..default

* Revert "Ensure db conf lookup failures default to ..default"

This reverts commit 03dc703daeeeadaa134e2160bf2c7cd812402758.
2018-10-07 14:08:11 -07:00
Michael Flaherty a9ca1a2fd6 NPOTB: Clarify preprocessor logic (#900) 2018-10-05 04:22:29 -07:00
Michael Flaherty a21c7564c1 [NMRiH] Gamedata update (Fixes #898) (#899) 2018-10-05 07:09:19 -04:00
Michael Flaherty 22b43e3869 Fix regression in vstk size (#894)
* Fix regression in vstk size

* Fix macro comment mistake

* More macro comment removals
2018-10-04 08:08:29 -04:00
Michael Flaherty fc14e37d0f Fix CS_TerminateRound calls & detour (#893) 2018-10-03 22:50:31 -04:00
Michael Flaherty 6ad6abd319 Update sourcepawn submodule 2018-09-29 21:12:40 -07:00
Michael Flaherty 990a02dbe0 Fix grammar error in File docs (#883) 2018-09-22 12:27:05 -07:00
Michael Flaherty 17700e45b0 Fix SetClanTag CS:GO Windows Signature (#868) 2018-08-15 17:56:04 -07:00
Michael Flaherty a65c215217 Fix DataPack Overwrite Regression (#862)
Some tests passed with the implementation prior to this commit, but those were edge cases. Good older behavior is now fully restored
2018-08-11 13:31:33 +01:00
Michael Flaherty 7068c3e865 Fix LogStackTrace Anomaly (#863) 2018-07-31 04:17:36 -07:00
Michael Flaherty 11abe77eed Allow any returns in native callbacks (#857) 2018-07-25 21:46:44 -07:00
Michael Flaherty 32d12ea4a6 Preserve old DataPack behavior when overwriting data (#848)
* Match old DataPack behavior when overwriting data

* Make RemoveItem more flexible

* Ditch implied RemoveItem behavior & asher fixes

* KyleS nits - but fixed before he says them

* Add back implicit behavior

* Update CDataPack.cpp

Committing to the spec.

* Update CDataPack.h

* fixup removing last item if explicitly requested

* Fix logic for accepting pack pos, rather than index

* Fixup IsReadable

* headache is over now
2018-07-14 17:00:17 -07:00
Michael Flaherty 28f1ea82b6 Add base CommandIterator implementation (#819)
* Add base CommandIterator implementation

* Add check for invalid pos & finalize pr
2018-07-10 17:39:31 -04:00
Michael Flaherty aaac0b9eb2 Individualize NameHashSet Hashing & Revisit #709 (#740)
* Make mac/win lookups lowercase'd

* Revert #709 & 81042cc

* Adjust HashPolicy implementation across sourcemod

Basically, in order to implement our own (actual) hash policy in
`PluginSys.h`, we needed to remove the blanket implementation of `hash`
that was used before. Now, each policy must implement `hash` along with
`matches` in order to be used with `NameHashSet`. While this does force
us to change every implementation of policies across the entirety of
sourcemod, it allows core to use flexible implementations of `hash`.

* Remove logic duplication

* Improve lowercase checks
2018-07-10 17:38:40 -04:00
Michael Flaherty c09b32010f Add Profiler methodmap (#814)
* Add profiler methodmap

* No tag mismatches here

thanks pm

* Lets fix some documentation while we're here.

* Use proper methodmap documentation style

Across sm we use `//` for methodmap docs, so lets just keep this consistent
2018-07-08 11:05:29 -04:00
Michael Flaherty 9ceb1af4fe Add LogStackTrace native (#685) 2018-06-19 23:18:37 -07:00
Michael Flaherty b9b6832a11 Streamline ConfDb loading proceedure (#791)
* Create DatabaseConfBuilder & remove locking
* Remove all refcounting

This is part 1/n in regards to this PR's rework
* Move db conf lookup out of RunThreadPart
* Return default configuration for failed lookups
* RefPtr members & stop leaks
* fix uint comparison warning
2018-06-19 09:35:37 -07:00
Michael Flaherty 5611ec54a2 Migrate extensions to common AMTL string funcs (#785) 2018-03-25 13:00:53 -07:00
Michael Flaherty 118d6dc9b1 Improve error message for EmitSound (#787)
Improve some error messages in sdktools.
2018-03-20 19:42:43 -06:00
Michael Flaherty 956f264b85 Replace ke::SafeSprintf with ke::SafeStrcpy (#784) 2018-03-19 20:12:51 +00:00
Michael Flaherty 2a8c390498 Un-const string retrievals (#769) 2018-02-20 18:38:17 +00:00
Michael Flaherty e57dce76e1 Add support for msvc 1912 (Fixes #761) (#764)
* Add support for msvc 1912

* Default new msvc versions to VS 2017

* Use 2015 lib with 2017
2018-02-04 17:06:22 -05:00
Michael Flaherty 64a6972757 Fix description for CharToLower and CharToUpper v2 (#750) 2018-02-02 23:30:12 +00:00
Michael Flaherty 12fca79006 Prevent use of primitive float operation functions (#763)
Apparently people use the float natives for actual float arithmetic; they're not really intended to be used directly.

* Prevent use of primitive float operation functions
* Deprecate float operation functs
* Alias Float natives to internal names
* Add clarifying note
* Remove use of internal FloatDiv native
2018-02-02 23:27:38 +00:00
Michael Flaherty 64ab3a08b5 Add missing const to usermessage function parameters (#735) 2017-12-14 11:27:07 +00:00
Michael Flaherty 830c3f36d3 Block reserved device names on windows (#733) 2017-12-03 11:38:56 +00:00
Michael Flaherty a5583882f4 fix bad english 🍋 (#724) 2017-12-03 11:37:50 +00:00
Michael Flaherty d685f30847 Add Translation Natives (#669)
* Add Translation Natives

See #626

* Fix vocab errors
* Better description
* Bump ITranslator Version
* Implement KyleS' Review Requests
* Improve documentation
2017-11-20 21:24:01 -08:00
Michael Flaherty 43cdf20fd3 Add FrameIterator to SourceMod (#716).
* Create FrameIterator type
This commit adds the FrameIterator type to core sm along with a few
methods around getting the information for each frame.

* Fix incorrect documentation
[skip ci]
* Implement KyleS's Changes
* A nit
2017-11-16 18:55:37 -08:00
Michael Flaherty 404e96ad45 Add KeyValues.ExportToString (#706) 2017-10-28 12:47:00 +01:00
Michael Flaherty 90ddc16a4b Lowercase windows/mac paths to avoid plugin duplicate loadings (Bug 6491) (#709) 2017-10-28 12:44:25 +01:00
Michael Flaherty 858a0ba17d Pin sourcepawn submodule to 1.9-dev 2017-10-24 19:16:14 -07:00
Michael Flaherty 4f54df65e9 Switch C header & Fix warnings (#702) 2017-10-15 10:32:01 +01:00
Michael Flaherty a36dafb906 Add PrintToConsoleAll (#601) 2017-04-18 07:29:47 -04:00
Michael Flaherty 23feb54f6a Update Plugin Blacklist (#574)
* Update Blacklisted Plugins

Sourceless edit of a public plugin being distributed

https://board-tr.nitrado.net/index.php?page=Thread&threadID=22197

* Close comment (oops)
2017-02-09 19:21:00 +00:00