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>
23 lines
365 B
C++
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();
|
|
};
|