Skip to content

Commit

Permalink
Only change console encoding if compiling CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
TollyH committed Jun 4, 2024
1 parent 9d20832 commit cf6707d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Processor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cf6707d

Please sign in to comment.