#include "src/fceu.h"
#include "src/driver.h"
#include "src/state.h"
//全局变量
int dendy;
int loadDebugDataFailed = 0;
int genie = 0;
int pal_emulation = 0;
int soundoptions = 0;
bool turbo = false;
int32 fps_scale = 256;
int32 fps_scale_frameadvance = 0;
int32 fps_scale_unpaused = 256;
void* hMemView = 0;
void* hCheat = 0;
int KillFCEUXonFrame = 0;
void *pwindow = 0;
void *hAppWnd = 0;
int currFrameCounter;
char curMovieFilename[512];
int movieMode;
bool mustRewindNow = false;
bool swapDuty = 0;
int frame_display, input_display;
uint32 cur_input_display = 0;
bool movie_readonly = true;;
bool autoMovieBackup = false; //Toggle that determines if movies should be backed up automatically before altering them
bool freshMovie = false; //True when a movie loads, false when movie is altered. Used to determine if a movie has been altered since opening
uint32 JSAutoHeld = 0;
int fullscreen = 0;
///
FILE *FCEUD_UTF8fopen(const char *n, const char *m){
return fopen(n,m);
}
void FCEUD_PrintError(char const*){
}
const char *FCEUD_GetCompilerString(){
return "g++";
}
/**
* Unimplemented.
*/
void FCEUD_DebugBreakpoint(int ) {
return;
}
/**
* Unimplemented.
*/
void FCEUD_TraceInstruction(unsigned char*,int) {
return;
}
/**
* Opens a file to be read a byte at a time.
*/
EMUFILE_FILE* FCEUD_UTF8_fstream(const char *fn, const char *m)
{
std::ios_base::openmode mode = std::ios_base::binary;
if(!strcmp(m,"r") || !strcmp(m,"rb"))
mode |= std::ios_base::in;
else if(!strcmp(m,"w") || !strcmp(m,"wb"))
mode |= std::ios_base::out | std::ios_base::trunc;</