fix for Issue 9

This commit is contained in:
dborth 2009-05-16 04:16:37 +00:00
parent 70c08ab644
commit e09f1acccf

View File

@ -29,12 +29,12 @@ void CreateAppPath(char origpath[])
if (loc != NULL) if (loc != NULL)
*loc = 0; // strip file name *loc = 0; // strip file name
loc = strchr(path,'/'); // looking for / from fat:/ loc = strchr(path,'/'); // looking for / from fat:/ (or sd:/)
if (loc != NULL) if (loc != NULL)
pos = loc - path + 1; pos = loc - path + 1;
if(pos >= 0 && pos < 1024) if(pos >= 0 && pos < 1024)
sprintf(appPath, &(path[pos])); sprintf(appPath, "sd:/%s", &(path[pos]));
} }
bool WiiMessagePause(const char *s) { bool WiiMessagePause(const char *s) {