diff --git a/GUI/misc.cpp b/GUI/misc.cpp index 12f58ac..da1b3db 100644 --- a/GUI/misc.cpp +++ b/GUI/misc.cpp @@ -58,6 +58,7 @@ namespace return {}; } RCode.remove(0, 1); + if (RCode.at(0).unicode() == L'0') RCode.remove(0, 1); QRegExp stringGap("^\\*(\\-?[\\dA-F]+)"); if (stringGap.indexIn(RCode) != -1) { diff --git a/GUI/misc.h b/GUI/misc.h index 5c540bb..83a025b 100644 --- a/GUI/misc.h +++ b/GUI/misc.h @@ -16,7 +16,7 @@ static QString CodeInfoDump = /H{A|B|W|S|Q|V}[N]data_offset[*deref_offset1][:split_offset[*deref_offset2]]@addr[:module]\r\n\ OR\r\n\ Enter read code\r\n\ -/R{S|Q|V}string_gap@addr\r\n\ +/R{S|Q|V}{0|*deref_offset}@addr\r\n\ All numbers in hexadecimal\r\n\ Use 0 for string_gap if string is in same location every time\r\n\ A/B: Shift-JIS char little/big endian\r\n\