Re #204 (Unable to use own skins for WR-Series Cars) Added <user settings>/driver/<robot>/<driver index>/<car name> in the search path for textures, to be consistent with <install>/driver/<robot>/<driver index>/<car name> and enable user customization really at the driver level
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@2934 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: eb6a9b607971ae9dba767b824ae23ccb60d54c1d Former-commit-id: 05048f8806a76498ab8eb7c0f0dded3eb98bd239
This commit is contained in:
parent
83a27b59db
commit
86a0e87eca
1 changed files with 6 additions and 0 deletions
|
@ -621,6 +621,9 @@ grInitCar(tCarElt *car)
|
|||
lg += sprintf(grFilePath + lg, "%sdrivers/%s/%s;", GetLocalDir(), car->_modName, car->_carName);
|
||||
if (bTemplate)
|
||||
lg += sprintf(grFilePath + lg, "%sdrivers/%s/%s;", GetLocalDir(), car->_modName, car->_carTemplate);
|
||||
lg += sprintf(grFilePath + lg, "%sdrivers/%s/%d/%s;", GetLocalDir(), car->_modName, car->_driverIndex, car->_carName);
|
||||
if (bTemplate)
|
||||
lg += sprintf(grFilePath + lg, "%sdrivers/%s/%d/%s;", GetLocalDir(), car->_modName, car->_driverIndex, car->_carTemplate);
|
||||
lg += sprintf(grFilePath + lg, "drivers/%s/%d/%s;", car->_modName, car->_driverIndex, car->_carName);
|
||||
if (bTemplate)
|
||||
lg += sprintf(grFilePath + lg, "drivers/%s/%d/%s;", car->_modName, car->_driverIndex, car->_carTemplate);
|
||||
|
@ -663,6 +666,9 @@ grInitCar(tCarElt *car)
|
|||
lg += sprintf(buf + lg, "%sdrivers/%s/%s;", GetLocalDir(), car->_modName, car->_carName);
|
||||
if (bTemplate)
|
||||
lg += sprintf(buf + lg, "%sdrivers/%s/%s;", GetLocalDir(), car->_modName, car->_carTemplate);
|
||||
lg += sprintf(buf + lg, "%sdrivers/%s/%d/%s;", GetLocalDir(), car->_modName, car->_driverIndex, car->_carName);
|
||||
if (bTemplate)
|
||||
lg += sprintf(buf + lg, "%sdrivers/%s/%d/%s;", GetLocalDir(), car->_modName, car->_driverIndex, car->_carTemplate);
|
||||
lg += sprintf(buf + lg, "drivers/%s/%d/%s;", car->_modName, car->_driverIndex, car->_carName);
|
||||
if (bTemplate)
|
||||
lg += sprintf(buf + lg, "drivers/%s/%d/%s;", car->_modName, car->_driverIndex, car->_carTemplate);
|
||||
|
|
Loading…
Reference in a new issue