diff --git a/src/twn_loop.c b/src/twn_loop.c index 238aa8f..7c182a8 100644 --- a/src/twn_loop.c +++ b/src/twn_loop.c @@ -22,6 +22,9 @@ #define PACKAGE_EXTENSION "btw" +static void pack_contents_modified(char const *path, enum FilewatchAction action); + + static SDL_sem *opengl_load_semaphore; @@ -308,6 +311,8 @@ static void resolve_pack_dependencies(const char *pack_name) { if (!PHYSFS_mount(dep_source_path, "/", true)) CRY("Cannot load pack", "Nothing is given to work with"); + filewatch_add_directory(dep_source_path, &pack_contents_modified); + log_info("Pack loaded: %s\n", dep_source.u.s); SDL_free(dep_source.u.s);