early-access version 1956
This commit is contained in:
parent
489aa4bae1
commit
c9b1b5d193
@ -1,7 +1,7 @@
|
|||||||
yuzu emulator early access
|
yuzu emulator early access
|
||||||
=============
|
=============
|
||||||
|
|
||||||
This is the source code for early-access 1955.
|
This is the source code for early-access 1956.
|
||||||
|
|
||||||
## Legal Notice
|
## Legal Notice
|
||||||
|
|
||||||
|
@ -85,7 +85,8 @@ void PushResponseLanguageCode(Kernel::HLERequestContext& ctx, std::size_t num_la
|
|||||||
|
|
||||||
void GetAvailableLanguageCodesImpl(Kernel::HLERequestContext& ctx, std::size_t max_entries) {
|
void GetAvailableLanguageCodesImpl(Kernel::HLERequestContext& ctx, std::size_t max_entries) {
|
||||||
const std::size_t requested_amount = ctx.GetWriteBufferSize() / sizeof(LanguageCode);
|
const std::size_t requested_amount = ctx.GetWriteBufferSize() / sizeof(LanguageCode);
|
||||||
const std::size_t copy_amount = std::min(requested_amount, max_entries);
|
const std::size_t max_amount = std::min(requested_amount, max_entries);
|
||||||
|
const std::size_t copy_amount = std::min(available_language_codes.size(), max_amount);
|
||||||
const std::size_t copy_size = copy_amount * sizeof(LanguageCode);
|
const std::size_t copy_size = copy_amount * sizeof(LanguageCode);
|
||||||
|
|
||||||
ctx.WriteBuffer(available_language_codes.data(), copy_size);
|
ctx.WriteBuffer(available_language_codes.data(), copy_size);
|
||||||
|
Loading…
Reference in New Issue
Block a user