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

Is this suitable for 64bit games too? #1

Open
Mellnik opened this issue Apr 14, 2015 · 3 comments
Open

Is this suitable for 64bit games too? #1

Mellnik opened this issue Apr 14, 2015 · 3 comments

Comments

@Mellnik
Copy link

Mellnik commented Apr 14, 2015

No description provided.

@LiamKarlMitchell
Copy link
Owner

Hi Mellnik,
Not just yet, would have to change it to use 64bit pointer.
Other than that I would think it would work providing you compile it for that target.

This could be done with a typedef and ifdef for a pointer type to use.

Or more preferred by using one of these types. See here: http://www.viva64.com/en/a/0004/

Types size on 32bit size on 64bit Description
intptr_t, uintptr_t, SIZE_T, SSIZE_T, INT_PTR, DWORD_PTR, etc 32 64 Integer types capable to keep pointer value.

Im happy for DWORD_PTR to be used in place of unsigned long. It was a mistake of me to use unsigned long I suppose. But I was only developing for 32bit at the time.

XXXXXXXX would probably need to be XXXXXXXXXXXXXXXX of course.

And this would need to be modified also.
return (*(unsigned long*)&((unsigned char*)i)[length - strlen(s_offset) / 2])+offset;

It does not seem to difficult to make happen.

@Mellnik
Copy link
Author

Mellnik commented Apr 25, 2015

Thank you for the reply. I got it working, somehow.

@LiamKarlMitchell
Copy link
Owner

oh true, feel free to do a pull request if it still supports 32bit as well.
:D.

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

No branches or pull requests

2 participants