fix sdl port compatibility (MessageBox() win only)

This commit is contained in:
punkrockguy318 2015-06-23 23:47:27 +00:00
parent 954fc5d5dd
commit fc74c4fd16
1 changed files with 4 additions and 0 deletions

View File

@ -1250,7 +1250,11 @@ uint8 FCEU_ReadRomByte(uint32 i) {
void FCEU_WriteRomByte(uint32 i, uint8 value) {
if (i < 16)
#ifdef WIN32
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])
PRGptr[0][i - 16] = value;
if (i < 16 + PRGsize[0] + CHRsize[0])