summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authoraliaspider2014-12-09 01:59:02 +0100
committeraliaspider2014-12-09 01:59:02 +0100
commit50df6df600745247af98d0f6ed52f80043c9922b (patch)
tree216798810143c77fe838b1dfbaced3aba0e986fe /main.c
parent38158f67e2d8a9c8c43b3b3598a56f3d86a727f8 (diff)
downloadpicogpsp-50df6df600745247af98d0f6ed52f80043c9922b.tar.gz
picogpsp-50df6df600745247af98d0f6ed52f80043c9922b.tar.bz2
picogpsp-50df6df600745247af98d0f6ed52f80043c9922b.zip
fix undefined referances.
Diffstat (limited to 'main.c')
-rw-r--r--main.c10
1 files changed, 9 insertions, 1 deletions
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++;