use define for preference file

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8013 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 472be05fada984efe025fcaf068ae9cb52cc8b5e
Former-commit-id: 1e6091431d3d1e6c46ee02c553ceeebecbd208f4
This commit is contained in:
iobyte 2022-02-07 23:09:54 +00:00
parent bb1211a1c7
commit 9fc52abc07

View file

@ -71,7 +71,7 @@ void ForceFeedbackManager::readConfiguration(const std::string &carName){
this->carName = carName;
std::string configFileUrl = GfLocalDir();
configFileUrl.append("drivers/human/preferences.xml");
configFileUrl.append(HM_PREF_FILE);
std::string effectsSectionPathDefault = "forceFeedback/default/effectsConfig";
@ -143,7 +143,7 @@ void ForceFeedbackManager::saveConfiguration(){
effectsSectionPathSpecific.append(carName);
//open the file
void *paramHandle = GfParmReadFileLocal("/drivers/human/preferences.xml", GFPARM_RMODE_STD);
void *paramHandle = GfParmReadFileLocal(HM_PREF_FILE, GFPARM_RMODE_STD);
//delette the current car specific section if it exist
if(GfParmExistsSection(paramHandle, effectsSectionPathSpecific.c_str())){