2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 13:07:42 +00:00

Implement key FrontEnd Touch Bar functionality

This commit is contained in:
Jack Andersen
2017-02-08 23:23:17 -10:00
parent 8a5e0ec775
commit 3f03ba7950
13 changed files with 443 additions and 32 deletions

View File

@@ -29,7 +29,8 @@ URDE_DECL_SPECIALIZE_MULTI_BLEND_SHADER(CTextSupportShader)
namespace MP1
{
CGameArchitectureSupport::CGameArchitectureSupport(CMain& parent, boo::IAudioVoiceEngine* voiceEngine,
CGameArchitectureSupport::CGameArchitectureSupport(CMain& parent,
boo::IAudioVoiceEngine* voiceEngine,
amuse::IBackendVoiceAllocator& backend)
: m_parent(parent),
x0_audioSys(voiceEngine, backend, 0,0,0,0,0),
@@ -254,9 +255,11 @@ void CMain::StreamNewGameState(CBitStreamReader& r, u32 idx)
}
void CMain::Init(const hecl::Runtime::FileStoreManager& storeMgr,
boo::IWindow* window,
boo::IAudioVoiceEngine* voiceEngine,
amuse::IBackendVoiceAllocator& backend)
{
m_mainWindow = window;
InitializeSubsystems(storeMgr);
x128_globalObjects.PostInitialize();
x70_tweaks.RegisterTweaks();
@@ -320,6 +323,11 @@ void CMain::Shutdown()
TMultiBlendShader<CTextSupportShader>::Shutdown();
}
boo::IWindow* CMain::GetMainWindow() const
{
return m_mainWindow;
}
#if MP1_USE_BOO
int CMain::appMain(boo::IApplication* app)