fix: fix standalone code but not finished

This commit is contained in:
2024-08-11 00:25:08 +08:00
parent 7d9b7f14e8
commit 0e08e518c4
6 changed files with 240 additions and 106 deletions

View File

@@ -14,7 +14,8 @@ namespace VSW::Materializer::Utilities {
void EnhancedReporter::DisableBeep() { m_OrderBeep = false; }
void EnhancedReporter::PrePrint(const YYCC::yycc_char8_t* strl) const {
if (m_Ctx != nullptr)
// only write when CKContext is not nullptr and we are in Interface Mode (Dev mode).
if (m_Ctx != nullptr && m_Ctx->IsInInterfaceMode())
m_Ctx->OutputToConsole(const_cast<CKSTRING>(YYCC::EncodingHelper::UTF8ToChar(strl, CP_ACP).c_str()), m_OrderBeep);
}