mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-14 15:26:10 +00:00
Fully decouple hecl from Metaforce
- Added CStringExtras Convert functions (and UTF-compatible versions) - GX header copied into Runtime - SFX headers copied into Runtime/Audio
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include "Runtime/GuiSys/CRasterFont.hpp"
|
||||
#include "Runtime/GuiSys/CTextExecuteBuffer.hpp"
|
||||
#include "Runtime/GuiSys/CTextParser.hpp"
|
||||
#include "Runtime/CStringExtras.hpp"
|
||||
|
||||
namespace metaforce {
|
||||
|
||||
@@ -271,7 +272,9 @@ void CGuiTextSupport::SetText(std::u16string_view str, bool multipage) {
|
||||
x304_pageCounter = 0;
|
||||
}
|
||||
|
||||
void CGuiTextSupport::SetText(std::string_view str, bool multipage) { SetText(hecl::UTF8ToChar16(str), multipage); }
|
||||
void CGuiTextSupport::SetText(std::string_view str, bool multipage) {
|
||||
SetText(CStringExtras::ConvertToUNICODE(str), multipage);
|
||||
}
|
||||
|
||||
bool CGuiTextSupport::_GetIsTextSupportFinishedLoading() {
|
||||
for (CToken& tok : x2bc_assets) {
|
||||
|
||||
Reference in New Issue
Block a user