View previous topic :: View next topic |
Author |
Message |
panraven Grandmaster Cheater Reputation: 54
Joined: 01 Oct 2008 Posts: 941
|
Posted: Sat Feb 21, 2015 9:50 am Post subject: RE-Assign Custom Symbol from globalalloc |
|
|
The scenario is a lua calling autoAssemble to globalalloc some symbol.
When I run the script, globalalloc some symbol on some process, then not saving the ct, close ce.
Then I run again ce and attach the still running process, those globalalloc symbol is not the same as previous.
Question: Is there way to re-assign the symbol to the 'right address'?
The 'right address' will be saved to Setting with 'process id' as key when 1st globalalloc is run using lua script.
Thank you~
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Sat Feb 21, 2015 10:41 am Post subject: |
|
|
use lua function allocateSharedMemory instead of globalalloc then.
The address will be different, but will be the same memory
or you could use that shared memory block to hold pointers to the originally allocated blocks and on load register the symbols back to the addresses in that block
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
panraven Grandmaster Cheater Reputation: 54
Joined: 01 Oct 2008 Posts: 941
|
Posted: Sat Feb 21, 2015 11:04 am Post subject: |
|
|
Dark Byte wrote: | use lua function allocateSharedMemory instead of globalalloc then.
The address will be different, but will be the same memory
or you could use that shared memory block to hold pointers to the originally allocated blocks and on load register the symbols back to the addresses in that block |
Thank you.
I should check doc more carefully
These suit my need:
Code: | unregisterSymbol('symbolname')
registerSymbol('symbolname',0x4410000) |
|
|
Back to top |
|
|
|