AuroraRuntime/Source/Console/Console.cpp
2021-06-27 22:25:29 +01:00

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();
}
}