Skip to content

Commit

Permalink
Make libretro cross compile-able
Browse files Browse the repository at this point in the history
  • Loading branch information
ShinySaana committed Mar 4, 2021
1 parent 724063f commit aa2f601
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
5 changes: 5 additions & 0 deletions Core/debugger.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#ifdef _WIN32
#include <Windows/stdio.h>
#else
#include <stdio.h>
#endif

#include <string.h>
#include <stdlib.h>
#include "gb.h"
Expand Down
13 changes: 9 additions & 4 deletions Core/gb.c
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
#ifdef _WIN32
#include <Windows/stdio.h>
#include <Windows/unistd.h>
#else
#include <stdio.h>
#include <unistd.h>
#include <sys/select.h>
#endif

#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <errno.h>
#include <stdarg.h>
#ifndef _WIN32
#include <sys/select.h>
#include <unistd.h>
#endif
#include "random.h"
#include "gb.h"

Expand Down
13 changes: 13 additions & 0 deletions libretro/libretro.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#ifdef _WIN32
#include <Windows/stdio.h>
#else
#include <stdio.h>
#endif

#include <string.h>
#include <stdbool.h>
#include <unistd.h>
Expand Down Expand Up @@ -1422,6 +1427,14 @@ void emuka_set_audio_frequency(unsigned frequency) {
}

bool emuka_read_remory() {








return GB_debugger_is_stopped(&gameboy[0]);
}

Expand Down

0 comments on commit aa2f601

Please sign in to comment.