various fixes
This commit is contained in:
parent
74cfde363f
commit
e59e6d35d6
|
@ -129,7 +129,7 @@ static DECLFW(WriteEXP)
|
||||||
{
|
{
|
||||||
uint32 addr = A;
|
uint32 addr = A;
|
||||||
uint8 value = V;
|
uint8 value = V;
|
||||||
if (addr >= 05000)
|
if (addr >= 0x5000)
|
||||||
reg = value & 0x81;
|
reg = value & 0x81;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -335,7 +335,7 @@ static void makeDphaseARTable(void) {
|
||||||
dphaseARTable[AR][Rks] = 0; /*EG_DP_WIDTH;*/
|
dphaseARTable[AR][Rks] = 0; /*EG_DP_WIDTH;*/
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
dphaseARTable[AR][Rks] = rate_adjust((3 * (RL + 4) << (RM + 1)));
|
dphaseARTable[AR][Rks] = rate_adjust(3 * (RL + 4) << (RM + 1));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -190,7 +190,7 @@ int FindAsText;
|
||||||
int FindDirectionUp;
|
int FindDirectionUp;
|
||||||
char FindTextBox[60];
|
char FindTextBox[60];
|
||||||
|
|
||||||
uint32 temp_offset;
|
int temp_offset;
|
||||||
|
|
||||||
extern iNES_HEADER head;
|
extern iNES_HEADER head;
|
||||||
|
|
||||||
|
@ -918,7 +918,7 @@ void InputData(char *input){
|
||||||
char inputc;
|
char inputc;
|
||||||
//char str[100];
|
//char str[100];
|
||||||
//mbg merge 7/18/06 added cast:
|
//mbg merge 7/18/06 added cast:
|
||||||
data = (uint8*)malloc(strlen(input)); //it can't be larger than the input string, so use that as the size
|
data = (uint8 *)malloc(strlen(input) + 1); //it can't be larger than the input string, so use that as the size
|
||||||
|
|
||||||
for(i = 0;input[i] != 0;i++){
|
for(i = 0;input[i] != 0;i++){
|
||||||
if(!EditingText){
|
if(!EditingText){
|
||||||
|
|
|
@ -248,7 +248,7 @@ size_t EMUFILE::read8le(u8* val)
|
||||||
|
|
||||||
u8 EMUFILE::read8le()
|
u8 EMUFILE::read8le()
|
||||||
{
|
{
|
||||||
u8 temp;
|
u8 temp = 0;
|
||||||
fread(&temp,1);
|
fread(&temp,1);
|
||||||
return temp;
|
return temp;
|
||||||
}
|
}
|
||||||
|
|
|
@ -170,7 +170,7 @@ void FCEU_PutImage(void)
|
||||||
{
|
{
|
||||||
char nameo[512];
|
char nameo[512];
|
||||||
strcpy(nameo,FCEUI_GetSnapshotAsName().c_str());
|
strcpy(nameo,FCEUI_GetSnapshotAsName().c_str());
|
||||||
if (nameo)
|
if (nameo[0])
|
||||||
{
|
{
|
||||||
SaveSnapshot(nameo);
|
SaveSnapshot(nameo);
|
||||||
FCEU_DispMessage("Snapshot Saved.",0);
|
FCEU_DispMessage("Snapshot Saved.",0);
|
||||||
|
|
Loading…
Reference in New Issue