mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-18 11:54:30 +01:00
Fix an ordering issue in Atrac context creation
This commit is contained in:
1 parent
8caec3c34d
commit
63c997b973
5 files changed
+64
-91
No files matched your search
@@ -70,17 +70,16 @@ void DoClass(PointerWrap &p, T *&x) {
|
||||
x->DoState(p);
|
||||
}
|
||||
|
||||
template<class T, class S>
|
||||
void DoSubClass(PointerWrap &p, T *&x) {
|
||||
template<class T, class S, typename... Args>
|
||||
void DoSubClass(PointerWrap &p, T *&x, Args... args) {
|
||||
if (p.mode == PointerWrap::MODE_READ) {
|
||||
if (x != nullptr)
|
||||
delete x;
|
||||
x = new S();
|
||||
x = new S(args...);
|
||||
}
|
||||
x->DoState(p);
|
||||
}
|
||||
|
||||
|
||||
template<class T>
|
||||
void DoArray(PointerWrap &p, T *x, int count) {
|
||||
DoHelper_<T>::DoArray(p, x, count);
|
||||
|
||||
Reference in new issue
Block a user