equal
deleted
inserted
replaced
297 { |
297 { |
298 char *f = __PHYSFS_platformCvtToDependent((char *)(h->opaque), name, NULL); |
298 char *f = __PHYSFS_platformCvtToDependent((char *)(h->opaque), name, NULL); |
299 int retval; |
299 int retval; |
300 |
300 |
301 BAIL_IF_MACRO(f == NULL, NULL, 0); |
301 BAIL_IF_MACRO(f == NULL, NULL, 0); |
302 |
302 retval = __PHYSFS_platformDelete(f); |
303 /* !!! FIXME: Abstract in platform drivers. */ |
|
304 errno = 0; |
|
305 retval = (remove(f) == 0); |
|
306 if (!retval) |
|
307 __PHYSFS_setError(strerror(errno)); |
|
308 |
|
309 free(f); |
303 free(f); |
310 return(retval); |
304 return(retval); |
311 } /* DIR_remove */ |
305 } /* DIR_remove */ |
312 |
306 |
313 |
307 |