+#endif
+}
+
+int plat_get_skin_dir(char *dst, int len)
+{
+ int ret = plat_get_data_dir(dst, len);
+ if (ret < 0)
+ return ret;
+
+ memcpy(dst + ret, "skin/", sizeof "skin/");
+ return ret + sizeof("skin/") - 1;
+}
+
+#ifndef PICO_HOME_DIR
+#define PICO_HOME_DIR "/.picodrive/"
+#endif
+int plat_get_root_dir(char *dst, int len)
+{
+#if defined(__GP2X__) || defined(PANDORA)
+ return plat_get_data_dir(dst, len);
+#else
+ char *home = getenv("HOME");
+ size_t nb = strlen(home);
+
+ memcpy(dst, home, nb);
+ memcpy(dst + nb, PICO_HOME_DIR, sizeof PICO_HOME_DIR);
+ mkdir(dst, 0755);
+ return nb + sizeof(PICO_HOME_DIR) - 1;
+#endif