Removed 8.3 filenames from linux filesystem "driver" as it can't works.

This commit is contained in:
yabause 2006-11-04 14:52:22 +00:00
parent a1d64fa319
commit 8ea9c268fb
1 changed files with 4 additions and 2 deletions

View File

@ -29,7 +29,8 @@ void * FsReadFirst(const char * path, FsEntry * entry) {
return NULL; return NULL;
strcpy(entry->cFileName, e->d_name); strcpy(entry->cFileName, e->d_name);
strncpy(entry->cAlternateFileName, e->d_name, 12); // there's no 8.3 file names support on linux :)
strcpy(entry->cAlternateFileName, "");
entry->flags = 0; entry->flags = 0;
stat(e->d_name, &s); stat(e->d_name, &s);
@ -49,7 +50,8 @@ int FsReadNext(void * search, FsEntry * entry) {
return 0; return 0;
strcpy(entry->cFileName, e->d_name); strcpy(entry->cFileName, e->d_name);
strncpy(entry->cAlternateFileName, e->d_name, 12); // there's no 8.3 file names support on linux :)
strcpy(entry->cAlternateFileName, "");
entry->flags = 0; entry->flags = 0;
stat(e->d_name, &s); stat(e->d_name, &s);