mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-29 09:32:45 +00:00
Fix incorrect path encoding handling in debug message
This commit is contained in:
parent
bcca1beb69
commit
2ffcc2a2b4
@ -266,7 +266,7 @@ bool Launcher::MainDialog::setupLauncherSettings()
|
|||||||
paths.append(userPath + QString(Config::LauncherSettings::sLauncherConfigFileName));
|
paths.append(userPath + QString(Config::LauncherSettings::sLauncherConfigFileName));
|
||||||
|
|
||||||
foreach (const QString &path, paths) {
|
foreach (const QString &path, paths) {
|
||||||
qDebug() << "Loading config file:" << qPrintable(path);
|
qDebug() << "Loading config file:" << path.toUtf8().constData();
|
||||||
QFile file(path);
|
QFile file(path);
|
||||||
if (file.exists()) {
|
if (file.exists()) {
|
||||||
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) {
|
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) {
|
||||||
@ -297,7 +297,7 @@ bool Launcher::MainDialog::setupGameSettings()
|
|||||||
QString path = userPath + QLatin1String("openmw.cfg");
|
QString path = userPath + QLatin1String("openmw.cfg");
|
||||||
QFile file(path);
|
QFile file(path);
|
||||||
|
|
||||||
qDebug() << "Loading config file:" << qPrintable(path);
|
qDebug() << "Loading config file:" << path.toUtf8().constData();
|
||||||
|
|
||||||
if (file.exists()) {
|
if (file.exists()) {
|
||||||
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) {
|
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) {
|
||||||
@ -320,7 +320,7 @@ bool Launcher::MainDialog::setupGameSettings()
|
|||||||
paths.append(userPath + QString("openmw.cfg"));
|
paths.append(userPath + QString("openmw.cfg"));
|
||||||
|
|
||||||
foreach (const QString &path, paths) {
|
foreach (const QString &path, paths) {
|
||||||
qDebug() << "Loading config file:" << qPrintable(path);
|
qDebug() << "Loading config file:" << path.toUtf8().constData();
|
||||||
|
|
||||||
QFile file(path);
|
QFile file(path);
|
||||||
if (file.exists()) {
|
if (file.exists()) {
|
||||||
|
@ -138,7 +138,7 @@ void Wizard::MainWizard::setupGameSettings()
|
|||||||
QString path(userPath + QLatin1String("openmw.cfg"));
|
QString path(userPath + QLatin1String("openmw.cfg"));
|
||||||
QFile file(path);
|
QFile file(path);
|
||||||
|
|
||||||
qDebug() << "Loading config file:" << qPrintable(path);
|
qDebug() << "Loading config file:" << path.toUtf8().constData();
|
||||||
|
|
||||||
if (file.exists()) {
|
if (file.exists()) {
|
||||||
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) {
|
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) {
|
||||||
@ -163,7 +163,7 @@ void Wizard::MainWizard::setupGameSettings()
|
|||||||
paths.append(globalPath + QLatin1String("openmw.cfg"));
|
paths.append(globalPath + QLatin1String("openmw.cfg"));
|
||||||
|
|
||||||
foreach (const QString &path, paths) {
|
foreach (const QString &path, paths) {
|
||||||
qDebug() << "Loading config file:" << qPrintable(path);
|
qDebug() << "Loading config file:" << path.toUtf8().constData();
|
||||||
|
|
||||||
QFile file(path);
|
QFile file(path);
|
||||||
if (file.exists()) {
|
if (file.exists()) {
|
||||||
@ -197,7 +197,7 @@ void Wizard::MainWizard::setupLauncherSettings()
|
|||||||
|
|
||||||
QFile file(path);
|
QFile file(path);
|
||||||
|
|
||||||
qDebug() << "Loading config file:" << qPrintable(path);
|
qDebug() << "Loading config file:" << path.toUtf8().constData();
|
||||||
|
|
||||||
if (file.exists()) {
|
if (file.exists()) {
|
||||||
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) {
|
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user