Skip to content

Commit

Permalink
Debugger: Fixed code comments not supporting non-ASCII text
Browse files Browse the repository at this point in the history
Entering CJK characters or accented characters in a comment resulted in ? characters in the disassembly, etc.
  • Loading branch information
SourMesen committed Dec 27, 2024
1 parent d6537ed commit 636e645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UI/Interop/DebugApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public static byte[] GetFrozenState(CpuType cpuType, UInt32 start, UInt32 end)
[DllImport(DllPath)] public static extern AddressInfo GetAbsoluteAddress(AddressInfo relAddress);
[DllImport(DllPath)] public static extern AddressInfo GetRelativeAddress(AddressInfo absAddress, CpuType cpuType);

[DllImport(DllPath)] public static extern void SetLabel(uint address, MemoryType memType, string label, string comment);
[DllImport(DllPath)] public static extern void SetLabel(uint address, MemoryType memType, [MarshalAs(UnmanagedType.LPUTF8Str)] string label, [MarshalAs(UnmanagedType.LPUTF8Str)] string comment);
[DllImport(DllPath)] public static extern void ClearLabels();

[DllImport(DllPath)] public static extern void SetBreakpoints([MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] InteropBreakpoint[] breakpoints, UInt32 length);
Expand Down

0 comments on commit 636e645

Please sign in to comment.