From c3295e014d979c0213b3fb7e4837b5356bc8fdb4 Mon Sep 17 00:00:00 2001 From: jussi Date: Mon, 30 Oct 2023 22:40:20 +0200 Subject: Reintroducing Unload functions. Is*Ready functions. GC_UNLOAD setting and check function. --- src/state.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/state.c') diff --git a/src/state.c b/src/state.c index 6102a2d..b96b557 100644 --- a/src/state.c +++ b/src/state.c @@ -18,6 +18,12 @@ bool stateInit( int argn, const char **argc, const char *exePath ) { state->luaState = NULL; state->logLevelInvalid = LOG_ERROR; +#ifdef GC_UNLOAD + state->gcUnload = true; +#else + state->gcUnload = false; +#endif + InitWindow( state->resolution.x, state->resolution.y, "ReiLua" ); if ( !IsWindowReady() ) { @@ -28,6 +34,8 @@ bool stateInit( int argn, const char **argc, const char *exePath ) { InitAudioDevice(); state->run = luaInit( argn, argc ); } + state->defaultFont = GetFontDefault(); + state->defaultMaterial = LoadMaterialDefault(); return state->run; } -- cgit v1.2.3