archivers/dir.c
changeset 110 203bd958330d
parent 106 fabd503dfde9
child 126 f5135b499c0c
equal deleted inserted replaced
109:25e14cb7cab9 110:203bd958330d
   207         /* make sure there's a dir separator at the end of the string */
   207         /* make sure there's a dir separator at the end of the string */
   208     strcpy((char *) (retval->opaque), name);
   208     strcpy((char *) (retval->opaque), name);
   209     if (strcmp((name + namelen) - seplen, dirsep) != 0)
   209     if (strcmp((name + namelen) - seplen, dirsep) != 0)
   210         strcat((char *) (retval->opaque), dirsep);
   210         strcat((char *) (retval->opaque), dirsep);
   211 
   211 
       
   212     retval->funcs = &__PHYSFS_DirFunctions_DIR;
       
   213 
   212     return(retval);
   214     return(retval);
   213 } /* DIR_openArchive */
   215 } /* DIR_openArchive */
   214 
   216 
   215 
   217 
   216 static LinkedStringList *DIR_enumerateFiles(DirHandle *h,
   218 static LinkedStringList *DIR_enumerateFiles(DirHandle *h,