You can now exit the process from the game.init method too
@@ -276,12 +276,14 @@ int main(int argc, char* args[])
uint8_t FPS = 60;
double MS_PER_FRAME = ceil(1000.0 / FPS);
+ if (setjmp(loop_exit) == 0) {
wrenSetSlotHandle(vm, 0, gameClass);
interpreterResult = wrenCall(vm, initMethod);
if (interpreterResult != WREN_RESULT_SUCCESS) {
result = EXIT_FAILURE;
goto vm_cleanup;
}
+ }
jo_gif_t gif;
size_t imageSize = engine.width * engine.height;
