mirror of
https://github.com/zeldaret/st
synced 2026-09-03 18:03:52 -04:00
Decompile overlay 1 (Part 1) (#89)
* start overlay 1 * match courselist and delink a lot of files (+ remove SysObject) * fix build issues * fix regressions
This commit is contained in:
+20
-8
@@ -50,14 +50,26 @@ public:
|
||||
~AutoInstance() {}
|
||||
};
|
||||
|
||||
#define DECL_INSTANCE(T, gpInstance) \
|
||||
template <typename T> Instance<T>::Instance() { \
|
||||
gpInstance = (T *) this; \
|
||||
} \
|
||||
template <typename T> Instance<T>::~Instance() { \
|
||||
gpInstance = NULL; \
|
||||
} \
|
||||
template class Instance<T>
|
||||
#define DECL_INSTANCE_CTOR(T, gpInstance) \
|
||||
template <typename T> Instance<T>::Instance() { \
|
||||
gpInstance = (T *) this; \
|
||||
} \
|
||||
template class Instance<T>;
|
||||
|
||||
#define DECL_INSTANCE_DTOR(T, gpInstance) \
|
||||
Instance<T>::~Instance() { \
|
||||
gpInstance = NULL; \
|
||||
}
|
||||
|
||||
#define DECL_INSTANCE(T, gpInstance) \
|
||||
DECL_INSTANCE_CTOR(T, gpInstance) \
|
||||
DECL_INSTANCE_DTOR(T, gpInstance)
|
||||
|
||||
template <typename T> struct StaticInstance {
|
||||
static T sInstance;
|
||||
};
|
||||
|
||||
#define DECL_STATIC_INSTANCE(T) T StaticInstance<T>::sInstance
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user