1
0
forked from 0ad/0ad

pass dir_watch the native path, so that it has a chance at working ;p

This was SVN commit r972.
This commit is contained in:
janwas 2004-08-11 20:20:03 +00:00
parent 93b40f835e
commit e67ed4acc0

View File

@ -14,11 +14,11 @@ int res_reload(const char* const fn)
}
// path: portable and relative, must add current directory and convert to native
// better to use a cached string from rel_chdir - secure
int res_watch_dir(const char* const path, intptr_t* const watch)
{
return dir_add_watch(path, watch);
char n_path[PATH_MAX];
CHECK_ERR(file_make_native_path(path, n_path));
return dir_add_watch(n_path, watch);
}