WiiDuktape/source/main.c
Fries 63bb2916ca move duktape code into a static library.
this means i can try out making a launcher that launches into other
javascript engines like quickjs.
2024-06-25 14:08:04 -07:00

29 lines
620 B
C

#include <grrlib.h>
#include <duktape.h>
#include <stdio.h>
#include <stdlib.h>
#include <ogc/lwp_watchdog.h>
#include <data.h>
#include <duktape_engine.h>
static bool running = true;
static GRRLIB_ttfFont * font;
int main(int argc, char **argv) {
GRRLIB_Init();
PAD_Init();
// 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);
duktape(font, &running);
GRRLIB_Exit();
return 0;
}