From cf6707d1957941f4ce14b18690217e83a7299d2e Mon Sep 17 00:00:00 2001 From: TollyH Date: Tue, 4 Jun 2024 21:39:20 +0100 Subject: [PATCH] Only change console encoding if compiling CLI --- Processor.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Processor.cs b/Processor.cs index 548783b..49e12dd 100644 --- a/Processor.cs +++ b/Processor.cs @@ -99,8 +99,10 @@ public Processor(ulong memorySize, ulong entryPoint = 0, _mappedMemoryRanges.Add(new Range((long)memorySize, (long)memorySize)); #endif ProgramLoaded = false; +#if CLI // AssEmbly stores strings as UTF-8, so console must be set to UTF-8 to render bytes correctly Console.OutputEncoding = Encoding.UTF8; +#endif #if V1_CALL_STACK_COMPAT UseV1CallStack = useV1CallStack; stackCallSize = useV1CallStack ? 24UL : 16UL;