summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/timer.cpp
diff options
context:
space:
mode:
authorGravatar tech4me2018-08-25 22:43:17 -0700
committerGravatar tech4me2018-08-26 00:11:13 -0700
commitd26a46feed4ef6caeebfb21e69b10c2b913eb4eb (patch)
tree17087ba20c8e3d5cb92596c7a8002f78f008b79f /src/core/hle/kernel/timer.cpp
parentMerge pull request #1173 from lioncash/batch (diff)
downloadyuzu-d26a46feed4ef6caeebfb21e69b10c2b913eb4eb.tar.gz
yuzu-d26a46feed4ef6caeebfb21e69b10c2b913eb4eb.tar.xz
yuzu-d26a46feed4ef6caeebfb21e69b10c2b913eb4eb.zip
set: Fixed GetAvailableLanguageCodes() to follow the max_entries
Rightnow, in games use GetAvailableLanguageCodes(), there is a WriteBuffer() with size larger than the buffer_size. (Core Critical core\hle\kernel\hle_ipc.cpp:WriteBuffer:296: size (0000000000000088) is greater than buffer_size (0000000000000078)) 0x88 = 17(languages) * 8 0x78 = 15(languages) * 8 GetAvailableLanguageCodes() can only support 15 languages. After firmware 4.0.0 there are 17 supported language instead of 15, to enable this GetAvailableLanguageCodes2() need to be used. So GetAvailableLanguageCodes() will be caped at 15 languages. Reference: http://switchbrew.org/index.php/Settings_services
Diffstat (limited to 'src/core/hle/kernel/timer.cpp')
0 files changed, 0 insertions, 0 deletions