1
0
Fork 0

Provide error message when file isn't found.

This commit is contained in:
ThorstenB 2011-12-11 13:04:10 +01:00
parent 14b76a1d63
commit 7f5dfe1421

View file

@ -94,6 +94,12 @@ FGFX::init()
}
SGPath path = globals->resolve_aircraft_path(path_str);
if (path.isNull())
{
SG_LOG(SG_SOUND, SG_ALERT,
"File not found: '" << path_str);
return;
}
SG_LOG(SG_SOUND, SG_INFO, "Reading sound " << node->getName()
<< " from " << path.str());