Oggzee,
Is it possible you also check for another variable in the direct_start_arg buffer?
Currently you check for "#GAMEID-P". Could you add a device parameter so that the resulting direct_start_arg template be "#GAMEID-P-D", P being partition and D being device... Currently I see device is set to USB by default.
This could help people that have problems
launching NetFlix from their sd card.
CODEÂÂÂÂif (direct_start_arg) {
ÂÂÂÂÂÂÂÂchar *t = direct_start_arg;
ÂÂÂÂÂÂÂÂ// game id
ÂÂÂÂÂÂÂÂmemcpy(CFG.launch_discid, t, 6);
ÂÂÂÂÂÂÂÂt += 6;
ÂÂÂÂÂÂÂÂif (t[0] == '-') {
ÂÂÂÂÂÂÂÂÂÂÂÂint part_num = t[1] - '0';
ÂÂÂÂÂÂÂÂÂÂÂÂ//CFG.current_partition = t[1] - 48;
ÂÂÂÂÂÂÂÂÂÂÂÂ//CFG.current_partition &= 3;
ÂÂÂÂÂÂÂÂÂÂÂÂif (part_num < 4) {
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂsprintf(CFG.partition, "WBFS%d", part_num + 1);
ÂÂÂÂÂÂÂÂÂÂÂÂ} else {
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂsprintf(CFG.partition, "FAT%d", part_num - 4 + 1);
ÂÂÂÂÂÂÂÂÂÂÂÂ}
ÂÂÂÂÂÂÂÂ}
ÂÂÂÂÂÂÂÂ// setup cfg for auto-start
ÂÂÂÂÂÂÂÂCFG.direct_launch = 1;
ÂÂÂÂÂÂÂÂCFG_Default_Theme();
ÂÂÂÂÂÂÂÂCFG.device = CFG_DEV_USB;
ÂÂÂÂÂÂÂÂ*CFG.background = 0;
ÂÂÂÂÂÂÂÂ*CFG.w_background = 0;
ÂÂÂÂÂÂÂÂCFG.covers = 0;
ÂÂÂÂÂÂÂÂCFG.gui = 0;
ÂÂÂÂÂÂÂÂCFG.music = 0;
ÂÂÂÂÂÂÂÂCFG.confirm_start = 0;
ÂÂÂÂÂÂÂÂ//CFG.debug = 0;
ÂÂÂÂ}
Also as I see, passing partition as NTFS is not possible, maybe you can incorporate hexadecimal into business? An example code here..
CODEint ci(char val)
{
ÂÂÂÂÂÂÂÂif (val>='0' && val='A' && val='a' && val=4) && (part_num