Win32 - Memwatch - ignore spaces at the beginnign of an address in the address boxes
This commit is contained in:
parent
43938a1999
commit
23277bc4df
|
@ -1,3 +1,4 @@
|
||||||
|
24-may-2010 - adelikat - Win32 - Memwatch - ignore spaces at the beginnign of an address in the address boxes
|
||||||
24-may-2010 - mart0258 - Disable auto-savestates during turbo
|
24-may-2010 - mart0258 - Disable auto-savestates during turbo
|
||||||
24-may-2010 - mart0258 - Prevent .zip files containing no recognized files from causing crash
|
24-may-2010 - mart0258 - Prevent .zip files containing no recognized files from causing crash
|
||||||
23-may-2010 - adelikat - Win32 - Replay dialog - fix bug that was causing it to always report savestate movies as soft-reset
|
23-may-2010 - adelikat - Win32 - Replay dialog - fix bug that was causing it to always report savestate movies as soft-reset
|
||||||
|
|
|
@ -234,28 +234,35 @@ static struct MWRec
|
||||||
GetDlgItemText(hwndMemWatch,ctl,TempArray,16);
|
GetDlgItemText(hwndMemWatch,ctl,TempArray,16);
|
||||||
TempArray[15]=0;
|
TempArray[15]=0;
|
||||||
|
|
||||||
|
int x = 0;
|
||||||
|
for (x = 0; x < 15; x++)
|
||||||
|
{
|
||||||
|
if (!(TempArray[x] == ' '))
|
||||||
|
break;
|
||||||
|
} //The point of this loop is to ignore spaces at the begginning of a address box
|
||||||
|
|
||||||
valid = hex = twobytes = false;
|
valid = hex = twobytes = false;
|
||||||
switch(TempArray[0])
|
switch(TempArray[x])
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
break;
|
break;
|
||||||
case '!':
|
case '!':
|
||||||
twobytes=true;
|
twobytes=true;
|
||||||
addr=FastStrToU16(TempArray+1,valid);
|
addr=FastStrToU16(TempArray+x+1,valid);
|
||||||
break;
|
break;
|
||||||
case 'x':
|
case 'x':
|
||||||
hex = true;
|
hex = true;
|
||||||
valid = true;
|
valid = true;
|
||||||
addr=FastStrToU16(TempArray+1,valid);
|
addr=FastStrToU16(TempArray+x+1,valid);
|
||||||
break;
|
break;
|
||||||
case 'X':
|
case 'X':
|
||||||
hex = twobytes = true;
|
hex = twobytes = true;
|
||||||
valid = true;
|
valid = true;
|
||||||
addr = FastStrToU16(TempArray+1,valid);
|
addr = FastStrToU16(TempArray+x+1,valid);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
valid = true;
|
valid = true;
|
||||||
addr=FastStrToU16(TempArray,valid);
|
addr=FastStrToU16(TempArray+x,valid);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1489,7 +1489,7 @@ void FCEUI_MoviePlayFromBeginning(void)
|
||||||
if (currMovieData.savestate.empty())
|
if (currMovieData.savestate.empty())
|
||||||
{
|
{
|
||||||
movie_readonly=true;
|
movie_readonly=true;
|
||||||
poweron(true); //Bad, this assumes a movie doesn't start from savestate
|
poweron(true);
|
||||||
currFrameCounter=0;
|
currFrameCounter=0;
|
||||||
movieMode = MOVIEMODE_PLAY;
|
movieMode = MOVIEMODE_PLAY;
|
||||||
FCEU_DispMessage("Movie is now Read-Only. Playing from beginning.",0);
|
FCEU_DispMessage("Movie is now Read-Only. Playing from beginning.",0);
|
||||||
|
|
Loading…
Reference in New Issue