From 4f1bc5a9b29c935559fc85853ab7d5872e66c2fd Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Thu, 30 Aug 2018 16:48:14 -0400 Subject: [PATCH] legacy r code support --- GUI/misc.cpp | 1 + GUI/misc.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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\