mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-11 13:47:43 +00:00
various input class implementations
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#ifndef __RETRO_CMAIN_HPP__
|
||||
#define __RETRO_CMAIN_HPP__
|
||||
|
||||
#include "COsContext.hpp"
|
||||
#include <boo/boo.hpp>
|
||||
#include "CMemory.hpp"
|
||||
#include "CTweaks.hpp"
|
||||
#include "CPlayMovie.hpp"
|
||||
@@ -21,12 +21,35 @@ enum EGameplayResult
|
||||
GameplayResultPlaying
|
||||
};
|
||||
|
||||
class CMain : public COsContext
|
||||
{
|
||||
class CMain : public boo::IApplicationCallback
|
||||
{
|
||||
boo::IWindow* mainWindow = NULL;
|
||||
#if 0
|
||||
ApplicationDeviceFinder devFinder;
|
||||
WindowCallback windowCallback;
|
||||
void appLaunched(boo::IApplication* app)
|
||||
{
|
||||
mainWindow = app->newWindow("YAY!");
|
||||
mainWindow->setCallback(&windowCallback);
|
||||
mainWindow->showWindow();
|
||||
devFinder.startScanning();
|
||||
}
|
||||
void appQuitting(boo::IApplication*)
|
||||
{}
|
||||
void appFilesOpen(boo::IApplication*, const std::vector<std::string>& paths)
|
||||
{
|
||||
fprintf(stderr, "OPENING: ");
|
||||
for (const std::string& path : paths)
|
||||
fprintf(stderr, "%s ", path.c_str());
|
||||
fprintf(stderr, "\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
CMemorySys x6c_memSys;
|
||||
CTweaks x70_tweaks;
|
||||
EGameplayResult xe4_gameplayResult;
|
||||
bool xe8_finished = false;
|
||||
|
||||
public:
|
||||
CMain();
|
||||
void RegisterResourceTweaks();
|
||||
|
||||
Reference in New Issue
Block a user