extras/globbing.c
changeset 1631 1aec60db9326
parent 1016 957c97389257
equal deleted inserted replaced
1630:5123a32160af 1631:1aec60db9326
   206         return 1;
   206         return 1;
   207     } /* if */
   207     } /* if */
   208 
   208 
   209     if (!PHYSFS_init(argv[0]))
   209     if (!PHYSFS_init(argv[0]))
   210     {
   210     {
   211         fprintf(stderr, "PHYSFS_init(): %s\n", PHYSFS_getLastError());
   211         fprintf(stderr, "PHYSFS_init(): %s\n", PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode()));
   212         return 1;
   212         return 1;
   213     } /* if */
   213     } /* if */
   214 
   214 
   215     if (!PHYSFS_addToSearchPath(".", 1))
   215     if (!PHYSFS_addToSearchPath(".", 1))
   216     {
   216     {
   217         fprintf(stderr, "PHYSFS_addToSearchPath(): %s\n", PHYSFS_getLastError());
   217         fprintf(stderr, "PHYSFS_addToSearchPath(): %s\n", PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode()));
   218         PHYSFS_deinit();
   218         PHYSFS_deinit();
   219         return 1;
   219         return 1;
   220     } /* if */
   220     } /* if */
   221 
   221 
   222     flist = PHYSFSEXT_enumerateFilesWildcard("/", argv[1], atoi(argv[2]));
   222     flist = PHYSFSEXT_enumerateFilesWildcard("/", argv[1], atoi(argv[2]));