summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Subv2014-12-21 18:25:49 -0500
committerGravatar Subv2014-12-21 18:25:49 -0500
commit2030f9d946dca2b45f343deea207ece15843341d (patch)
treef3ce98b24542c0b04444beff7d9dfdf896960e96 /src
parentCFG: More style changes (diff)
downloadyuzu-2030f9d946dca2b45f343deea207ece15843341d.tar.gz
yuzu-2030f9d946dca2b45f343deea207ece15843341d.tar.xz
yuzu-2030f9d946dca2b45f343deea207ece15843341d.zip
CFG: Fixed some warnings and errors in Clang
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/cfg/cfg.cpp6
-rw-r--r--src/core/hle/service/cfg/cfg.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/service/cfg/cfg.cpp b/src/core/hle/service/cfg/cfg.cpp
index abc2480f3..161aa8531 100644
--- a/src/core/hle/service/cfg/cfg.cpp
+++ b/src/core/hle/service/cfg/cfg.cpp
@@ -13,7 +13,7 @@ namespace CFG {
13 13
14const u64 CFG_SAVE_ID = 0x00010017; 14const u64 CFG_SAVE_ID = 0x00010017;
15const u64 CONSOLE_UNIQUE_ID = 0xDEADC0DE; 15const u64 CONSOLE_UNIQUE_ID = 0xDEADC0DE;
16const ConsoleModelInfo CONSOLE_MODEL = { NINTENDO_3DS_XL, 0, 0, 0 }; 16const ConsoleModelInfo CONSOLE_MODEL = { NINTENDO_3DS_XL, { 0, 0, 0 } };
17const u8 CONSOLE_LANGUAGE = LANGUAGE_EN; 17const u8 CONSOLE_LANGUAGE = LANGUAGE_EN;
18const char CONSOLE_USERNAME[0x14] = "CITRA"; 18const char CONSOLE_USERNAME[0x14] = "CITRA";
19/// This will be initialized in CFGInit, and will be used when creating the block 19/// This will be initialized in CFGInit, and will be used when creating the block
@@ -22,7 +22,7 @@ UsernameBlock CONSOLE_USERNAME_BLOCK;
22const u8 SOUND_OUTPUT_MODE = 2; 22const u8 SOUND_OUTPUT_MODE = 2;
23const u8 UNITED_STATES_COUNTRY_ID = 49; 23const u8 UNITED_STATES_COUNTRY_ID = 49;
24/// TODO(Subv): Find what the other bytes are 24/// TODO(Subv): Find what the other bytes are
25const ConsoleCountryInfo COUNTRY_INFO = { 0, 0, 0, UNITED_STATES_COUNTRY_ID }; 25const ConsoleCountryInfo COUNTRY_INFO = { { 0, 0, 0 }, UNITED_STATES_COUNTRY_ID };
26 26
27/** 27/**
28 * TODO(Subv): Find out what this actually is, these values fix some NaN uniforms in some games, 28 * TODO(Subv): Find out what this actually is, these values fix some NaN uniforms in some games,
@@ -62,7 +62,7 @@ ResultCode GetConfigInfoBlock(u32 block_id, u32 size, u32 flag, u8* output) {
62 return RESULT_SUCCESS; 62 return RESULT_SUCCESS;
63} 63}
64 64
65ResultCode CreateConfigInfoBlk(u32 block_id, u32 size, u32 flags, const u8* data) { 65ResultCode CreateConfigInfoBlk(u32 block_id, u16 size, u16 flags, const u8* data) {
66 SaveFileConfig* config = reinterpret_cast<SaveFileConfig*>(cfg_config_file_buffer.data()); 66 SaveFileConfig* config = reinterpret_cast<SaveFileConfig*>(cfg_config_file_buffer.data());
67 if (config->total_entries >= CONFIG_FILE_MAX_BLOCK_ENTRIES) 67 if (config->total_entries >= CONFIG_FILE_MAX_BLOCK_ENTRIES)
68 return ResultCode(-1); // TODO(Subv): Find the right error code 68 return ResultCode(-1); // TODO(Subv): Find the right error code
diff --git a/src/core/hle/service/cfg/cfg.h b/src/core/hle/service/cfg/cfg.h
index 38db5a5ec..c74527ca4 100644
--- a/src/core/hle/service/cfg/cfg.h
+++ b/src/core/hle/service/cfg/cfg.h
@@ -114,7 +114,7 @@ ResultCode GetConfigInfoBlock(u32 block_id, u32 size, u32 flag, u8* output);
114 * @param data A pointer containing the data we will write to the new block 114 * @param data A pointer containing the data we will write to the new block
115 * @returns ResultCode indicating the result of the operation, 0 on success 115 * @returns ResultCode indicating the result of the operation, 0 on success
116 */ 116 */
117ResultCode CreateConfigInfoBlk(u32 block_id, u32 size, u32 flags, const u8* data); 117ResultCode CreateConfigInfoBlk(u32 block_id, u16 size, u16 flags, const u8* data);
118 118
119/** 119/**
120 * Deletes the config savegame file from the filesystem, the buffer in memory is not affected 120 * Deletes the config savegame file from the filesystem, the buffer in memory is not affected