From 87afef73b1825426ec43f36e2da4915dea632489 Mon Sep 17 00:00:00 2001 From: LFsWang Date: Thu, 31 Mar 2016 20:29:39 +0800 Subject: [PATCH] remove debug code --- src/citra_qt/config.cpp | 2 +- src/common/file_util.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/citra_qt/config.cpp b/src/citra_qt/config.cpp index d1a19ade9c..8e247ff5c0 100644 --- a/src/citra_qt/config.cpp +++ b/src/citra_qt/config.cpp @@ -16,7 +16,7 @@ Config::Config() { // TODO: Don't hardcode the path; let the frontend decide where to put the config files. qt_config_loc = FileUtil::GetUserPath(D_CONFIG_IDX) + "qt-config.ini"; FileUtil::CreateFullPath(qt_config_loc); - qt_config = new QSettings(QString::fromLocal8Bit(qt_config_loc.c_str()), QSettings::IniFormat); + qt_config = new QSettings(QString::fromStdString(qt_config_loc), QSettings::IniFormat); Reload(); } diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index 89eac1380c..9ada09f8ad 100644 --- a/src/common/file_util.cpp +++ b/src/common/file_util.cpp @@ -192,7 +192,7 @@ bool CreateFullPath(const std::string &fullPath) { int panicCounter = 100; LOG_TRACE(Common_Filesystem, "path %s", fullPath.c_str()); - LOG_WARNING(Common_Filesystem, "path %s", fullPath.c_str()); + if (FileUtil::Exists(fullPath)) { LOG_WARNING(Common_Filesystem, "path exists %s", fullPath.c_str());