AppleWin/source/linux/context.h
Andrea Odetti ad6ca9c940 Move Initialise/Destroy Emulator to LinuxFrame.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-12-04 12:42:02 +00:00

38 lines
643 B
C++

#pragma once
#include <memory>
class FrameBase;
class Paddle;
class Registry;
void SetFrame(const std::shared_ptr<FrameBase> & frame);
void InitialiseEmulator();
void DestroyEmulator();
// RAII around Frame Registry and Paddle
class Initialisation
{
public:
Initialisation(
const std::shared_ptr<FrameBase> & frame,
const std::shared_ptr<Paddle> & paddle
);
~Initialisation();
};
// RAII around LogInit / LogDone.
class LoggerContext
{
public:
LoggerContext(const bool log);
~LoggerContext();
};
class RegistryContext
{
public:
RegistryContext(const std::shared_ptr<Registry> & registry);
~RegistryContext();
};