aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/am/am.cpp
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-11-17 12:18:03 -0500
committerZach Hilman <zachhilman@gmail.com>2018-11-18 10:53:47 -0500
commit19b2571aecfff680c7a414c505eafc26264b6f2f (patch)
tree1f9725a2acbf98647f981496aaf758de1a5008ca /src/core/hle/service/am/am.cpp
parent6209fe0c27a5557c20ff6350a94f6e074e0285dc (diff)
applet: Add operation completed callback
Diffstat (limited to 'src/core/hle/service/am/am.cpp')
-rw-r--r--src/core/hle/service/am/am.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index 470253ef1..5cbcb8d91 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/src/core/hle/service/am/am.cpp
@@ -605,8 +605,10 @@ private:
ASSERT(applet != nullptr);
applet->Initialize(storage_stack);
- storage_stack.clear();
- interactive_storage_stack.clear();
+ while (!storage_stack.empty())
+ storage_stack.pop();
+ while (!interactive_storage_stack.empty())
+ interactive_storage_stack.pop();
applet->Execute([this](IStorage storage) { AppletStorageProxyOutData(storage); },
[this](IStorage storage) { AppletStorageProxyOutInteractiveData(storage); },
[this] { state_changed_event->Signal(); });