diff options
| author | 2014-12-20 23:33:33 -0500 | |
|---|---|---|
| committer | 2014-12-21 16:39:20 -0500 | |
| commit | a1b9b80a55121320fa543fa40fcde0addb205d24 (patch) | |
| tree | e279c4eac2baf3ccf1914dd67ab4539be86368e9 /src/core/hle | |
| parent | CFG_U: Use Common::make_unique instead of the std version (diff) | |
| download | yuzu-a1b9b80a55121320fa543fa40fcde0addb205d24.tar.gz yuzu-a1b9b80a55121320fa543fa40fcde0addb205d24.tar.xz yuzu-a1b9b80a55121320fa543fa40fcde0addb205d24.zip | |
Style: Addressed some comments
Diffstat (limited to 'src/core/hle')
| -rw-r--r-- | src/core/hle/service/cfg_u.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/hle/service/cfg_u.cpp b/src/core/hle/service/cfg_u.cpp index 5d21fcae8..ca70e48b6 100644 --- a/src/core/hle/service/cfg_u.cpp +++ b/src/core/hle/service/cfg_u.cpp | |||
| @@ -59,9 +59,9 @@ static std::array<u8, CONFIG_SAVEFILE_SIZE> cfg_config_file_buffer = { }; | |||
| 59 | 59 | ||
| 60 | /// TODO(Subv): Find out what this actually is | 60 | /// TODO(Subv): Find out what this actually is |
| 61 | /// Thanks Normmatt for providing this information | 61 | /// Thanks Normmatt for providing this information |
| 62 | static const u8 STEREO_CAMERA_SETTINGS[32] = { | 62 | static const std::array<float, 8> STEREO_CAMERA_SETTINGS = { |
| 63 | 0x00, 0x00, 0x78, 0x42, 0x00, 0x80, 0x90, 0x43, 0x9A, 0x99, 0x99, 0x42, 0xEC, 0x51, 0x38, 0x42, | 63 | 62.0f, 289.0f, 76.80000305175781f, 46.08000183105469f, |
| 64 | 0x00, 0x00, 0x20, 0x41, 0x00, 0x00, 0xA0, 0x40, 0xEC, 0x51, 0x5E, 0x42, 0x5C, 0x8F, 0xAC, 0x41 | 64 | 10.0f, 5.0f, 55.58000183105469f, 21.56999969482422f |
| 65 | }; | 65 | }; |
| 66 | 66 | ||
| 67 | // TODO(Link Mauve): use a constexpr once MSVC starts supporting it. | 67 | // TODO(Link Mauve): use a constexpr once MSVC starts supporting it. |
| @@ -293,7 +293,8 @@ ResultCode FormatConfig() { | |||
| 293 | SaveFileConfig* config = reinterpret_cast<SaveFileConfig*>(cfg_config_file_buffer.data()); | 293 | SaveFileConfig* config = reinterpret_cast<SaveFileConfig*>(cfg_config_file_buffer.data()); |
| 294 | config->data_entries_offset = 0x455C; | 294 | config->data_entries_offset = 0x455C; |
| 295 | // Insert the default blocks | 295 | // Insert the default blocks |
| 296 | res = CreateConfigInfoBlk(0x00050005, 0x20, 0xE, STEREO_CAMERA_SETTINGS); | 296 | res = CreateConfigInfoBlk(0x00050005, 0x20, 0xE, |
| 297 | reinterpret_cast<u8 const*>(STEREO_CAMERA_SETTINGS.data())); | ||
| 297 | if (!res.IsSuccess()) | 298 | if (!res.IsSuccess()) |
| 298 | return res; | 299 | return res; |
| 299 | res = CreateConfigInfoBlk(0x00090001, 0x8, 0xE, reinterpret_cast<u8 const*>(&CONSOLE_UNIQUE_ID)); | 300 | res = CreateConfigInfoBlk(0x00090001, 0x8, 0xE, reinterpret_cast<u8 const*>(&CONSOLE_UNIQUE_ID)); |