mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 05:47:42 +00:00
Finalize CVarManager (for now)
This commit is contained in:
@@ -1,24 +1,30 @@
|
||||
#include <LogVisor/LogVisor.hpp>
|
||||
#include <boo/boo.hpp>
|
||||
#include <Specter/Specter.hpp>
|
||||
#include <Runtime/CVarManager.hpp>
|
||||
#include <Runtime/CGameAllocator.hpp>
|
||||
|
||||
namespace RUDE
|
||||
{
|
||||
|
||||
struct Application : boo::IApplicationCallback
|
||||
{
|
||||
Retro::CGameAllocator m_allocator;
|
||||
HECL::Runtime::FileStoreManager m_fileMgr;
|
||||
Specter::FontCache m_fontCache;
|
||||
Specter::RootView m_rootView;
|
||||
Retro::CVarManager m_cvarManager;
|
||||
boo::IWindow* m_mainWindow;
|
||||
bool m_running = true;
|
||||
|
||||
Application() : m_fileMgr(_S("rude")), m_fontCache(m_fileMgr), m_rootView(m_fontCache) {}
|
||||
Application() : m_fileMgr(_S("rude")), m_fontCache(m_fileMgr), m_rootView(m_fontCache), m_cvarManager(m_fileMgr, true){}
|
||||
|
||||
int appMain(boo::IApplication* app)
|
||||
{
|
||||
m_allocator.Initialize();
|
||||
m_mainWindow = app->newWindow(_S("RUDE"));
|
||||
m_rootView.setWindow(m_mainWindow, 1.0f);
|
||||
m_cvarManager.serialize();
|
||||
|
||||
while (m_running)
|
||||
{
|
||||
@@ -26,6 +32,7 @@ struct Application : boo::IApplicationCallback
|
||||
|
||||
}
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
void appQuitting(boo::IApplication*)
|
||||
|
||||
Reference in New Issue
Block a user