fix sdl port compatibility (MessageBox() win only)
This commit is contained in:
parent
954fc5d5dd
commit
fc74c4fd16
|
@ -1250,7 +1250,11 @@ uint8 FCEU_ReadRomByte(uint32 i) {
|
||||||
|
|
||||||
void FCEU_WriteRomByte(uint32 i, uint8 value) {
|
void FCEU_WriteRomByte(uint32 i, uint8 value) {
|
||||||
if (i < 16)
|
if (i < 16)
|
||||||
|
#ifdef WIN32
|
||||||
MessageBox(hMemView,"Sorry", "You can't edit the ROM header.", MB_OK);
|
MessageBox(hMemView,"Sorry", "You can't edit the ROM header.", MB_OK);
|
||||||
|
#else
|
||||||
|
printf("Sorry, you can't edit the ROM header.\n");
|
||||||
|
#endif
|
||||||
if (i < 16 + PRGsize[0])
|
if (i < 16 + PRGsize[0])
|
||||||
PRGptr[0][i - 16] = value;
|
PRGptr[0][i - 16] = value;
|
||||||
if (i < 16 + PRGsize[0] + CHRsize[0])
|
if (i < 16 + PRGsize[0] + CHRsize[0])
|
||||||
|
|
Loading…
Reference in New Issue