1 #include <SDL/SDL.h> 2 3 // defines to override various #ifndef _WIN32 4 typedef struct tagRECT { 5 int left; 6 int top; 7 int right; 8 int bottom; 9 } RECT,*PRECT,*LPRECT; 10 typedef const RECT *LPCRECT; 11 12 typedef unsigned long DWORD; 13 typedef unsigned char BYTE; 14 15 #ifndef MAX_PATH 16 #define MAX_PATH 511 17 #endif 18 19 #ifndef __cdecl 20 #define __cdecl 21 #endif 22 23 //main.cpp 24 int SetBurnHighCol(int nDepth); 25 extern int nAppVirtualFps; 26 extern bool bRunPause; 27 extern bool bAlwaysProcessKeyboardInput; 28 TCHAR* ANSIToTCHAR(const char* pszInString, TCHAR* pszOutString, int nOutSize); 29 char* TCHARToANSI(const TCHAR* pszInString, char* pszOutString, int nOutSize); 30 bool AppProcessKeyboardInput(); 31 32 //config.cpp 33 int ConfigAppLoad(); 34 int ConfigAppSave(); 35 36 // drv.cpp 37 extern int bDrvOkay; // 1 if the Driver has been initted okay, and it's okay to use the BurnDrv functions 38 extern char szAppRomPaths[DIRS_MAX][MAX_PATH]; 39 int DrvInit(int nDrvNum, bool bRestore); 40 int DrvInitCallback(); // Used when Burn library needs to load a game. DrvInit(nBurnSelect, false) 41 int DrvExit(); 42 int ProgressUpdateBurner(double dProgress, const TCHAR* pszText, bool bAbs); 43 int AppError(TCHAR* szText, int bWarning); 44 45 //run.cpp 46 extern int RunMessageLoop(); 47 extern int RunReset(); 48 49 // media.cpp 50 int MediaInit(); 51 int MediaExit(); 52 53 //inpdipsw.cpp 54 void InpDIPSWResetDIPs(); 55 56 //interface/inp_interface.cpp 57 int InputInit(); 58 int InputExit(); 59 int InputMake(bool bCopy); 60 61 //TODO: 62 #define szAppBurnVer 1 63 64 //stringset.cpp 65 class StringSet { 66 public: 67 TCHAR* szText; 68 int nLen; 69 // printf function to add text to the Bzip string 70 int __cdecl Add(TCHAR* szFormat, ...); 71 int Reset(); 72 StringSet(); 73 ~StringSet(); 74 }; 75 76 // support_paths.cpp 77 extern TCHAR szAppPreviewsPath[MAX_PATH]; 78 extern TCHAR szAppTitlesPath[MAX_PATH]; 79 extern TCHAR szAppSelectPath[MAX_PATH]; 80 extern TCHAR szAppVersusPath[MAX_PATH]; 81 extern TCHAR szAppHowtoPath[MAX_PATH]; 82 extern TCHAR szAppScoresPath[MAX_PATH]; 83 extern TCHAR szAppBossesPath[MAX_PATH]; 84 extern TCHAR szAppGameoverPath[MAX_PATH]; 85 extern TCHAR szAppFlyersPath[MAX_PATH]; 86 extern TCHAR szAppMarqueesPath[MAX_PATH]; 87 extern TCHAR szAppControlsPath[MAX_PATH]; 88 extern TCHAR szAppCabinetsPath[MAX_PATH]; 89 extern TCHAR szAppPCBsPath[MAX_PATH]; 90 extern TCHAR szAppCheatsPath[MAX_PATH]; 91 extern TCHAR szAppHistoryPath[MAX_PATH]; 92 extern TCHAR szAppListsPath[MAX_PATH]; 93 extern TCHAR szAppDatListsPath[MAX_PATH]; 94 extern TCHAR szAppIpsPath[MAX_PATH]; 95 extern TCHAR szAppIconsPath[MAX_PATH]; 96 extern TCHAR szAppArchivesPath[MAX_PATH]; 97