From d7d2e69092936a049c4c8ed51cc2c750d8ca2157 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Wed, 8 Aug 2007 07:27:07 +0000 Subject: Fix FS#7557 - bug which caused plugins to look for their config/hiscore files in the / folder instead of their folder git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14239 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'apps') diff --git a/apps/plugin.c b/apps/plugin.c index 660f6e9294..1935297a26 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -508,7 +508,6 @@ int plugin_load(const char* plugin, void* parameter) { int rc; struct plugin_header *hdr; - const char *p = strrchr(plugin,'/'); #ifdef SIMULATOR void *pd; #else @@ -524,12 +523,9 @@ int plugin_load(const char* plugin, void* parameter) fb_data* old_backdrop; #endif - if (!p) - p = plugin; - if (pfn_tsr_exit != NULL) /* if we have a resident old plugin: */ { - if (pfn_tsr_exit(!strcmp(current_plugin,p)) == false ) + if (pfn_tsr_exit(!strcmp(current_plugin, plugin)) == false ) { /* not allowing another plugin to load */ return PLUGIN_OK; @@ -539,7 +535,7 @@ int plugin_load(const char* plugin, void* parameter) } gui_syncsplash(0, ID2P(LANG_WAIT)); - strcpy(current_plugin,p); + strcpy(current_plugin, plugin); #ifdef SIMULATOR hdr = sim_plugin_load((char *)plugin, &pd); -- cgit v1.2.3