options: use fromLocal8Bit for --download-dir and --aircraft-dir
This commit is contained in:
parent
94d96c56cd
commit
194a6f8974
1 changed files with 2 additions and 2 deletions
|
@ -2088,7 +2088,7 @@ void Options::initAircraft()
|
|||
}
|
||||
|
||||
if (isOptionSet("aircraft-dir")) {
|
||||
SGPath aircraftDirPath(valueForOption("aircraft-dir"));
|
||||
SGPath aircraftDirPath = SGPath::fromLocal8Bit(valueForOption("aircraft-dir").c_str());
|
||||
|
||||
// Set this now, so it's available in FindAndCacheAircraft. Use realpath()
|
||||
// as in FGGlobals::append_aircraft_path(), otherwise fgValidatePath()
|
||||
|
@ -2376,7 +2376,7 @@ OptionResult Options::processOptions()
|
|||
}
|
||||
|
||||
// download dir fix-up
|
||||
SGPath downloadDir = SGPath::fromUtf8(valueForOption("download-dir"));
|
||||
SGPath downloadDir = SGPath::fromLocal8Bit(valueForOption("download-dir").c_str());
|
||||
if (downloadDir.isNull()) {
|
||||
downloadDir = defaultDownloadDir();
|
||||
SG_LOG(SG_GENERAL, SG_INFO, "Using default download dir: " << downloadDir);
|
||||
|
|
Loading…
Add table
Reference in a new issue