summaryrefslogtreecommitdiff
path: root/uisimulator
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2004-06-20 16:34:29 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2004-06-20 16:34:29 +0000
commit74eb64257ace75c290e7eb504774a39764529d1d (patch)
tree6ccbbedbe447f53450a70c0135f8722cae5ef888 /uisimulator
parent4b6e00d4c9dd886011b64cb18684cb4916b89a13 (diff)
downloadrockbox-74eb64257ace75c290e7eb504774a39764529d1d.tar.gz
rockbox-74eb64257ace75c290e7eb504774a39764529d1d.zip
infrastructure for sorting by date+time, now we "only" need to decide on the UI
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4778 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/common/io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/uisimulator/common/io.c b/uisimulator/common/io.c
index b691af972a..e5b2f9228d 100644
--- a/uisimulator/common/io.c
+++ b/uisimulator/common/io.c
@@ -114,6 +114,8 @@ struct sim_dirent *sim_readdir(MYDIR *dir)
114 114
115 secret.attribute = S_ISDIR(s.st_mode)?ATTR_DIRECTORY:0; 115 secret.attribute = S_ISDIR(s.st_mode)?ATTR_DIRECTORY:0;
116 secret.size = s.st_size; 116 secret.size = s.st_size;
117 secret.wrtdate = (unsigned short)(s.st_mtime >> 16);
118 secret.wrttime = (unsigned short)(s.st_mtime & 0xFFFF);
117 119
118 return &secret; 120 return &secret;
119} 121}