-
-
Notifications
You must be signed in to change notification settings - Fork 457
Overhaul Address #2226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Overhaul Address #2226
Conversation
|
Can you also add this: } else if (vc->retinfo->vtype == Valve_VirtualAddress) {
void *addr = (void *)vc->retbuf;
return g_pSM->ToPseudoAddress(addr);
} else {to here sourcemod/extensions/sdktools/vcaller.cpp Lines 532 to 545 in b71d3c0
This would allow things like calling |
151ec78 to
7f8dfd6
Compare
4d69f79 to
ce846d4
Compare
|
I think this is great, and indeed much better than the define. |
ab34ad7 to
dffd568
Compare
dffd568 to
021ed61
Compare
|
A big thanks to @Malifox for taking the first step into trying this PR with a well established plugin, which helped me hunt down a ton of bugs. |
Another Address PR!
The idea and implementation is primarily @dvander's, this PR just makes the bridge to SM.
In order to use the new virtual address :
If enabled, plugins need to ensure their SDKCalls are using the new
SDKType_VirtualAddress, whether they're on 32bits or 64bits. Otherwise the plugin will most definitively crash the server.Marking as draft for now until I can get a few server operators to try this out. Extra natives idea are welcomed !