debugger improvments

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@25 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
fires.gc 2008-07-17 21:46:34 +00:00
parent 91ccda69ef
commit 343d1ece11
12 changed files with 186 additions and 41 deletions

View file

@ -240,6 +240,13 @@ bool TryParseInt(const char* str, int* outVal)
{
const char* s = str;
int value = 0;
bool negativ = false;
if (*s == '-')
{
negativ = true;
s++;
}
while (*s)
{
@ -252,6 +259,8 @@ bool TryParseInt(const char* str, int* outVal)
value = value * 10 + (c - '0');
}
if (negativ)
value = -value;
*outVal = value;
return(true);