In usbsupport.c function usbFindPartition, change the 3 "mass" path there:
Code:
snprintf(path, 64, "mass%d:%s", i, name);
fd = fioOpen(path, O_RDONLY);
if(fd >= 0) {
snprintf(target, 8, "mass%d:", i);
fioClose(fd);
return 1;
}
}
// default to first partition (for themes, ...)
sprintf(target, "mass0:");
To:
Code:
snprintf(path, 64, "mass%d:mysubfolder/%s", i, name);
fd = fioOpen(path, O_RDONLY);
if(fd >= 0) {
snprintf(target, 8, "mass%d:mysubfolder/", i);
fioClose(fd);
return 1;
}
}
// default to first partition (for themes, ...)
sprintf(target, "mass0:mysubfolder/");
EDIT: oh wait, you must change the size of char buffer too. And that may have a lot repercussions.
In usbsupport.c
Code:
static char usbPrefix[8];
Code:
static char usbPrefix[32];
<- any value you need, accordingly to your path size
function usbLoadModules:
Code:
char path[32];
sprintf(path, "%sTHM/", usbPrefix);
In opl.c eventually, function tryAlternateDevice:
Code:
static int tryAlternateDevice(int types) {
char path[64];
<- hold usbprefix content + "conf_opl.cfg"
And a lot more function in supportbase.c/system.c, every one that use the "usbprefix" as parameter...
Code:
sbIsSameSize(usbPrefix, usbULSizePrev);
sbReadList(&usbGames, usbPrefix, "/", &usbULSizePrev, &usbGameCount);
sbDelete(&usbGames, usbPrefix, "/", usbGameCount, id);
usbPrepareMcemu (vmc_path)
usbGetArt
sysCheckVMC(usbPrefix, "/", name, createSize);
Lots of changes in fact