Print missing --data path in the "fatal message box"
As suggested by Slawek Mikula: https://sourceforge.net/p/flightgear/codetickets/2164/#c397
This commit is contained in:
parent
3fc1bdff45
commit
3300ac543e
2 changed files with 3 additions and 2 deletions
|
@ -101,7 +101,7 @@ private:
|
||||||
*/
|
*/
|
||||||
PathList additional_data_paths;
|
PathList additional_data_paths;
|
||||||
|
|
||||||
PathList _dataPathsAfterFGRoot; ///< paths with a /lower/ prioirty than FGRoot
|
PathList _dataPathsAfterFGRoot; ///< paths with a /lower/ priority than FGRoot
|
||||||
|
|
||||||
// Users home directory for data
|
// Users home directory for data
|
||||||
SGPath fg_home;
|
SGPath fg_home;
|
||||||
|
|
|
@ -733,7 +733,8 @@ fgOptAdditionalDataDir(const char* arg)
|
||||||
const SGPath dataPath = SGPath::fromUtf8(arg);
|
const SGPath dataPath = SGPath::fromUtf8(arg);
|
||||||
if (!dataPath.exists()) {
|
if (!dataPath.exists()) {
|
||||||
SG_LOG(SG_GENERAL, SG_ALERT, "--data path not found:'" << dataPath << "'");
|
SG_LOG(SG_GENERAL, SG_ALERT, "--data path not found:'" << dataPath << "'");
|
||||||
flightgear::fatalMessageBoxWithoutExit("FlightGear", "Data path not found");
|
flightgear::fatalMessageBoxWithoutExit(
|
||||||
|
"FlightGear", "Data path not found: '" + dataPath.utf8Str() + "'.");
|
||||||
return FG_OPTIONS_EXIT;
|
return FG_OPTIONS_EXIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue