summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Subv2014-12-19 20:10:05 -0500
committerGravatar Subv2014-12-21 16:39:11 -0500
commit8b0ee935267c23e0d213266cfdb4535b91a8a5c8 (patch)
tree2669ce4e87f98c3454445faa204165eb6b6d986d /src/core
parentCFGU: Use an absolute offset in the config savefile blocks (diff)
downloadyuzu-8b0ee935267c23e0d213266cfdb4535b91a8a5c8.tar.gz
yuzu-8b0ee935267c23e0d213266cfdb4535b91a8a5c8.tar.xz
yuzu-8b0ee935267c23e0d213266cfdb4535b91a8a5c8.zip
CFG: Implemented block 0x00070001 in the config savefile
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/cfg_u.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/hle/service/cfg_u.cpp b/src/core/hle/service/cfg_u.cpp
index 33f63a759..ef8e8c3c9 100644
--- a/src/core/hle/service/cfg_u.cpp
+++ b/src/core/hle/service/cfg_u.cpp
@@ -40,6 +40,8 @@ static const u64 CFG_SAVE_ID = 0x00010017;
40static const u64 CONSOLE_UNIQUE_ID = 0xDEADC0DE; 40static const u64 CONSOLE_UNIQUE_ID = 0xDEADC0DE;
41static const u32 CONSOLE_MODEL = NINTENDO_3DS_XL; 41static const u32 CONSOLE_MODEL = NINTENDO_3DS_XL;
42static const u8 CONSOLE_LANGUAGE = LANGUAGE_EN; 42static const u8 CONSOLE_LANGUAGE = LANGUAGE_EN;
43/// TODO(Subv): Find out what this actually is
44static const u8 SOUND_OUTPUT_MODE = 2;
43static const u32 CONFIG_SAVEFILE_SIZE = 0x8000; 45static const u32 CONFIG_SAVEFILE_SIZE = 0x8000;
44static std::array<u8, CONFIG_SAVEFILE_SIZE> cfg_config_file_buffer = { }; 46static std::array<u8, CONFIG_SAVEFILE_SIZE> cfg_config_file_buffer = { };
45 47
@@ -290,6 +292,9 @@ ResultCode FormatConfig() {
290 res = CreateConfigInfoBlk(0x000A0002, 0x1, 0xA, &CONSOLE_LANGUAGE); 292 res = CreateConfigInfoBlk(0x000A0002, 0x1, 0xA, &CONSOLE_LANGUAGE);
291 if (!res.IsSuccess()) 293 if (!res.IsSuccess())
292 return res; 294 return res;
295 res = CreateConfigInfoBlk(0x00070001, 0x1, 0xE, &SOUND_OUTPUT_MODE);
296 if (!res.IsSuccess())
297 return res;
293 // Save the buffer to the file 298 // Save the buffer to the file
294 res = UpdateConfigNANDSavegame(); 299 res = UpdateConfigNANDSavegame();
295 if (!res.IsSuccess()) 300 if (!res.IsSuccess())