Fries
63bb2916ca
this means i can try out making a launcher that launches into other javascript engines like quickjs.
29 lines
620 B
C
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;
|
|
}
|