From 2c409db9b847ff6b5dbe50c73bfd43693483adc0 Mon Sep 17 00:00:00 2001 From: N2614 Date: Thu, 10 Mar 2011 08:57:44 +0000 Subject: [PATCH] =?UTF-8?q?MCU=E3=82=B9=E3=83=A9=E3=82=A4=E3=83=89?= =?UTF-8?q?=E3=83=9C=E3=83=AA=E3=83=A5=E3=83=BC=E3=83=A0=E5=BF=98=E3=82=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@108 385bec56-5757-e545-9c3a-d8741f4650f1 --- trunk/ConsoleDataMigration/ConsoleRestore/Importer.cpp | 8 ++++++++ trunk/ConsoleDataMigration/common/common_Types.h | 1 + 2 files changed, 9 insertions(+) diff --git a/trunk/ConsoleDataMigration/ConsoleRestore/Importer.cpp b/trunk/ConsoleDataMigration/ConsoleRestore/Importer.cpp index 4b8efcc..f843a40 100644 --- a/trunk/ConsoleDataMigration/ConsoleRestore/Importer.cpp +++ b/trunk/ConsoleDataMigration/ConsoleRestore/Importer.cpp @@ -1362,6 +1362,10 @@ void ExportCalData() GET_CFG_KEY(NN_CFG_CODEC, NN_CFG_CODEC_CAL)); COMMON_LOGGER_RESULT_IF_FAILED_WITH_LINE(result); + result = nn::cfg::CTR::init::GetConfig(&cfgCalData.mcuSlideVolumeRangeCfgData, sizeof(McuSlideVolumeRangeCfgData), + GET_CFG_KEY(NN_CFG_MCU, NN_CFG_MCU_SLIDE_VOLUME)); + COMMON_LOGGER_RESULT_IF_FAILED_WITH_LINE(result); + sdWriter.WriteBuf(common::CFG_CALIBRATION_PATHNAME, &cfgCalData, sizeof(cfgCalData)); common::SdMountManager::Unmount(); @@ -1439,6 +1443,10 @@ void InitializeHardwareDependentSetting() sizeof(CodecCfgData)); COMMON_LOGGER_RESULT_IF_FAILED_WITH_LINE(result); + result = nn::cfg::CTR::init::SetConfig(GET_CFG_KEY(NN_CFG_MCU, NN_CFG_MCU_SLIDE_VOLUME), &cfgCalData.mcuSlideVolumeRangeCfgData, + sizeof(McuSlideVolumeRangeCfgData)); + COMMON_LOGGER_RESULT_IF_FAILED_WITH_LINE(result); + NN_LOG("Set cfgCalData\n"); } diff --git a/trunk/ConsoleDataMigration/common/common_Types.h b/trunk/ConsoleDataMigration/common/common_Types.h index 8122a42..8424837 100644 --- a/trunk/ConsoleDataMigration/common/common_Types.h +++ b/trunk/ConsoleDataMigration/common/common_Types.h @@ -60,6 +60,7 @@ struct CfgCalData nn::cfg::CTR::detail::GyroscopeCfgData gyroscopeCfgData; nn::cfg::CTR::detail::AccelCfgData accelCfgData; nn::cfg::CTR::detail::CodecCfgData codecCfgData; + nn::cfg::CTR::detail::McuSlideVolumeRangeCfgData mcuSlideVolumeRangeCfgData; NN_PADDING2; };