diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-11-19 17:22:04 +0100 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-11-19 17:22:04 +0100 |
commit | 96535c13a51a8ccece9965185250ae5d2a89dabf (patch) | |
tree | 7f7ca633db7aa2a5ec1619e939b1098eeb898199 /src | |
parent | software_keyboard: Check for UTF-8 config flag (diff) | |
download | yuzu-96535c13a51a8ccece9965185250ae5d2a89dabf.tar yuzu-96535c13a51a8ccece9965185250ae5d2a89dabf.tar.gz yuzu-96535c13a51a8ccece9965185250ae5d2a89dabf.tar.bz2 yuzu-96535c13a51a8ccece9965185250ae5d2a89dabf.tar.lz yuzu-96535c13a51a8ccece9965185250ae5d2a89dabf.tar.xz yuzu-96535c13a51a8ccece9965185250ae5d2a89dabf.tar.zst yuzu-96535c13a51a8ccece9965185250ae5d2a89dabf.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/service/am/applets/software_keyboard.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/service/am/applets/software_keyboard.cpp b/src/core/hle/service/am/applets/software_keyboard.cpp index 0ef052be6..816b5fb5f 100644 --- a/src/core/hle/service/am/applets/software_keyboard.cpp +++ b/src/core/hle/service/am/applets/software_keyboard.cpp @@ -63,7 +63,8 @@ void SoftwareKeyboard::Initialize(std::queue<std::shared_ptr<IStorage>> storage_ return; std::vector<char16_t> string(config.initial_string_size); - std::memcpy(string.data(), work_buffer.data() + 4, string.size() * 2); + std::memcpy(string.data(), work_buffer.data() + config.initial_string_offset, + string.size() * 2); initial_text = Common::UTF16StringFromFixedZeroTerminatedBuffer(string.data(), string.size()); } |