Skip to content
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

GetAmxAddress on Linux #27

Open
Y-Less opened this issue Aug 20, 2016 · 3 comments
Open

GetAmxAddress on Linux #27

Y-Less opened this issue Aug 20, 2016 · 3 comments

Comments

@Y-Less
Copy link
Collaborator

Y-Less commented Aug 20, 2016

I was looking at porting this function to work on Linux as well, since the comments currently say that it only works on Windows:

// to this script. This function works only on Windows!

After decoding the assembly and comparing it to the PAWN ABI on Linux, I realised that the same code should in theory work there. Then I noticed this commit:

ae06f5d

Which only seems to support my theory. Is it just that the comment is wrong?

@Zeex
Copy link
Owner

Zeex commented Aug 20, 2016

Unfortunately I can't remember why I thought it didn't work on Linux, but I suspect it had something to do with opcode -> address translation in the VM (opcode.inc probably hadn't been invented yet). It's possible that it works now 😃

@Y-Less
Copy link
Collaborator Author

Y-Less commented Aug 20, 2016

OK, I'll test it again (should have done that before asking, but couldn't be bothered to set up a Linux box right then).

@Zeex
Copy link
Owner

Zeex commented Aug 21, 2016

Have you tried Bash on Windows? I heard it can run Linux executables, would be pretty convenient if it worked with SA-MP server.

Edit:

Nope, doesn't work at all. The thing doesn't seem to support 32-bit executables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants