besteon / Ironmon-Tracker

A Lua script for the Bizhawk/mGBA emulator compatible with Pokemon Fire Red, Leaf Green, Ruby, Sapphire, and Emerald that tracks relevant data for the IronMon challenge.
MIT License
129 stars 45 forks source link

File and folder path overrides #469

Closed UTDZac closed 6 months ago

UTDZac commented 6 months ago

This adds support for overriding the file/folder paths for a few files used by the Tracker. The affected paths are those that the Tracker creates at run time, such as the ROM & log file for a New Run. These overrides are necessary to support docker related installations where some files need to persist between sessions.

To use a path override, edit the Settings.ini file and provide an override path for any of the supported paths.

Here is an example using each of the currently available path overrides:

[overrides]
Animated_Pokemon=C:\IronmonInstall\TrackerFiles\Other\
Randomizer_Error_Log=C:\IronmonInstall\TrackerFiles\Other\
Theme_Presets=C:\IronmonInstall\TrackerFiles\Other\
ROMs_and_Logs=C:\IronmonInstall\TrackerFiles\GameFiles\
Tracker_Data=C:\IronmonInstall\TrackerFiles\GameFiles\
Backup_Saves=C:\IronmonInstall\TrackerFiles\Backups\
Network_Requests=C:\IronmonInstall\TrackerFiles\Other\
Attempt_Counts=C:\IronmonInstall\TrackerFiles\GameFiles\

The path overrides do not have to be identical, nor do the have to be the same; each is handled individually. This example just shows a way to separate them for organization.