From 50df6df600745247af98d0f6ed52f80043c9922b Mon Sep 17 00:00:00 2001 From: aliaspider Date: Tue, 9 Dec 2014 01:59:02 +0100 Subject: fix undefined referances. --- main.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index b6729ed..49d2ae4 100644 --- a/main.c +++ b/main.c @@ -214,6 +214,7 @@ void init_main() flush_translation_cache_bios(); } +#ifndef __LIBRETRO__ int main(int argc, char *argv[]) { char bios_filename[512]; @@ -384,6 +385,7 @@ int main(int argc, char *argv[]) #endif return 0; } +#endif void print_memory_stats(u32 *counter, u32 *region_stats, char *stats_str) { @@ -625,6 +627,12 @@ u32 update_gba() flush_ram_count = 0; #endif +#ifdef __LIBRETRO__ + switch_to_main_thread(); + + update_gbc_sound(cpu_ticks); + gbc_sound_update = 0; +#else if(update_input()) continue; @@ -645,7 +653,7 @@ u32 update_gba() if(update_backup_flag) update_backup(); - +#endif process_cheats(); event_cycles++; -- cgit v1.2.3