Big update.

This commit is contained in:
UltraNix
2022-03-12 22:28:00 +01:00
parent 6006eeeb01
commit 12d41d1314
2064 changed files with 427245 additions and 268481 deletions

View File

@@ -20,13 +20,11 @@
/// \file
#include "CliRunnable.h"
#include "Common.h"
#include "Config.h"
#include "Errors.h"
#include "Log.h"
#include "ObjectMgr.h"
#include "Util.h"
#include "World.h"
#include <fmt/core.h>
#if AC_PLATFORM != AC_PLATFORM_WINDOWS
#include "Chat.h"
@@ -40,7 +38,7 @@ static constexpr char CLI_PREFIX[] = "AC> ";
static inline void PrintCliPrefix()
{
printf("%s", CLI_PREFIX);
fmt::print(CLI_PREFIX);
}
#if AC_PLATFORM != AC_PLATFORM_WINDOWS
@@ -77,14 +75,10 @@ namespace Acore::Impl::Readline
void utf8print(void* /*arg*/, std::string_view str)
{
#if AC_PLATFORM == AC_PLATFORM_WINDOWS
std::wstring wbuf;
if (!Utf8toWStr(str, wbuf))
return;
wprintf(L"%s", wbuf.c_str());
fmt::print(str);
#else
{
printf(STRING_VIEW_FMT, STRING_VIEW_FMT_ARG(str));
fmt::print(str);
fflush(stdout);
}
#endif