Posted: Tue Feb 07, 2017 11:05 am Post subject: Standalone can't read external file in same folder
Hi.
I have my trainer reading a few settings from an external file, which I want the user to be able to change at will and see the setting updated on the trainer. The problem arises when compiling the standalone file where the trainer will not see the file in the same folder. This is because the standalone is only a self-extracting package which will be run from a temp folder.
How can I make it so that the trainer know the folder path from where it actually originated or any other solution that allows me to have both files in the same place without hard-coding a path and forcing users to use that path?
Thanks!
NOTE: The content of the files are settings which I want the user to be able to change easily with notepad. I know that I can save settings to Windows registry but I was trying to avoid going that route and having to code more functions to handle everything inside the trainer.
If I'm not misunderstanding I believe this is what you are looking for
Code:
TrainerOrigin : A variable that contains the path of the trainer that launched cheat engine (Only set when launched as a trainer)
That is exactly what I was looking for. Thank you!
Didn't find anything when searching the forum the first time around, but after another try I did find a thread where this was mentioned as introduced in CE 6.2. I hate spamming the forum with questions that have already been answered. Sorry, forum masters.
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