mirror of https://github.com/AxioDL/metaforce.git
TOneStatic tweak
This commit is contained in:
parent
debc677299
commit
b9c3c8138e
|
@ -274,10 +274,10 @@ struct ApplicationCallback : boo::IApplicationCallback
|
|||
|
||||
int main(int argc, const char* argv[])
|
||||
{
|
||||
ApplicationCallback appCB;
|
||||
Retro::TOneStatic<ApplicationCallback> appCB;
|
||||
std::unique_ptr<boo::IApplication> app =
|
||||
boo::ApplicationBootstrap(boo::IApplication::PLAT_AUTO, appCB,
|
||||
boo::ApplicationBootstrap(boo::IApplication::PLAT_AUTO, *appCB,
|
||||
"mp1", "MP1", argc, argv);
|
||||
Retro::MP1::CMain main;
|
||||
return main.RsMain(argc, argv);
|
||||
Retro::TOneStatic<Retro::MP1::CMain> main;
|
||||
return main->RsMain(argc, argv);
|
||||
}
|
||||
|
|
|
@ -19,6 +19,7 @@ public:
|
|||
static T* GetAllocSpace() {return (T*)m_allocspace;}
|
||||
static u32& ReferenceCount() {return m_refCount;}
|
||||
T* operator->() const {return (T*)m_allocspace;}
|
||||
T& operator*() const {return *(T*)m_allocspace;}
|
||||
|
||||
void* operator new(size_t) = delete;
|
||||
void operator delete(void*) = delete;
|
||||
|
|
Loading…
Reference in New Issue