DBG: fixed a bug with the '=' sign (non-existent variables were seen as invalid)

This commit is contained in:
Mr. eXoDia 2014-05-09 21:51:56 +02:00
parent 70a91a06fc
commit b4c264ad8b
2 changed files with 3 additions and 1 deletions

View File

@ -242,7 +242,7 @@ static void specialformat(char* string)
}
else
{
if(isvalidexpression(string) && isvalidexpression(found))
if(isvalidexpression(found))
sprintf(str, "mov %s,%s", string, found);
else
strcpy(str, backup);

View File

@ -175,6 +175,7 @@ bool plugincmdregister(int pluginHandle, const char* command, CBPLUGINCOMMAND cb
if(!cmdnew(dbggetcommandlist(), command, (CBCOMMAND)cbCommand, debugonly))
return false;
pluginCommandList.push_back(plugCmd);
dprintf("[PLUGIN] command \"%s\" registered!\n", command);
return true;
}
@ -190,6 +191,7 @@ bool plugincmdunregister(int pluginHandle, const char* command)
if(!cmddel(dbggetcommandlist(), command))
return false;
pluginCommandList.erase(pluginCommandList.begin()+i);
dprintf("[PLUGIN] command \"%s\" unregistered!\n", command);
return true;
}
}