48 lines
962 B
C++
48 lines
962 B
C++
/***
|
|
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: Console.cpp
|
|
Date: 2021-6-8
|
|
Author: Reece
|
|
***/
|
|
#include <RuntimeInternal.hpp>
|
|
#include "Console.hpp"
|
|
#include "Commands/Commands.hpp"
|
|
#include "Hooks/Hooks.hpp"
|
|
#include "ConsoleAsioStd/ConsoleAsioStd.hpp"
|
|
#include "ConsoleWxWidgets/ConsoleWxWidgets.hpp"
|
|
#include "ConsoleLogger/ConsoleLogger.hpp"
|
|
|
|
namespace Aurora::Console
|
|
{
|
|
void WriteLine(const ConsoleMessage &msg)
|
|
{
|
|
Hooks::WriteLine(msg);
|
|
}
|
|
|
|
void Init()
|
|
{
|
|
ConsoleAsioStd::Init();
|
|
ConsoleWxWidgets::Init();
|
|
}
|
|
|
|
void Init2()
|
|
{
|
|
ConsoleLogger::Init();
|
|
}
|
|
|
|
void Pump()
|
|
{
|
|
Commands::PumpCommands();
|
|
ConsoleAsioStd::Pump();
|
|
ConsoleWxWidgets::Pump();
|
|
ConsoleLogger::Pump();
|
|
}
|
|
|
|
void Exit()
|
|
{
|
|
ConsoleAsioStd::Exit();
|
|
ConsoleWxWidgets::Exit();
|
|
ConsoleLogger::Exit();
|
|
}
|
|
} |