mirror of
https://github.com/zeldaret/tp
synced 2026-06-05 11:18:35 -04:00
4448c08ac0
* fix some class structures / d_event wip * d_event wip * move gamepad stuff * move m_Do_main * move d_bomb / partial m_Do_reset * format * remove asm * add Z2SoundID enum * move some Z2 classes * fix * move more Z2 stuff * fix fopAc_ac_c more
27 lines
476 B
C++
27 lines
476 B
C++
#ifndef M_DO_M_DO_AUDIO_H
|
|
#define M_DO_M_DO_AUDIO_H
|
|
|
|
#include "dolphin/types.h"
|
|
|
|
// move/fix later
|
|
template <typename T>
|
|
class JASGlobalInstance {
|
|
public:
|
|
JASGlobalInstance(bool param_0) {
|
|
if (param_0) {
|
|
sInstance = this;
|
|
}
|
|
};
|
|
~JASGlobalInstance() {
|
|
if (sInstance == this) {
|
|
sInstance = NULL;
|
|
}
|
|
};
|
|
|
|
T* getInstance() { return sInstance; };
|
|
|
|
static T* sInstance;
|
|
};
|
|
|
|
#endif /* M_DO_M_DO_AUDIO_H */
|