diff options
author | aliaspider | 2014-10-29 10:11:16 +0100 |
---|---|---|
committer | aliaspider | 2014-10-29 10:11:16 +0100 |
commit | 4fb67d24cdde1e085d09a699ed2f5d68c306f534 (patch) | |
tree | 92fbe54e835ca1c799f15b250241929681a26a99 /libretro.c | |
parent | 9c8d36087b5b35c35c7ff9276a15d400ce45f519 (diff) | |
download | snesemu-4fb67d24cdde1e085d09a699ed2f5d68c306f534.tar.gz snesemu-4fb67d24cdde1e085d09a699ed2f5d68c306f534.tar.bz2 snesemu-4fb67d24cdde1e085d09a699ed2f5d68c306f534.zip |
get rid of all remaining C++ code.
Diffstat (limited to 'libretro.c')
-rw-r--r-- | libretro.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -88,7 +88,7 @@ unsigned retro_api_version() { return RETRO_API_VERSION; } -void S9xProcessSound (unsigned int); +void S9xProcessSound (unsigned int samples); char *rom_filename = NULL; char *SDD1_pack = NULL; @@ -105,7 +105,7 @@ static u8 Buf[MAX_BUFFER_SIZE]; #define FIXED_POINT_SHIFT 16 #define FIXED_POINT_REMAINDER 0xffff -void S9xMessage (int /*type*/, int /*number*/, const char *message) +void S9xMessage (int type, int number, const char *message) { #if 1 #define MAX_MESSAGE_LEN (36 * 3) @@ -226,7 +226,7 @@ void S9xDeinitUpdate (int width, int height) #endif -void _makepath (char *path, const char *, const char *dir, +void _makepath (char *path, const char *drive, const char *dir, const char *fname, const char *ext) { if (dir && *dir) @@ -419,7 +419,7 @@ void init_sfc_setting(void) void S9xAutoSaveSRAM () { - Memory.SaveSRAM (S9xGetFilename (".srm")); + SaveSRAM (S9xGetFilename (".srm")); } int game_load_state(char* file) @@ -456,13 +456,13 @@ int load_gamepak(const char* file) { CPU.Flags = 0; // mdelay(50); // Delete this delay - if (!Memory.LoadROM (file)) + if (!LoadROM (file)) return -1; S9xReset (); Settings.FrameTime = (Settings.PAL ? Settings.FrameTimePAL : Settings.FrameTimeNTSC); - Memory.LoadSRAM (S9xGetFilename (".srm")); + LoadSRAM (S9xGetFilename (".srm")); S9xLoadCheatFile (S9xGetFilename (".chb")); // cheat binary file, as opposed to text return 0; @@ -486,7 +486,7 @@ void retro_init (void) init_sfc_setting(); - if (!Memory.Init () || !S9xInitAPU()) + if (!Init () || !S9xInitAPU()) OutOfMemory (); S9xInitDisplay (); @@ -654,7 +654,7 @@ static unsigned int LastSoundEmissionTime = 0; */ static unsigned int SoundEmissionTimeError = 0; -void S9xProcessSound (unsigned int) +void S9xProcessSound (unsigned int samples) { } @@ -839,7 +839,7 @@ void retro_cheat_set(unsigned index, bool enabled, const char *code) bool retro_load_game(const struct retro_game_info *game) { - Memory.LoadROM(game->path); + LoadROM(game->path); return true; } |