| 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->f_data) |
| 22 | #define GET_FSIZE_PTR(fp) (fp->f_size) |
| 23 | #define GET_FEXTS_PTR(fp) (fp->f_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 | #ifndef gettext_noop |
| 31 | #define gettext_noop(a) (a) |
| 32 | #endif |
| 33 | |
| 34 | extern MDFNGI *MDFNGameInfo; |
| 35 | |
| 36 | #include "settings.h" |
| 37 | |
| 38 | void MDFN_PrintError(const char *format, ...); |
| 39 | void MDFN_printf(const char *format, ...); |
| 40 | void MDFN_DispMessage(const char *format, ...); |
| 41 | |
| 42 | void MDFN_DebugPrintReal(const char *file, const int line, const char *format, ...); |
| 43 | |
| 44 | void MDFN_LoadGameCheats(void *override); |
| 45 | void MDFN_FlushGameCheats(int nosave); |
| 46 | |
| 47 | void MDFN_MidSync(EmulateSpecStruct *espec); |
| 48 | void MDFN_MidLineUpdate(EmulateSpecStruct *espec, int y); |
| 49 | |
| 50 | #include "mednafen-driver.h" |
| 51 | |
| 52 | #include "mednafen-endian.h" |
| 53 | |
| 54 | #endif |