all repos — mgba @ 045417b5096f12301657f5c5d24ccd5769b36551

mGBA Game Boy Advance Emulator

Correct debug lib
Dimitri (_) dimitri.tavan@etu.univ-poitiers.fr
Wed, 04 Apr 2018 18:30:02 +0200
commit

045417b5096f12301657f5c5d24ccd5769b36551

parent

21d808d0e2235f1f183d4aa38e2494bf69f9125f

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M opt/libgba/mgba.copt/libgba/mgba.c

@@ -32,7 +32,7 @@ #define REG_DEBUG_ENABLE (vu16*) 0x4FFF780

#define REG_DEBUG_FLAGS (vu16*) 0x4FFF700 #define REG_DEBUG_STRING (char*) 0x4FFF600 -ssize_t mgba_stdout_write(struct _reent* r __attribute__((unused)), int fd __attribute__((unused)), const char* ptr, size_t len) { +ssize_t mgba_stdout_write(struct _reent* r __attribute__((unused)), void* fd __attribute__((unused)), const char* ptr, size_t len) { if (len > 0x100) { len = 0x100; }

@@ -41,7 +41,7 @@ *REG_DEBUG_FLAGS = MGBA_LOG_INFO | 0x100;

return len; } -ssize_t mgba_stderr_write(struct _reent* r __attribute__((unused)), int fd __attribute__((unused)), const char* ptr, size_t len) { +ssize_t mgba_stderr_write(struct _reent* r __attribute__((unused)), void* fd __attribute__((unused)), const char* ptr, size_t len) { if (len > 0x100) { len = 0x100; }