diff options
| author | EllipticEllipsis <73679967+EllipticEllipsis@users.noreply.github.com> | 2021-10-11 19:28:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-11 15:28:16 -0300 |
| commit | 565b1f7579876e08f2898fe07549cb348a222e93 (patch) | |
| tree | 7de0a7fd533c48b057a715829ed4bc78c4ddd5f3 /src/boot_O2/gfxprint.c | |
| parent | d061f1c66653e0b35c3d2e8bd15ffdf5bf783877 (diff) | |
`flg_set.c` OK and documented (#335)
* Draw OK, Update very much not
* Flag table imported
* Update OK
* Actually OK this time
* Begin documenting
* Rename some stuff
* Rename functions
* spec
* Review
* Format
* Anghelo's review
* Fix lifemeter bss
* Format
* Missed one
* idle.c bss
Diffstat (limited to 'src/boot_O2/gfxprint.c')
| -rw-r--r-- | src/boot_O2/gfxprint.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/boot_O2/gfxprint.c b/src/boot_O2/gfxprint.c index f65d88200..a6f84a7a4 100644 --- a/src/boot_O2/gfxprint.c +++ b/src/boot_O2/gfxprint.c @@ -171,15 +171,18 @@ Gfx* GfxPrint_Close(GfxPrint* this) { return ret; } -void GfxPrint_VPrintf(GfxPrint* this, const char* fmt, va_list args) { - PrintUtils_VPrintf((PrintCallback*)&this->callback, fmt, args); +s32 GfxPrint_VPrintf(GfxPrint* this, const char* fmt, va_list args) { + return PrintUtils_VPrintf((PrintCallback*)&this->callback, fmt, args); } -void GfxPrint_Printf(GfxPrint* this, const char* fmt, ...) { +s32 GfxPrint_Printf(GfxPrint* this, const char* fmt, ...) { + s32 ret; va_list args; va_start(args, fmt); - GfxPrint_VPrintf(this, fmt, args); + ret = GfxPrint_VPrintf(this, fmt, args); va_end(args); + + return ret; } |
