Posted: Tue Oct 01, 2019 6:17 am Post subject: Support trainer for 32-bit and 64-bit OS
How to support trainer for 32-bit and 64-bit OS? Made a trainer with addresses (0x009ACA65). So, I need to redo the addresses to ex.: readBytes('ePSXe ENG.exe + 5E9738'). But I want to support both:
at the same time. Regardless of whether you run ePSXe.exe or ePSXe ENG.exe. So, I want to support trainer for 32 and 64 bit OS and for ePSXe.exe and ePSXe ENG.exe. What do I need to do in this case?
Solution found.
Code:
GameName1 = 'ePSXe ENG.exe'
GameName2 = 'ePSXe.exe'
GameID1 = getProcessIDFromProcessName(GameName1)
GameID2 = getProcessIDFromProcessName(GameName2)
if (GameID1 == nil) and (GameID2 ~= nil) then
openProcess(GameName2)
baseaddr = getAddress(GameName2)
elseif (GameID1 ~= nil) and (GameID2 == nil) then
openProcess(GameName1)
baseaddr = getAddress(GameName1)
elseif (GameID1 == nil) and (GameID2 == nil) then
closeCE()
return end
Will such a trainer work on all 32 and 64-bit OS?
Last edited by Razi on Sun Nov 10, 2019 1:04 am; edited 1 time in total
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum