Convert race-memory.cpp to C

This commit is contained in:
twinaphex 2020-10-04 00:05:13 +02:00
parent d0bb666bd7
commit d8b2fcba20
4 changed files with 12 additions and 5 deletions

9
main.h
View File

@ -9,14 +9,15 @@
#include <ctype.h>
#include <math.h>
struct SYSTEMINFO {
typedef struct SYSTEMINFO
{
int hSize;
int vSize;
int Ticks;
int InputKeys[12];
};
} SYSTEMINFO;
struct EMUINFO
typedef struct EMUINFO
{
char RomFileName[_MAX_PATH];
@ -24,7 +25,7 @@ struct EMUINFO
int romSize; // what is the size of the currently loaded file
int samples;
SYSTEMINFO *drv;
};
} EMUINFO;
#define KEY_UP 0
#define KEY_DOWN 1

View File

@ -29,6 +29,9 @@
#endif
#endif
#ifdef __cplusplus
extern "C" {
#endif
extern unsigned char mainram[]; /* All RAM areas */
extern unsigned char mainrom[]; /* ROM image area */
@ -452,4 +455,8 @@ static inline void tlcsMemWriteB(unsigned int addr, unsigned char data)
flashChipWrite(addr, data);
}
#ifdef __cplusplus
}
#endif
#endif /* _MEMORYH_ */

View File

@ -43,7 +43,6 @@ void gbSoundUpdate(void);
void gbSoundWrite(int reg, unsigned char data);
/* Neogeo pocket sound functions */
void sound_update(void);
void ngpSoundStart(void);
void ngpSoundExecute(void);
void ngpSoundOff(void);