2016-01-07 13:48:45 +01:00
|
|
|
#include <coreinit/thread.h>
|
2018-05-25 12:48:37 +02:00
|
|
|
#include <coreinit/time.h>
|
|
|
|
#include <coreinit/systeminfo.h>
|
2016-07-27 09:42:14 +02:00
|
|
|
|
2018-05-25 12:48:37 +02:00
|
|
|
#include <whb/proc.h>
|
|
|
|
#include <whb/log.h>
|
|
|
|
#include <whb/log_console.h>
|
2016-01-07 13:48:45 +01:00
|
|
|
|
|
|
|
int
|
|
|
|
main(int argc, char **argv)
|
|
|
|
{
|
2018-05-25 12:48:37 +02:00
|
|
|
OSCalendarTime tm;
|
2016-01-07 13:48:45 +01:00
|
|
|
|
2018-05-25 12:48:37 +02:00
|
|
|
WHBProcInit();
|
|
|
|
WHBLogConsoleInit();
|
|
|
|
WHBLogPrintf("Hello World!");
|
2016-01-07 13:48:45 +01:00
|
|
|
|
2018-05-25 12:48:37 +02:00
|
|
|
while(WHBProcIsRunning()) {
|
|
|
|
OSTicksToCalendarTime(OSGetTime(), &tm);
|
|
|
|
WHBLogPrintf("%02d/%02d/%04d %02d:%02d:%02d I'm still here.",
|
|
|
|
tm.tm_mday, tm.tm_mon, tm.tm_year,
|
|
|
|
tm.tm_hour, tm.tm_min, tm.tm_sec);
|
2016-01-07 13:48:45 +01:00
|
|
|
|
2018-05-25 12:48:37 +02:00
|
|
|
WHBLogConsoleDraw();
|
2018-05-28 12:39:36 +02:00
|
|
|
OSSleepTicks(OSMillisecondsToTicks(1000));
|
2018-05-25 12:48:37 +02:00
|
|
|
}
|
2017-05-10 18:32:37 +02:00
|
|
|
|
2018-05-25 12:48:37 +02:00
|
|
|
WHBLogPrintf("Exiting... good bye.");
|
|
|
|
WHBLogConsoleDraw();
|
2018-05-28 12:39:36 +02:00
|
|
|
OSSleepTicks(OSMillisecondsToTicks(1000));
|
2017-05-10 18:32:37 +02:00
|
|
|
|
2018-05-25 12:48:37 +02:00
|
|
|
WHBLogConsoleFree();
|
|
|
|
WHBProcShutdown();
|
2016-01-07 13:48:45 +01:00
|
|
|
return 0;
|
2015-12-27 03:22:53 +01:00
|
|
|
}
|