2020-06-24 00:40:43 +00:00
|
|
|
// fceuWrapper.h
|
|
|
|
//
|
2020-06-28 00:07:24 +00:00
|
|
|
#include "Qt/config.h"
|
2020-06-24 00:40:43 +00:00
|
|
|
|
|
|
|
//*****************************************************************
|
|
|
|
// Define Global Variables to be shared with FCEU Core
|
|
|
|
//*****************************************************************
|
|
|
|
extern int dendy;
|
|
|
|
extern int eoptions;
|
|
|
|
extern int isLoaded;
|
|
|
|
extern int pal_emulation;
|
|
|
|
extern int gametype;
|
|
|
|
extern int closeFinishedMovie;
|
|
|
|
extern bool turbo;
|
|
|
|
extern bool swapDuty;
|
2020-11-05 10:24:21 +00:00
|
|
|
extern bool pauseAfterPlayback;
|
|
|
|
extern bool suggestReadOnlyReplay;
|
2020-06-24 00:40:43 +00:00
|
|
|
extern unsigned int gui_draw_area_width;
|
|
|
|
extern unsigned int gui_draw_area_height;
|
|
|
|
|
|
|
|
// global configuration object
|
|
|
|
extern Config *g_config;
|
|
|
|
|
2020-10-21 23:20:48 +00:00
|
|
|
int LoadGame(const char *path, bool silent = false);
|
2020-06-24 00:40:43 +00:00
|
|
|
int CloseGame(void);
|
2020-10-22 00:45:50 +00:00
|
|
|
int reloadLastGame(void);
|
2020-06-24 02:51:10 +00:00
|
|
|
|
|
|
|
int fceuWrapperInit( int argc, char *argv[] );
|
|
|
|
int fceuWrapperClose( void );
|
|
|
|
int fceuWrapperUpdate( void );
|
2020-07-05 20:11:53 +00:00
|
|
|
void fceuWrapperLock(void);
|
2020-07-18 01:50:23 +00:00
|
|
|
bool fceuWrapperTryLock(int timeout = 1000);
|
2020-07-05 20:11:53 +00:00
|
|
|
bool fceuWrapperIsLocked(void);
|
|
|
|
void fceuWrapperUnLock(void);
|
2020-07-11 15:58:11 +00:00
|
|
|
int fceuWrapperSoftReset(void);
|
|
|
|
int fceuWrapperHardReset(void);
|
|
|
|
int fceuWrapperTogglePause(void);
|
2020-07-12 00:48:48 +00:00
|
|
|
bool fceuWrapperGameLoaded(void);
|
2020-06-24 02:51:10 +00:00
|
|
|
|