mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-18 11:54:30 +01:00
UI: Add a simple means of persisting data.
This commit is contained in:
1 parent
84d815768b
commit
f6772ec526
4 files changed
+31
-4
No files matched your search
@@ -70,11 +70,18 @@ void ViewGroup::Clear() {
|
||||
lock_guard guard(modifyLock_);
|
||||
for (size_t i = 0; i < views_.size(); i++) {
|
||||
delete views_[i];
|
||||
views_[i] = 0;
|
||||
views_[i] = nullptr;
|
||||
}
|
||||
views_.clear();
|
||||
}
|
||||
|
||||
void ViewGroup::PersistData(PersistStatus status, PersistMap &storage) {
|
||||
lock_guard guard(modifyLock_);
|
||||
for (size_t i = 0; i < views_.size(); i++) {
|
||||
views_[i]->PersistData(status, storage);
|
||||
}
|
||||
}
|
||||
|
||||
void ViewGroup::Touch(const TouchInput &input) {
|
||||
lock_guard guard(modifyLock_);
|
||||
for (auto iter = views_.begin(); iter != views_.end(); ++iter) {
|
||||
|
||||
Reference in new issue
Block a user