WiiDuktape/source/main.c

30 lines
620 B
C
Raw Normal View History

#include <grrlib.h>
2024-06-19 04:51:50 +00:00
#include <duktape.h>
#include <stdio.h>
#include <stdlib.h>
#include <ogc/lwp_watchdog.h>
#include <data.h>
#include <duktape_engine.h>
2024-06-19 04:51:50 +00:00
static bool running = true;
static GRRLIB_ttfFont * font;
2024-06-19 04:51:50 +00:00
int main(int argc, char **argv) {
GRRLIB_Init();
PAD_Init();
2024-06-19 04:51:50 +00:00
// get the pixel operator font's data pointer and size
void * pixel_operator_font;
size_t pixel_operator_font_size;
get_file_pointer("PixelOperator.ttf", &pixel_operator_font, &pixel_operator_font_size);
font = GRRLIB_LoadTTF(pixel_operator_font, pixel_operator_font_size);
2024-06-19 04:51:50 +00:00
duktape(font, &running);
GRRLIB_Exit();
2024-06-19 04:51:50 +00:00
return 0;
}