fceux/src/drivers/Qt/fceuWrapper.h

40 lines
1.1 KiB
C
Raw Normal View History

2020-06-24 00:40:43 +00:00
// fceuWrapper.h
//
#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;
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);
int reloadLastGame(void);
2020-06-24 02:51:10 +00:00
int fceuWrapperInit( int argc, char *argv[] );
int fceuWrapperClose( void );
int fceuWrapperUpdate( void );
void fceuWrapperLock(void);
bool fceuWrapperTryLock(int timeout = 1000);
bool fceuWrapperIsLocked(void);
void fceuWrapperUnLock(void);
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