mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-12 05:11:38 +00:00
debugger improvments
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@25 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
91ccda69ef
commit
343d1ece11
12 changed files with 186 additions and 41 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue