View previous topic :: View next topic |
Author |
Message |
Corruptor Advanced Cheater Reputation: 3
Joined: 10 Aug 2011 Posts: 82
|
Posted: Sat May 12, 2012 10:36 am Post subject: Check if GLOBALALLOC was allready called |
|
|
Say, i have a auto assamble script scriptA using GLOBALALLOC to allocate (who would have guessed) global memory. When executing scriptB, is there any way to check whether scriptA allready allocated this memory or not?
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Sat May 12, 2012 10:47 am Post subject: |
|
|
no, if scriptA hasn't allocated it, scriptB will allocate it instead
If you wish to make sure scriptA runs first, then use normal alloc and use registersymbol to register that name with the address
then when scriptB runs when it tries to access that name it will fail if scriptA hasn't been executed yet
_________________
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 |
|
|
Corruptor Advanced Cheater Reputation: 3
Joined: 10 Aug 2011 Posts: 82
|
Posted: Sat May 12, 2012 10:53 am Post subject: |
|
|
what does "fail" mean? will it randomly write so some stupid adress or will the execution be arboted? Both would be some kind of bad, if he writes to random adresses, he may destroy something, if the script is aborted, the program will be aborted, since its a code injection and not a new thread.
|
|
Back to top |
|
|
STN I post too much Reputation: 42
Joined: 09 Nov 2005 Posts: 2672
|
Posted: Sun May 13, 2012 3:35 am Post subject: |
|
|
The script won't simply activate.
_________________
|
|
Back to top |
|
|
Corruptor Advanced Cheater Reputation: 3
Joined: 10 Aug 2011 Posts: 82
|
Posted: Sun May 13, 2012 7:05 am Post subject: |
|
|
thx, worked perfectly.
edit: wow, ive gotta wait half a day to give both of you a +rep?
|
|
Back to top |
|
|
|