diff options
Diffstat (limited to 'backends/platform')
-rw-r--r-- | backends/platform/ds/arm9/source/portdefs.h | 2 | ||||
-rw-r--r-- | backends/platform/ds/arm9/source/scummconsole.c | 4 | ||||
-rw-r--r-- | backends/platform/ds/arm9/source/scummconsole.h | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/backends/platform/ds/arm9/source/portdefs.h b/backends/platform/ds/arm9/source/portdefs.h index 16f3d8cc9b..2e5f2097d8 100644 --- a/backends/platform/ds/arm9/source/portdefs.h +++ b/backends/platform/ds/arm9/source/portdefs.h @@ -57,7 +57,7 @@ typedef signed int s32; #ifdef __cplusplus extern "C" { #endif -void consolePrintf(const char* s, ...); +int consolePrintf(const char* s, ...); #ifdef __cplusplus } #endif diff --git a/backends/platform/ds/arm9/source/scummconsole.c b/backends/platform/ds/arm9/source/scummconsole.c index 2145b47353..f4ae0bca8b 100644 --- a/backends/platform/ds/arm9/source/scummconsole.c +++ b/backends/platform/ds/arm9/source/scummconsole.c @@ -440,7 +440,7 @@ void printF(int w, float f) */ } -void consolePrintf(const char* s, ...) +int consolePrintf(const char* s, ...) { int w = 1, z = 0; @@ -518,6 +518,8 @@ void consolePrintf(const char* s, ...) s++; } va_end(argp); + + return 0; } void consolePutString(int x, int y, char* s) diff --git a/backends/platform/ds/arm9/source/scummconsole.h b/backends/platform/ds/arm9/source/scummconsole.h index 01fdfc2f04..543ffc9409 100644 --- a/backends/platform/ds/arm9/source/scummconsole.h +++ b/backends/platform/ds/arm9/source/scummconsole.h @@ -45,7 +45,7 @@ void poo(u8 p); void consoleInit(u16* font, u16* charBase, u16 numCharacters, u8 charStart, u16* map, u8 pal, u8 bitDepth); void consoleInitDefault(u16* map, u16* charBase, u8 bitDepth); -void consolePrintf(const char* s, ...); +int consolePrintf(const char* s, ...); void consolePrintSet(int x, int y); |