Changeset 182 in Main for trunk/Common/log.c


Ignore:
Timestamp:
Sep 27, 2024, 9:55:12 PM (7 weeks ago)
Author:
Nishi
Message:

psp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/log.c

    r62 r182  
    1212#include <stdarg.h>
    1313
     14#ifdef _PSP
     15#include <pspdebug.h>
     16#endif
     17
    1418FILE* logfile;
    1519
     
    2327        char date[513];
    2428        strftime(date, 512, "%a %b %d %H:%M:%S %Z %Y", tm);
     29#ifdef _PSP
     30        pspDebugScreenPrintf("[%s] %s\n", date, log);
     31#else
    2532        fprintf(logfile, "[%s] %s\n", date, log);
     33#endif
    2634        fflush(logfile);
    2735}
     
    6977        }
    7078
     79#ifdef _PSP
     80        pspDebugScreenPrintf("%s %s\n", namebuf, result);
     81#else
    7182        fprintf(logfile, "%s %s\n", namebuf, result);
     83#endif
    7284        va_end(args);
    7385
Note: See TracChangeset for help on using the changeset viewer.