mirror of
https://github.com/libretro/RACE.git
synced 2025-02-17 07:20:27 +00:00
Convert race-memory.cpp to C
This commit is contained in:
parent
d0bb666bd7
commit
d8b2fcba20
9
main.h
9
main.h
@ -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
|
||||
|
@ -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_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user