irFFB icon indicating copy to clipboard operation
irFFB copied to clipboard

Request: irFFB.ini; place in folder as determined by iRacing method

Open samkatakouzinosracing opened this issue 7 years ago • 0 comments

I request configuration files to reside where iRacing determines the location of the user folder.

Currently the irFFB.ini file is located in the users Documents folder, SHGetKnownFolderPath FOLDERID_Documents.

iRacing determines the location with a 'datadir.txt' file located in the installation folder. The value in this file determines the name of the iRacing folder located inside the users Documents folder. If 'datadir.txt' does not exist the default value is 'iRacing'.

The full path is determined with a combination of FOLDERID_Documents and 'datadir.txt' values rather than FOLDERID_Documents only.

Implementing this request would support;

  • multiple versions of iRacing installed on a users computer to support multiple roles (developers, broadcasters, marshalls, other).
  • users who symlink their iRacing user folder to a non-system drive folder. Primarily I do this for disaster recovery.
  • keep game specific files within the games environment.

References:

  • How to create multiple iRacing configuration on your PC (Randy Cassidy)
    • http://members.iracing.com/jforum/posts/list/3302858.page#8790320

P.S. A side note: I have tried to symlink the irFFB.ini file to a non-system drive folder. That is, a copy of the actual file is in my disaster recovery drive and is symlinked to where the irFBB.ini file is expected. Currently this project does not respect/follow the symlink file. The symlink is overwritten with the actual file and contents, losing the ability to update the file the symlink refers to.

samkatakouzinosracing avatar May 20 '17 05:05 samkatakouzinosracing