platform/os2.c
branchstable-2.0
changeset 1020 1b4730384fc3
parent 845 3f150ffcf50c
child 1294 184697ee7a77
equal deleted inserted replaced
1019:366e2b2e6fa5 1020:1b4730384fc3
   602 } /* __PHYSFS_platformEOF */
   602 } /* __PHYSFS_platformEOF */
   603 
   603 
   604 
   604 
   605 int __PHYSFS_platformFlush(void *opaque)
   605 int __PHYSFS_platformFlush(void *opaque)
   606 {
   606 {
   607     return(os2err(DosResetBuffer((HFILE) opaque) == NO_ERROR));
   607     return(os2err(DosResetBuffer((HFILE) opaque)) == NO_ERROR);
   608 } /* __PHYSFS_platformFlush */
   608 } /* __PHYSFS_platformFlush */
   609 
   609 
   610 
   610 
   611 int __PHYSFS_platformClose(void *opaque)
   611 int __PHYSFS_platformClose(void *opaque)
   612 {
   612 {
   613     return(os2err(DosClose((HFILE) opaque) == NO_ERROR));
   613     return(os2err(DosClose((HFILE) opaque)) == NO_ERROR);
   614 } /* __PHYSFS_platformClose */
   614 } /* __PHYSFS_platformClose */
   615 
   615 
   616 
   616 
   617 int __PHYSFS_platformDelete(const char *path)
   617 int __PHYSFS_platformDelete(const char *path)
   618 {
   618 {
   619     if (__PHYSFS_platformIsDirectory(path))
   619     if (__PHYSFS_platformIsDirectory(path))
   620         return(os2err(DosDeleteDir(path)) == NO_ERROR);
   620         return(os2err(DosDeleteDir(path)) == NO_ERROR);
   621 
   621 
   622     return(os2err(DosDelete(path) == NO_ERROR));
   622     return(os2err(DosDelete(path)) == NO_ERROR);
   623 } /* __PHYSFS_platformDelete */
   623 } /* __PHYSFS_platformDelete */
   624 
   624 
   625 
   625 
   626 PHYSFS_sint64 __PHYSFS_platformGetLastModTime(const char *fname)
   626 PHYSFS_sint64 __PHYSFS_platformGetLastModTime(const char *fname)
   627 {
   627 {