mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 17:47:43 +00:00
more input implementation
This commit is contained in:
@@ -3,10 +3,12 @@
|
||||
#include "CResFactory.hpp"
|
||||
#include "CResLoader.hpp"
|
||||
#include "GameGlobalObjects.hpp"
|
||||
#include "DataSpec/DNAMP1/Tweaks/CTweakPlayer.hpp"
|
||||
#include "DataSpec/DNAMP1/Tweaks/CTweakPlayerControl.hpp"
|
||||
|
||||
namespace Retro
|
||||
{
|
||||
ITweakPlayer* g_tweakPlayer = nullptr;
|
||||
ITweakPlayerControl* g_tweakPlayerControl = nullptr;
|
||||
|
||||
namespace MP1
|
||||
@@ -28,6 +30,10 @@ void CTweaks::RegisterTweaks()
|
||||
CResLoader& loader = factory.GetLoader();
|
||||
std::unique_ptr<CInputStream> strm;
|
||||
|
||||
strm.reset(loader.LoadNewResourceSync(IDFromFactory(factory, "Player"), nullptr));
|
||||
TOneStatic<DNAMP1::CTweakPlayer> player(*strm);
|
||||
g_tweakPlayer = player.GetAllocSpace();
|
||||
|
||||
strm.reset(loader.LoadNewResourceSync(IDFromFactory(factory, "PlayerControls"), nullptr));
|
||||
TOneStatic<DNAMP1::CTweakPlayerControl> playerControl(*strm);
|
||||
g_tweakPlayerControl = playerControl.GetAllocSpace();
|
||||
|
||||
Reference in New Issue
Block a user