From fc74c4fd166872a254a312682d60b4ae5f26c132 Mon Sep 17 00:00:00 2001 From: punkrockguy318 Date: Tue, 23 Jun 2015 23:47:27 +0000 Subject: [PATCH] fix sdl port compatibility (MessageBox() win only) --- trunk/src/fceu.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/trunk/src/fceu.cpp b/trunk/src/fceu.cpp index 8aa27371..17ba346d 100644 --- a/trunk/src/fceu.cpp +++ b/trunk/src/fceu.cpp @@ -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])