David Anderson
6eb5f8fa38
Replace ke::Function use with std::function.
2026-09-18 09:58:39 -07:00
Benoist
82cd96aef6
Strip sourcehook containers ( #2578 )
2026-09-17 20:56:47 -04:00
Nicholas Hastings
7b013d5097
Fix x86 float formatting precision ( fixes #2562 ) ( #2573 )
2026-09-14 22:38:52 +00:00
David Anderson
809392d1dc
Update SourcePawn.
...
This brings in some compiler fixes and the new ".size" property for
arrays.
The extension loader will also now once again accept version 9
extensions. Version 10 has been blacklisted. The IPluginContext API has
been restored to be compatible with v9.
2026-09-10 09:06:23 -07:00
F1F88
73fd660ff4
sorting: use ParamToArrayPtr for the top-level array param
2026-09-07 08:32:49 -07:00
F1F88
65d0d1380e
GetFunctionByName: return the runtime's funcid instead of deriving it from the public index ( #2566 )
...
* fix: use the runtime's funcid in GetFunctionByName
* test: update testsuit
2026-09-06 18:17:48 +02:00
F1F88
bea10f0fb1
Add native StringToI64 ( #2449 )
...
* Add native StringToInt64Ex
* Delete useless test code
* Rename native StringToInt64Ex to StringToI64
* Add documentation for out-of-bounds situations.
2026-09-03 21:42:52 -07:00
David Anderson
b1ac6f9a80
Fix unsafe casts in test_sorting.sp.
2026-09-01 18:58:42 -07:00
David Anderson
65ce00763a
Hide VFormat() for SourcePawn 2 plugins.
...
VFormat() does not work in the v2 VM. Instead, there is a new "spread"
operator, so regular Format or FormatEx will work instead.
2026-09-01 18:58:42 -07:00
David Anderson
35d2a648cf
Use the new pstruct access API.
2026-09-01 18:58:42 -07:00
David Anderson
02c56a6a42
Update pinned commit for SourceMod, and adjust for API changes.
2026-09-01 18:58:42 -07:00
Mikusch and Nicholas Hastings
61dea382c9
Fix crash when deleting a Menu handle during callbacks ( #2536 )
...
* Root menu Handles during callbacks
* Delete unused AutoHandleRooter struct
* Fix crash when a vote is cancelled from its start callback
* menus: root vote menu during start callback
---------
Co-authored-by: Nicholas Hastings <[email protected] >
2026-08-24 19:40:41 +00:00
Nicholas Hastings
b68a60976c
Fix crash with private forwards deleted mid-call ( fixes #1041 )
2026-08-02 13:59:20 -04:00
Nicholas Hastings
6156b61949
Fix a case where APLRes_SilentFailure was not silent ( fixes #1928 )
2026-08-02 12:55:01 -04:00
Nicholas Hastings
bf0f9986f4
Discard threaded query results on plugin unload ( fixes #1647 )
2026-08-02 12:14:04 -04:00
Nicholas Hastings
8bc615f29b
Add async file op natives ( #1674 ) ( #2524 )
2026-07-30 06:53:45 -04:00
Nicholas Hastings
e851097670
Fix Linux pattern scanning across readable ELF segments ( #2520 )
2026-07-27 22:40:34 -04:00
Nicholas Hastings
cfa6193bb8
Add support for non-public schemas with pgsql ( #2341 )
2026-07-27 20:35:59 -04:00
Nicholas Hastings
bc69fc9f8e
Add CopyFile native ( #1683 )
2026-07-26 13:45:46 -04:00
Mikusch
29594aeb0b
Fix SlowScriptTimeout and EnableLineDebugging not being read
2026-07-22 19:12:18 -04:00
Mikusch
da192501d1
Fix Call_Finish propagating exceptions to the caller ( #2510 )
2026-07-14 07:55:48 -04:00
Mikusch
d7d969774e
Fix forwards overwriting result to 0 when no callback runs ( #2509 )
2026-07-14 07:38:13 -04:00
Mikusch
575aa6ab4a
Fix Plugin_Stop stopping ET_Event/ET_LowEvent forwards early ( #2511 )
2026-07-14 07:14:26 -04:00
Mikusch
0732992c4f
Fix GetFunctionByName ignoring its plugin handle ( #2508 )
2026-07-14 10:41:40 +02:00
David Anderson
be89b25d96
Fix forward re-entrancy and update SourcePawn.
2026-06-06 18:43:47 -07:00
Benoist
434cb93dce
Remove exception from Call_Finish ( #2475 )
2026-06-05 19:13:29 +02:00
David Anderson
46458cdbfe
Revert Call_Finish() to correctly return an error code.
...
Bug: issue #2474
2026-06-04 19:33:54 -07:00
David Anderson
2c782ef842
Fix compatibility issue in Call_PushStringEx.
...
When we changed the C++ API, we forgot to add a compatibility workaround
for functions.inc which had matching constants. Fix that now in
smn_functions.cpp.
Bug: issue #2481
2026-06-04 19:33:54 -07:00
David Anderson
e87291362b
Remove PushNull API from forwards/calls.
...
This appears to have no users, as it was not really possible to take
advantage of due to language constraints.
2026-05-24 13:25:34 -07:00
David Anderson
5acd8c77c9
Bump the minimum extension version to 9.
2026-05-17 15:22:58 -07:00
David Anderson
468760c902
Switch ForwardSys to use ICallable.
...
This removes a ton of tech debt and will improve Forward performance.
2026-05-17 15:22:58 -07:00
David Anderson
e70cddfe3e
Use BaseRuntime instead of IPluginRuntime in PluginSys/ShareSys.
2026-05-17 15:22:58 -07:00
David Anderson
890c7119fe
Use internal sp::Environment directly in core/logic.
...
Also remove ISourcePawnEngine and ISourcePawnEngine2 pointers since
they're now redundant.
2026-05-17 15:22:58 -07:00
David Anderson
fba9d713b7
Statically link SourcePawn. ( #2459 )
...
This removes the SourcePawn shared library from the distrubtion, and
statically links the VM to sourcemod.logic instead. This means we can
stop designing public APIs that only SourceMod will ever use, since now
SourceMod can just peek directly inside the VM.
We still need a public API for extensions (and the "core" binary). But
that API surface is a lot smaller than what the logic binary needs.
Remove unused DebugReporter::GenerateCodeError function while we're
here, since this will allow removing IPluginDebugInfo.
2026-05-13 21:09:15 -07:00
David Anderson
07735c1fe2
Remove use of HeapAlloc and HeapPop. ( #2455 )
2026-05-03 13:48:28 -07:00
David Anderson
6739b0c280
Update SourcePawn. ( #2454 )
...
This modifies smn_sorting to use the new 2D array access API.
2026-05-03 09:52:31 -07:00
F1F88
707a6f5a00
Add format specifier "%lb" & "%lX" & "%lx" ( #2448 )
...
* Add format specifier "%lb" & "%lX" & "%lx"
* adjust brace style to match the rest of the file
2026-04-28 02:54:12 +00:00
Nicholas Hastings and Copilot
9569066b6e
Upgrade Clang to v22 ( #2451 )
...
* Upgrade Clang to v22
Co-authored-by: Copilot <[email protected] >
* Compatibility fixes for Clang 22
---------
Co-authored-by: Copilot <[email protected] >
2026-04-27 23:32:20 +00:00
SCP-076
94adc98ef5
Fix out-of-bounds crash in PluginIterator_Next ( #2445 )
...
* Fix OOB dereference in PluginIterator methodmap (#1880 )
This prevents the native from returning true when the iterator has already reached the end() of the list, which previously led to a crash when accessing the Plugin property.
* Add defense-in-depth safeguards to CMMPluginIterator
* Update PluginIterator.Next() @error documentation
Reflect the new NativeError thrown when calling Next() on an exhausted iterator.
2026-04-25 17:11:28 +00:00
F1F88
817696358b
Fixed an extra padding character in the negative integer formatting ( #2443 )
...
* Fixed an extra padding character in the negative integer formatting
* Add test script
* Add more test cases
2026-04-25 13:30:09 +00:00
F1F88
81ebd8cf8d
Supports "%f" formatting value as negative inf float ( #2444 )
2026-04-22 16:54:05 +02:00
Ayrton09
a3fb4dfe5e
Add %lu & %li as format for int64 ( #2421 )
2026-04-09 15:58:35 +02:00
Benoist
d5cc622227
Bump sp module + address fix ( #2430 )
2026-04-02 21:33:38 +02:00
Benoist
59ecab555b
Bump SourcePawn submodule ( #2428 )
2026-03-31 23:28:34 +02:00
Benoist
155cdc318c
Re-introduce Address as int64 and remove the opt-in ( #2414 )
2026-03-15 00:43:25 +01:00
Nicholas Hastings
b492426a79
Revert "Make Address a int64 if <virtual_address> is included ( #2407 )"
...
This reverts commit 2b5554a21d .
2026-03-12 20:01:31 -04:00
Benoist
2b5554a21d
Make Address a int64 if <virtual_address> is included ( #2407 )
2026-03-12 21:02:12 +01:00
Benoist and Fyren
29386a72f6
Another OpenFile fix ( #2395 )
...
Co-authored-by: Fyren <[email protected] >
2026-01-26 15:13:20 +01:00
Benoist
8907569dd8
Correct OpenFile filemode check ( #2390 )
2026-01-21 15:58:24 +01:00
Benoist
22d740ef61
Fix running out of virtual address with the heap on linux ( #2391 )
2026-01-20 22:39:23 +01:00