2023-11-24 22:10:21 +00:00
|
|
|
#include "patches.h"
|
2024-03-03 07:36:14 +00:00
|
|
|
#include "misc_funcs.h"
|
2023-11-24 22:10:21 +00:00
|
|
|
|
|
|
|
void* proutPrintf(void* dst, const char* fmt, size_t size) {
|
|
|
|
recomp_puts(fmt, size);
|
|
|
|
return (void*)1;
|
|
|
|
}
|
|
|
|
|
2024-09-02 16:01:22 +00:00
|
|
|
RECOMP_EXPORT int recomp_printf(const char* fmt, ...) {
|
2023-11-24 22:10:21 +00:00
|
|
|
va_list args;
|
|
|
|
va_start(args, fmt);
|
|
|
|
|
|
|
|
int ret = _Printf(&proutPrintf, NULL, fmt, args);
|
|
|
|
|
|
|
|
va_end(args);
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|