yuzu-emu
/
yuzu
Archived
1
0
Fork 0

software_keyboard: Use correct offset for inital text string

This commit is contained in:
Zach Hilman 2018-11-19 11:22:04 -05:00
parent ea680bea60
commit 96535c13a5
1 changed files with 2 additions and 1 deletions

View File

@ -63,7 +63,8 @@ void SoftwareKeyboard::Initialize(std::queue<std::shared_ptr<IStorage>> storage_
return; return;
std::vector<char16_t> string(config.initial_string_size); 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()); initial_text = Common::UTF16StringFromFixedZeroTerminatedBuffer(string.data(), string.size());
} }