platform/os2.c
branchstable-1.0
changeset 1021 7facbc5f4192
parent 599 44af228dd59a
equal deleted inserted replaced
967:7f18177e959b 1021:7facbc5f4192
   660 } /* __PHYSFS_platformEOF */
   660 } /* __PHYSFS_platformEOF */
   661 
   661 
   662 
   662 
   663 int __PHYSFS_platformFlush(void *opaque)
   663 int __PHYSFS_platformFlush(void *opaque)
   664 {
   664 {
   665     return(os2err(DosResetBuffer((HFILE) opaque) == NO_ERROR));
   665     return(os2err(DosResetBuffer((HFILE) opaque)) == NO_ERROR);
   666 } /* __PHYSFS_platformFlush */
   666 } /* __PHYSFS_platformFlush */
   667 
   667 
   668 
   668 
   669 int __PHYSFS_platformClose(void *opaque)
   669 int __PHYSFS_platformClose(void *opaque)
   670 {
   670 {
   671     return(os2err(DosClose((HFILE) opaque) == NO_ERROR));
   671     return(os2err(DosClose((HFILE) opaque)) == NO_ERROR);
   672 } /* __PHYSFS_platformClose */
   672 } /* __PHYSFS_platformClose */
   673 
   673 
   674 
   674 
   675 int __PHYSFS_platformDelete(const char *path)
   675 int __PHYSFS_platformDelete(const char *path)
   676 {
   676 {
   677     if (__PHYSFS_platformIsDirectory(path))
   677     if (__PHYSFS_platformIsDirectory(path))
   678         return(os2err(DosDeleteDir(path)) == NO_ERROR);
   678         return(os2err(DosDeleteDir(path)) == NO_ERROR);
   679 
   679 
   680     return(os2err(DosDelete(path) == NO_ERROR));
   680     return(os2err(DosDelete(path)) == NO_ERROR);
   681 } /* __PHYSFS_platformDelete */
   681 } /* __PHYSFS_platformDelete */
   682 
   682 
   683 
   683 
   684 PHYSFS_sint64 __PHYSFS_platformGetLastModTime(const char *fname)
   684 PHYSFS_sint64 __PHYSFS_platformGetLastModTime(const char *fname)
   685 {
   685 {