#include "TZR_resource.h" #include "TZR_globals.h" #include void TZR_ResourcesWatch(void) { for (TZR_Uint i = 0; i < ___tzr_resources_size; i++) { TZR_Resource *const res = TZR_GetResourcePointer(i + 1); if (res->path == NULL) continue; struct stat st = {0}; (void)stat(res->path, &st); if (st.st_mtime != res->mtime) { if (res->mtime != 0) TZR_ReloadResource(i + 1); res->mtime = st.st_mtime; } } }