AppleWin/source/linux/context.h
Andrea Odetti 7b09bacb01 Initialisation: some fixes.
Ensure log file is created before it is used the first time.
Only close the log file once at the end.

https://github.com/audetto/AppleWin/issues/30

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-23 20:06:36 +01:00

23 lines
365 B
C++

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