mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-08 23:02:32 +02:00
Fix loading of the render config JSON
This commit is contained in:
parent
00538c69cd
commit
bde5282541
1 changed files with 2 additions and 2 deletions
|
@ -45,8 +45,8 @@ void Engine::load() {
|
|||
auto config = getConfiguration();
|
||||
const QString configFile= "config/render.json";
|
||||
|
||||
QUrl path(PathUtils::resourcesPath() + configFile);
|
||||
QFile file(path.toString());
|
||||
QString path(PathUtils::resourcesPath() + configFile);
|
||||
QFile file(path);
|
||||
if (!file.exists()) {
|
||||
qWarning() << "Engine configuration file" << path << "does not exist";
|
||||
} else if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) {
|
||||
|
|
Loading…
Reference in a new issue