2024-06-20 04:08:16 +00:00
|
|
|
#include <grrlib.h>
|
2024-06-19 04:51:50 +00:00
|
|
|
#include <duktape.h>
|
2024-06-21 07:45:28 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
2024-06-22 05:57:08 +00:00
|
|
|
#include <ogc/lwp_watchdog.h>
|
2024-06-21 07:45:28 +00:00
|
|
|
|
2024-06-25 21:08:04 +00:00
|
|
|
#include <data.h>
|
|
|
|
#include <duktape_engine.h>
|
2024-06-19 04:51:50 +00:00
|
|
|
|
2024-06-20 04:08:16 +00:00
|
|
|
static bool running = true;
|
2024-06-21 07:45:28 +00:00
|
|
|
static GRRLIB_ttfFont * font;
|
2024-06-19 07:39:01 +00:00
|
|
|
|
2024-06-19 04:51:50 +00:00
|
|
|
int main(int argc, char **argv) {
|
2024-06-20 04:08:16 +00:00
|
|
|
GRRLIB_Init();
|
2024-06-19 07:39:01 +00:00
|
|
|
PAD_Init();
|
2024-06-19 04:51:50 +00:00
|
|
|
|
2024-06-21 07:45:28 +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
|
|
|
|
2024-06-25 21:08:04 +00:00
|
|
|
duktape(font, &running);
|
|
|
|
|
2024-06-20 04:08:16 +00:00
|
|
|
GRRLIB_Exit();
|
2024-06-19 04:51:50 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|