refactor: decouple minecraft/ from app/ via IGameServices virtual interface

This commit is contained in:
MatthewBeshay
2026-04-06 16:14:25 +10:00
committed by Tropical
parent 7787015025
commit 5d9bcac156
246 changed files with 1897 additions and 2224 deletions

View File

@@ -4,7 +4,7 @@
#include <sstream>
#include <vector>
#include "minecraft/GameServices.h"
#include "minecraft/IGameServices.h"
#include "util/StringHelpers.h"
HtmlString::HtmlString(std::wstring text, eMinecraftColour hexColor,
@@ -30,7 +30,7 @@ std::wstring HtmlString::ToString() {
this->color == eMinecraftColour_NOT_SET ? eHTMLColor_7 : this->color;
ss << L"<font color=\"#" << std::setfill(L'0') << std::setw(6) << std::hex
<< GameServices::getHTMLColor(color) << L"\">" << text << "</font>";
<< gameServices().getHTMLColour(color) << L"\">" << text << "</font>";
if (italics) {
ss << "</i>";