diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-12-06 22:26:31 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-12-06 22:26:31 +0000 |
commit | 2c2416094f426972c9e2e96d25058311bbe82f97 (patch) | |
tree | 449b4e12e01c3c5c4afa2ae6a8cd396df82b5a38 /apps/gui/skin_engine/skin_engine.c | |
parent | c35b43b0f54bd607d38908544446caaa02f148a3 (diff) |
Get rid of get_user_file_path and do the path handling in wrappers for open() and friends.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28752 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/skin_engine.c')
-rw-r--r-- | apps/gui/skin_engine/skin_engine.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/gui/skin_engine/skin_engine.c b/apps/gui/skin_engine/skin_engine.c index 25baeb2c3c..fbedbb96fd 100644 --- a/apps/gui/skin_engine/skin_engine.c +++ b/apps/gui/skin_engine/skin_engine.c @@ -155,7 +155,7 @@ struct gui_wps *skin_get_gwps(enum skinnable_screens skin, enum screen_type scre { if (!loading_a_sbs && skins[skin][screen].data.wps_loaded == false) { - char buf[MAX_PATH*2], path[MAX_PATH]; + char buf[MAX_PATH*2]; char *setting = NULL, *ext = NULL; switch (skin) { @@ -226,9 +226,7 @@ struct gui_wps *skin_get_gwps(enum skinnable_screens skin, enum screen_type scre buf[0] = '\0'; /* force it to reload the default */ if (strcmp(setting, "rockbox_failsafe")) { - snprintf(buf, sizeof buf, "%s/%s.%s", - get_user_file_path(WPS_DIR, false, path, sizeof(path)), - setting, ext); + snprintf(buf, sizeof buf, WPS_DIR "/%s.%s", setting, ext); } cpu_boost(true); skin_load(skin, screen, buf, true); |