void Console_PutChar(u8 c) { #ifdef WIN32 Win_PutChar(c); #else OS_PutChar(c); #endif }
void ghiLogToFile(const char * buffer, int len, const char* fileName) { #ifdef _NITRO int i; if(!buffer || !len) return; for(i = 0 ; i < len ; i++) OS_PutChar(buffer[i]); #else FILE * file; if(!buffer || !len) return; file = fopen(fileName, "ab"); if(file) { fwrite(buffer, 1, len, file); fclose(file); } #endif }