#include <stdlib.h>
#include <stdio.h>
+#ifdef GP2X
+#include <unistd.h> // for sync()
+#endif
+
#include "types.h"
#include "fce.h"
#include "ppu.h"
+#include "ppu098.h"
#include "cart.h"
#include "memory.h"
#include "svga.h"
#include "file.h"
-#define FCEUPPU_LineUpdate(...)
-
/*
This file contains all code for coordinating the mapping in of the
address space external to the NES.
fwrite(LocalHWInfo->SaveGame[x],1,
LocalHWInfo->SaveGameLen[x],sp);
}
+ fclose(sp);
+#ifdef GP2X
+ sync();
+#endif
}
free(soot);
}
for(x=0;x<4;x++)
if(LocalHWInfo->SaveGame[x])
fread(LocalHWInfo->SaveGame[x],1,LocalHWInfo->SaveGameLen[x],sp);
+ fclose(sp);
}
free(soot);
}