1
0
forked from 0ad/0ad

ignore .xmb files when reloading (not critical, just avoids output clutter)

This was SVN commit r890.
This commit is contained in:
janwas 2004-08-03 12:56:44 +00:00
parent db702310d7
commit f1c7af9a95

View File

@ -44,13 +44,19 @@ int res_reload_changed_files()
const char* fn = vfs_path;
char* ext = strrchr(fn, '.');
// slight optimization (and reduces output clutter):
// don't reload XMB output files
if(ext && !strcmp(ext, ".xmb"))
continue;
// many apps save by creating a temp file, deleting the original,
// and renaming the temp file. that leads to 2 reloads, which is slow.
// so:
// .. ignore temp files,
char* ext = strrchr(fn, '.');
if(ext && !strcmp(ext, ".tmp"))
continue;
continue;
// .. and directory change (more info is upcoming anyway)
if(!ext) // dir changed
continue;