Storing config files in executable folder - portable

All discussion about the Commander Genius project (a Keen interpreter + more).
Post Reply
Tartifless
Meep
Posts: 2
Joined: Wed Feb 15, 2023 8:37

Storing config files in executable folder - portable

Post by Tartifless »

Hello team, forum members,

Is there any way to store Commander Genius configuration files inside the executable folder (windows version) instead of storing it in the documents folder ?
I'd like to keep the full software + config files portable on an external hard drive.

Regards,
Ben
gerstrong
Vorticon Elite
Posts: 1246
Joined: Wed Dec 31, 2008 14:44
Location: Frankfurt - Germany
Contact:

Re: Storing config files in executable folder - portable

Post by gerstrong »

That should be no problem. You basically just need to need to add a SearchPaths under the FileHandling section.
Having fun developing stuff...
Tartifless
Meep
Posts: 2
Joined: Wed Feb 15, 2023 8:37

Re: Storing config files in executable folder - portable

Post by Tartifless »

Hello,

I have tried that but the cgenius.cfg file is still created in the documents folder of windows, am i missing something ?
User avatar
lestagio
Vortininja
Posts: 55
Joined: Sun Apr 07, 2024 22:07

Re: Storing config files in executable folder - portable

Post by lestagio »

Here's how I did it:
Take the files from your Documents folder (cgenius.cfg, gameCatalogue.xml and games.cfg)
Paste them to your main Commander Genius folder. You may now delete the Commander Genius folder in "Documents".
Next, open up "cgenius.cfg" in any text editor. Remember, this should now be in the main folder for Genius.
Under file handling, look for the line SearchPath1.
Change that line to your CGenius path. Should look like:
SearchPath1 = C:/_games/CGenius

Change that line to your path.
Lastly, add a folder titled "games" to your CGenius path. This way, you can copy and download games to play in Commander Genius.

Let me know if this doesn't work or if my instructions are unclear!
"We'll never survive the Caves of Oblivion..."
"Nonsense! You're just saying that because no one ever has!"
Post Reply