2
0
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:
2015-11-21 22:51:25 -08:00
parent 59708f4478
commit a21aef6fa3
8 changed files with 234 additions and 72 deletions

View File

@@ -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*)