Support SysEng's quoted message commands

This commit is contained in:
kichikuou
2021-03-18 09:38:10 +09:00
parent 20e06235d2
commit 9a8ebbdcb0
5 changed files with 88 additions and 39 deletions
+17 -6
View File
@@ -708,15 +708,26 @@ void NACT_Sys3::cmd_l()
void NACT_Sys3::cmd_m()
{
char string[22];
int d, p = 0;
int p = 0;
while((d = getd()) != ':') {
if(is_2byte_message(d)) {
string[p++] = d;
string[p++] = getd();
} else {
int d = getd();
if (d == '\'' || d == '"') { // SysEng
int terminator = d;
while ((d = getd()) != terminator) {
if (d == '\\')
d = getd();
string[p++] = d;
}
} else {
while(d != ':') {
if(is_2byte_message(d)) {
string[p++] = d;
string[p++] = getd();
} else {
string[p++] = d;
}
d = getd();
}
}
string[p] = '\0';