From 5207df01ccc233b8285f4a0fb9411d99285ba6b7 Mon Sep 17 00:00:00 2001 From: TheFloW Date: Sun, 30 Oct 2016 14:08:31 +0100 Subject: [PATCH] More information --- archive.c | 4 +++- file.h | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/archive.c b/archive.c index 35906d76..3e91e91b 100644 --- a/archive.c +++ b/archive.c @@ -125,7 +125,6 @@ int fileListGetArchiveEntries(FileList *list, char *path) { if (strlen(name) > 0 && !fileListFindEntry(list, name)) { FileListEntry *entry = malloc(sizeof(FileListEntry)); - memcpy(entry, archive_entry, sizeof(FileListEntry)); strcpy(entry->name, archive_entry->name + name_length); @@ -141,6 +140,9 @@ int fileListGetArchiveEntries(FileList *list, char *path) { } entry->name_length = strlen(entry->name); + entry->size = archive_entry->size; + + memcpy(&entry->mtime, &archive_entry->mtime, sizeof(SceDateTime)); fileListAddEntry(list, entry, SORT_BY_NAME_AND_FOLDER); } diff --git a/file.h b/file.h index 11c76e9d..a88d88e2 100644 --- a/file.h +++ b/file.h @@ -69,7 +69,6 @@ typedef struct FileListEntry { int name_length; int is_folder; int type; - int compression_method; SceOff size; SceOff size2; SceDateTime ctime;