nlp80 / irFFB

iRacing force feedback utility

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

samkatakouzinosracing opened this issue · 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:

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.