twn_loop.c: watch pack changes from pack dependencies
This commit is contained in:
		@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user