Lines 488-499
Link Here
|
488 |
|
488 |
|
489 |
// Read in the system configuration file. |
489 |
// Read in the system configuration file. |
490 |
boost::filesystem::path systemRcPath = rootPath / AQSIS_XSTR(AQSIS_MAIN_CONFIG_NAME); |
490 |
boost::filesystem::path systemRcPath = rootPath / AQSIS_XSTR(AQSIS_MAIN_CONFIG_NAME); |
491 |
std::ifstream rcFile(systemRcPath.file_string().c_str(), std::ios::binary); |
491 |
std::ifstream rcFile(systemRcPath.c_str(), std::ios::binary); |
492 |
if(rcFile) |
492 |
if(rcFile) |
493 |
{ |
493 |
{ |
494 |
Aqsis::log() << info |
494 |
Aqsis::log() << info |
495 |
<< "Reading system config \"" << systemRcPath << "\"\n"; |
495 |
<< "Reading system config \"" << systemRcPath << "\"\n"; |
496 |
QGetRenderContext()->parseRibStream(rcFile, systemRcPath.file_string()); |
496 |
QGetRenderContext()->parseRibStream(rcFile, systemRcPath.native()); |
497 |
rcFile.close(); |
497 |
rcFile.close(); |
498 |
} |
498 |
} |
499 |
else |
499 |
else |
Lines 508-529
Link Here
|
508 |
boost::filesystem::path homeRcPath = homePath; |
508 |
boost::filesystem::path homeRcPath = homePath; |
509 |
homeRcPath /= ".aqsisrc"; |
509 |
homeRcPath /= ".aqsisrc"; |
510 |
|
510 |
|
511 |
std::ifstream rcFile(homeRcPath.file_string().c_str(), std::ios::binary); |
511 |
std::ifstream rcFile(homeRcPath.c_str(), std::ios::binary); |
512 |
if(rcFile) |
512 |
if(rcFile) |
513 |
{ |
513 |
{ |
514 |
Aqsis::log() << info << "Reading user config \"" << homeRcPath << "\"\n"; |
514 |
Aqsis::log() << info << "Reading user config \"" << homeRcPath << "\"\n"; |
515 |
QGetRenderContext()->parseRibStream(rcFile, homeRcPath.file_string()); |
515 |
QGetRenderContext()->parseRibStream(rcFile, homeRcPath.native()); |
516 |
} |
516 |
} |
517 |
else |
517 |
else |
518 |
{ |
518 |
{ |
519 |
boost::filesystem::path homeRcPath2 = homePath; |
519 |
boost::filesystem::path homeRcPath2 = homePath; |
520 |
homeRcPath2 /= "_aqsisrc"; |
520 |
homeRcPath2 /= "_aqsisrc"; |
521 |
|
521 |
|
522 |
std::ifstream rcFile(homeRcPath2.file_string().c_str(), std::ios::binary); |
522 |
std::ifstream rcFile(homeRcPath2.c_str(), std::ios::binary); |
523 |
if(rcFile) |
523 |
if(rcFile) |
524 |
{ |
524 |
{ |
525 |
Aqsis::log() << info << "Reading user config \"" << homeRcPath2 << "\"\n"; |
525 |
Aqsis::log() << info << "Reading user config \"" << homeRcPath2 << "\"\n"; |
526 |
QGetRenderContext()->parseRibStream(rcFile, homeRcPath2.file_string()); |
526 |
QGetRenderContext()->parseRibStream(rcFile, homeRcPath2.native()); |
527 |
} |
527 |
} |
528 |
else |
528 |
else |
529 |
{ |
529 |
{ |