Use BaseRuntime instead of IPluginRuntime in PluginSys/ShareSys.

This commit is contained in:
David Anderson
2026-05-17 15:22:58 -07:00
parent 890c7119fe
commit e70cddfe3e
10 changed files with 40 additions and 33 deletions
+3 -4
View File
@@ -31,6 +31,7 @@
#include "NativeOwner.h"
#include "ShareSys.h"
#include "PluginSys.h"
#include <sourcepawn/vm/plugin-runtime.h>
CNativeOwner::CNativeOwner() : m_nMarkSerial(0)
{
@@ -67,10 +68,8 @@ void CNativeOwner::AddNatives(const sp_nativeinfo_t *natives)
void CNativeOwner::UnbindWeakRef(const WeakNative &ref)
{
IPluginContext *pContext;
pContext = ref.pl->GetBaseContext();
pContext->GetRuntime()->UpdateNativeBinding(
auto pContext = ref.pl->runtime();
pContext->UpdateNativeBinding(
ref.idx,
nullptr,
SP_NTVFLAG_OPTIONAL,