mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 01:12:48 +02:00
Merge pull request #1309 from daleglass/log-resources-location
Log the location of the primary resources file
This commit is contained in:
commit
0af1ef64ca
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