twn_util.c: add file_read()

This commit is contained in:
veclavtalica
2025-02-20 19:51:52 +03:00
parent e15975bfaa
commit a231d650f2
6 changed files with 39 additions and 64 deletions

View File

@ -754,6 +754,11 @@ static bool try_mounting_root_pack(char *path) {
}
static void garbage_collect(void) {
file_read_garbage_collect();
}
int enter_loop(int argc, char **argv) {
profile_start("startup");
@ -866,6 +871,7 @@ int enter_loop(int argc, char **argv) {
/* dispatch all filewatch driven events, such as game object and asset pack reload */
filewatch_poll();
main_loop();
garbage_collect();
}
if (ctx.game.debug)