1 #ifndef _MEDNAFEN_H 2 #define _MEDNAFEN_H 3 4 #include "mednafen-types.h" 5 #include <stdio.h> 6 #include <stdlib.h> 7 #include <string.h> 8 9 #define _(String) (String) 10 11 #include "math_ops.h" 12 #include "git.h" 13 14 #ifdef _WIN32 15 #define strcasecmp _stricmp 16 #endif 17 18 #define GET_FDATA(fp) (fp.f_data) 19 #define GET_FSIZE(fp) (fp.f_size) 20 #define GET_FEXTS(fp) (fp.f_ext) 21 #define GET_FDATA_PTR(fp) (fp->data) 22 #define GET_FSIZE_PTR(fp) (fp->size) 23 #define GET_FEXTS_PTR(fp) (fp->ext) 24 #define gzopen(a, b) fopen(a, b) 25 #define gzread(a, b, c) fread(b, c, 1, a) 26 #define gzclose(a) fclose(a) 27 #define gzgetc(a) fgetc(a) 28 #define gzseek(a,b,c) fseek(a,b,c) 29 30 extern MDFNGI *MDFNGameInfo; 31 32 #include "settings.h" 33 34 void MDFN_PrintError(const char *format, ...); 35 void MDFN_printf(const char *format, ...); 36 void MDFN_DispMessage(const char *format, ...); 37 38 void MDFN_DebugPrintReal(const char *file, const int line, const char *format, ...); 39 40 void MDFN_LoadGameCheats(void *override); 41 void MDFN_FlushGameCheats(int nosave); 42 43 void MDFN_MidSync(EmulateSpecStruct *espec); 44 void MDFN_MidLineUpdate(EmulateSpecStruct *espec, int y); 45 46 #include "mednafen-driver.h" 47 48 #include "mednafen-endian.h" 49 50 #endif 51