twn_util.c: add file_read()
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user