summaryrefslogtreecommitdiffstats
path: root/src/citra_qt
diff options
context:
space:
mode:
authorwwylele <wwylele@gmail.com>2016-12-21 19:05:56 +0100
committerwwylele <wwylele@gmail.com>2017-01-11 10:46:44 +0100
commitcf3a272332b03640730d1434e9802e166ca931da (patch)
tree7297bf1b38679cb84b5baa7c98b5b9e729560131 /src/citra_qt
parentMerge pull request #2369 from MerryMage/core-frontend (diff)
downloadyuzu-cf3a272332b03640730d1434e9802e166ca931da.tar
yuzu-cf3a272332b03640730d1434e9802e166ca931da.tar.gz
yuzu-cf3a272332b03640730d1434e9802e166ca931da.tar.bz2
yuzu-cf3a272332b03640730d1434e9802e166ca931da.tar.lz
yuzu-cf3a272332b03640730d1434e9802e166ca931da.tar.xz
yuzu-cf3a272332b03640730d1434e9802e166ca931da.tar.zst
yuzu-cf3a272332b03640730d1434e9802e166ca931da.zip
Diffstat (limited to 'src/citra_qt')
-rw-r--r--src/citra_qt/config.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/citra_qt/config.cpp b/src/citra_qt/config.cpp
index 06a4e9d25..58eb5a96e 100644
--- a/src/citra_qt/config.cpp
+++ b/src/citra_qt/config.cpp
@@ -66,6 +66,22 @@ void Config::ReadValues() {
qt_config->value("enable_audio_stretching", true).toBool();
qt_config->endGroup();
+ using namespace Service::CAM;
+ qt_config->beginGroup("Camera");
+ Settings::values.camera_name[OuterRightCamera] =
+ qt_config->value("camera_outer_right_name", "blank").toString().toStdString();
+ Settings::values.camera_config[OuterRightCamera] =
+ qt_config->value("camera_outer_right_config", "").toString().toStdString();
+ Settings::values.camera_name[InnerCamera] =
+ qt_config->value("camera_inner_name", "blank").toString().toStdString();
+ Settings::values.camera_config[InnerCamera] =
+ qt_config->value("camera_inner_config", "").toString().toStdString();
+ Settings::values.camera_name[OuterLeftCamera] =
+ qt_config->value("camera_outer_left_name", "blank").toString().toStdString();
+ Settings::values.camera_config[OuterLeftCamera] =
+ qt_config->value("camera_outer_left_config", "").toString().toStdString();
+ qt_config->endGroup();
+
qt_config->beginGroup("Data Storage");
Settings::values.use_virtual_sd = qt_config->value("use_virtual_sd", true).toBool();
qt_config->endGroup();
@@ -171,6 +187,22 @@ void Config::SaveValues() {
qt_config->setValue("enable_audio_stretching", Settings::values.enable_audio_stretching);
qt_config->endGroup();
+ using namespace Service::CAM;
+ qt_config->beginGroup("Camera");
+ qt_config->setValue("camera_outer_right_name",
+ QString::fromStdString(Settings::values.camera_name[OuterRightCamera]));
+ qt_config->setValue("camera_outer_right_config",
+ QString::fromStdString(Settings::values.camera_config[OuterRightCamera]));
+ qt_config->setValue("camera_inner_name",
+ QString::fromStdString(Settings::values.camera_name[InnerCamera]));
+ qt_config->setValue("camera_inner_config",
+ QString::fromStdString(Settings::values.camera_config[InnerCamera]));
+ qt_config->setValue("camera_outer_left_name",
+ QString::fromStdString(Settings::values.camera_name[OuterLeftCamera]));
+ qt_config->setValue("camera_outer_left_config",
+ QString::fromStdString(Settings::values.camera_config[OuterLeftCamera]));
+ qt_config->endGroup();
+
qt_config->beginGroup("Data Storage");
qt_config->setValue("use_virtual_sd", Settings::values.use_virtual_sd);
qt_config->endGroup();