mirror of
https://github.com/libretro/RetroArch
synced 2025-03-30 16:20:27 +00:00
Add psnes_get_region which was missing.
This commit is contained in:
parent
aad1d8798d
commit
9e09b55e89
@ -54,6 +54,8 @@ unsigned (*psnes_library_revision_major)(void);
|
||||
bool (*psnes_load_cartridge_normal)(const char*, const uint8_t*, unsigned);
|
||||
void (*psnes_set_controller_port_device)(bool, unsigned);
|
||||
|
||||
bool (*psnes_get_region)(void);
|
||||
|
||||
unsigned (*psnes_serialize_size)(void);
|
||||
bool (*psnes_serialize)(uint8_t*, unsigned);
|
||||
bool (*psnes_unserialize)(const uint8_t*, unsigned);
|
||||
@ -85,6 +87,7 @@ static void load_dynamic(void)
|
||||
SYM(snes_library_revision_minor);
|
||||
SYM(snes_library_revision_major);
|
||||
SYM(snes_run);
|
||||
SYM(snes_get_region);
|
||||
SYM(snes_load_cartridge_normal);
|
||||
SYM(snes_set_controller_port_device);
|
||||
SYM(snes_serialize_size);
|
||||
@ -113,6 +116,7 @@ static void set_statics(void)
|
||||
SSYM(snes_library_revision_minor);
|
||||
SSYM(snes_library_revision_major);
|
||||
SSYM(snes_run);
|
||||
SSYM(snes_get_region);
|
||||
SSYM(snes_load_cartridge_normal);
|
||||
SSYM(snes_set_controller_port_device);
|
||||
SSYM(snes_serialize_size);
|
||||
|
@ -37,6 +37,8 @@ extern unsigned (*psnes_library_revision_major)(void);
|
||||
extern bool (*psnes_load_cartridge_normal)(const char*, const uint8_t*, unsigned);
|
||||
extern void (*psnes_set_controller_port_device)(bool, unsigned);
|
||||
|
||||
extern bool (*psnes_get_region)(void);
|
||||
|
||||
extern unsigned (*psnes_serialize_size)(void);
|
||||
extern bool (*psnes_serialize)(uint8_t*, unsigned);
|
||||
extern bool (*psnes_unserialize)(const uint8_t*, unsigned);
|
||||
|
2
ssnes.c
2
ssnes.c
@ -514,7 +514,7 @@ int main(int argc, char *argv[])
|
||||
.channels = 2,
|
||||
.samplerate = 32040,
|
||||
.filename = g_extern.record_path,
|
||||
.fps = snes_get_region() == SNES_REGION_NTSC ? ntsc_fps : pal_fps,
|
||||
.fps = psnes_get_region() == SNES_REGION_NTSC ? ntsc_fps : pal_fps,
|
||||
.aspect_ratio = 4.0/3
|
||||
};
|
||||
SSNES_LOG("Recording with FFmpeg to %s.\n", g_extern.record_path);
|
||||
|
Loading…
x
Reference in New Issue
Block a user