show size

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@397 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
Nishi 2025-10-17 13:12:49 +00:00
commit 89228ae102
17 changed files with 511 additions and 485 deletions

View file

@ -71,6 +71,12 @@ MwDirectoryEntry* MwDirectoryRead(void* handle) {
} else {
entry->type = MwDIRECTORY_FILE;
}
entry->size = 0;
entry->size = entry->size << 32;
entry->size |= dir->ffd.nFileSizeHigh;
entry->size = entry->size << 32;
entry->size |= dir->ffd.nFileSizeLow;
#else
struct dirent* d;
struct stat s;
@ -92,6 +98,7 @@ MwDirectoryEntry* MwDirectoryRead(void* handle) {
} else {
entry->type = MwDIRECTORY_FILE;
}
entry->size = s.st_size;
free(p);
#endif