mirror of
https://github.com/encounter/tp.git
synced 2026-07-11 06:18:46 -07:00
c_m3d, c_request OK. Work on Z2Audience (#1900)
This commit is contained in:
@@ -16,7 +16,7 @@ public:
|
||||
TInner() : mSeqData(NULL, 0) {}
|
||||
|
||||
/* 0x000 */ JASTrack outputTrack;
|
||||
/* 0x248 */ JASPoolAllocObject<JAISoundChild>* mSoundChild[32];
|
||||
/* 0x248 */ JAISoundChild* mSoundChild[32];
|
||||
/* 0x2C8 */ JAITempoMgr mTempoMgr;
|
||||
/* 0x2D8 */ JASSoundParams mSoundParams;
|
||||
/* 0x2EC */ JAISeqData mSeqData;
|
||||
|
||||
@@ -61,15 +61,15 @@ public:
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
class JASPoolAllocObject : public T {
|
||||
class JASPoolAllocObject {
|
||||
public:
|
||||
static void* operator new(size_t n) {
|
||||
JASMemPool<T>* memPool = getMemPool();
|
||||
return memPool->alloc(n);
|
||||
return memPool->alloc(sizeof(T));
|
||||
}
|
||||
static void operator delete(void* ptr, size_t n) {
|
||||
JASMemPool<T>* memPool_ = getMemPool();
|
||||
memPool_->free(ptr, n);
|
||||
memPool_->free(ptr, sizeof(T));
|
||||
}
|
||||
static void newMemPool(int param_0) {
|
||||
JASMemPool<T>* memPool_ = getMemPool();
|
||||
@@ -103,15 +103,15 @@ public:
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
class JASPoolAllocObject_MultiThreaded : public T {
|
||||
class JASPoolAllocObject_MultiThreaded {
|
||||
public:
|
||||
static void* operator new(size_t n) {
|
||||
JASMemPool_MultiThreaded<T>* memPool_ = getMemPool();
|
||||
return memPool_->alloc(n);
|
||||
return memPool_->alloc(sizeof(T));
|
||||
}
|
||||
static void operator delete(void* ptr, size_t n) {
|
||||
JASMemPool_MultiThreaded<T>* memPool_ = getMemPool();
|
||||
memPool_->free(ptr, n);
|
||||
memPool_->free(ptr, sizeof(T));
|
||||
}
|
||||
|
||||
static void newMemPool(int n) {
|
||||
|
||||
Reference in New Issue
Block a user