summaryrefslogtreecommitdiff
path: root/core/init.c
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2025-08-04 12:32:39 -0500
committerDanny Holman <dholman@gymli.org>2025-08-04 12:32:39 -0500
commit7a268ae92d44a9f27f4874e1e50413ee33b86dd3 (patch)
tree47574f2a1d6c6d469e19627aacbcae03ae615dee /core/init.c
parentrender: vulkan: add check for null pointer for debug (diff)
downloadrune-engine-7a268ae92d44a9f27f4874e1e50413ee33b86dd3.tar.gz
rune-engine-7a268ae92d44a9f27f4874e1e50413ee33b86dd3.tar.zst
rune-engine-7a268ae92d44a9f27f4874e1e50413ee33b86dd3.zip
root: restructuring
Restructure the root of the project such that the engine is siloed from the rest of the toolchain. Add two new subdirectories that contain an editor and an offline profiling data analyzer. Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to '')
-rw-r--r--engine/core/init.c (renamed from core/init.c)13
1 files changed, 12 insertions, 1 deletions
diff --git a/core/init.c b/engine/core/init.c
index 5df4d04..6fcd086 100644
--- a/core/init.c
+++ b/engine/core/init.c
@@ -21,17 +21,28 @@
#include <rune/core/init.h>
#include <rune/core/abort.h>
+#include <rune/core/alloc.h>
+#include <rune/core/config.h>
#include <rune/core/logging.h>
#include <rune/core/thread.h>
+#include <rune/core/mod.h>
+#include <rune/core/object.h>
int rune_init(int argc, char* argv[]) {
log_output(LOG_INFO, "Started Rune Engine version %s", RUNE_VER);
- _parse_args(argc, argv);
+
+ rune_init_default_settings();
rune_init_thread_api();
+
+ rune_load_mods();
+ rune_init_mods();
+
return 0;
}
void rune_exit(void) {
log_output(LOG_INFO, "Engine shutdown requested");
+ rune_clear_objs();
+ rune_close_mods();
rune_free_all();
}