From 5910c2f1989ac7fc312c0e1cb017ee7359576d2d Mon Sep 17 00:00:00 2001 From: yoshihiropsp Date: Fri, 26 Mar 2010 15:37:25 +0000 Subject: [PATCH] Added XBOX include --- desmume/src/mc.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/desmume/src/mc.cpp b/desmume/src/mc.cpp index 1121047fd..615ba839f 100644 --- a/desmume/src/mc.cpp +++ b/desmume/src/mc.cpp @@ -30,8 +30,12 @@ //temporary hack until we have better error reporting facilities #ifdef _MSC_VER +#ifdef _XBOX +#include +#else #include #endif +#endif #define FW_CMD_READ 0x3 #define FW_CMD_WRITEDISABLE 0x4 @@ -350,9 +354,11 @@ void BackupDevice::reset_command() case 0: case 1: printf("Catastrophic error while autodetecting save type.\nIt will need to be specified manually\n"); - #ifdef _MSC_VER + #ifdef _MSC_VER + #ifndef _XBOX MessageBox(0,"Catastrophic Error Code: Camel;\nyour save type has not been autodetected correctly;\nplease report to developers",0,0); #endif + #endif addr_size = 1; //choose 1 just to keep the busted savefile from growing too big break; case 2: