TOneStatic tweak

This commit is contained in:
Jack Andersen 2015-08-18 13:30:23 -10:00
parent debc677299
commit b9c3c8138e
2 changed files with 5 additions and 4 deletions

View File

@ -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);
}

View File

@ -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;