nlp80 / irFFB

iRacing force feedback utility
155 stars 79 forks source link

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

Open samkatakouzinosracing opened 7 years ago

samkatakouzinosracing commented 7 years ago

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;

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.