mirror of
https://github.com/overte-org/overte.git
synced 2025-04-11 12:20:26 +02:00
Log the location of the primary resources file
Also emit the full path to the file in the exception
This commit is contained in:
parent
6eb7b9ecff
commit
8a8093e529
1 changed files with 4 additions and 2 deletions
|
@ -805,11 +805,13 @@ bool setupEssentials(int& argc, char** argv, bool runningMarkerExisted) {
|
|||
|
||||
{
|
||||
const QString resourcesBinaryFile = PathUtils::getRccPath();
|
||||
qCInfo(interfaceapp) << "Loading primary resources from" << resourcesBinaryFile;
|
||||
|
||||
if (!QFile::exists(resourcesBinaryFile)) {
|
||||
throw std::runtime_error("Unable to find primary resources");
|
||||
throw std::runtime_error(QString("Unable to find primary resources from '%1'").arg(resourcesBinaryFile).toStdString());
|
||||
}
|
||||
if (!QResource::registerResource(resourcesBinaryFile)) {
|
||||
throw std::runtime_error("Unable to load primary resources");
|
||||
throw std::runtime_error(QString("Unable to load primary resources from '%1'").arg(resourcesBinaryFile).toStdString());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue