diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-11-17 18:19:06 +0100 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-11-18 16:53:47 +0100 |
commit | 4ee087fb3ca2b1e064422b73195a8ff7698721d9 (patch) | |
tree | 5dcd31972d79e324e8eb75e19c3c00ff2a83b03c /src/core/hle/service/am/applets/software_keyboard.cpp | |
parent | applet: Add operation completed callback (diff) | |
download | yuzu-4ee087fb3ca2b1e064422b73195a8ff7698721d9.tar yuzu-4ee087fb3ca2b1e064422b73195a8ff7698721d9.tar.gz yuzu-4ee087fb3ca2b1e064422b73195a8ff7698721d9.tar.bz2 yuzu-4ee087fb3ca2b1e064422b73195a8ff7698721d9.tar.lz yuzu-4ee087fb3ca2b1e064422b73195a8ff7698721d9.tar.xz yuzu-4ee087fb3ca2b1e064422b73195a8ff7698721d9.tar.zst yuzu-4ee087fb3ca2b1e064422b73195a8ff7698721d9.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/am/applets/software_keyboard.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/core/hle/service/am/applets/software_keyboard.cpp b/src/core/hle/service/am/applets/software_keyboard.cpp index 039bfcc0f..a5ffa1f31 100644 --- a/src/core/hle/service/am/applets/software_keyboard.cpp +++ b/src/core/hle/service/am/applets/software_keyboard.cpp @@ -42,7 +42,7 @@ SoftwareKeyboard::SoftwareKeyboard() = default; SoftwareKeyboard::~SoftwareKeyboard() = default; -void SoftwareKeyboard::Initialize(std::vector<std::shared_ptr<IStorage>> storage_) { +void SoftwareKeyboard::Initialize(std::queue<std::shared_ptr<IStorage>> storage_) { complete = false; initial_text.clear(); final_data.clear(); @@ -50,11 +50,14 @@ void SoftwareKeyboard::Initialize(std::vector<std::shared_ptr<IStorage>> storage Applet::Initialize(std::move(storage_)); ASSERT(storage_stack.size() >= 2); - const auto& keyboard_config = storage_stack[1]->GetData(); + const auto& keyboard_config = storage_stack.front()->GetData(); + storage_stack.pop(); + ASSERT(keyboard_config.size() >= sizeof(KeyboardConfig)); std::memcpy(&config, keyboard_config.data(), sizeof(KeyboardConfig)); - const auto& work_buffer = storage_stack[2]->GetData(); + const auto& work_buffer = storage_stack.front()->GetData(); + storage_stack.pop(); if (config.initial_string_size == 0) return; |