Changeset 27756 for titan/titan/adjust.h


Ignore:
Timestamp:
03/21/14 14:17:09 (10 years ago)
Author:
obi
Message:

add dualboot to adjust

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/adjust.h

    r27534 r27756  
    5050        struct skin* playerbufferseektime = getscreennode(adjust, "playerbufferseektime");
    5151        struct skin* sataswitch = getscreennode(adjust, "sataswitch");
     52        struct skin* dualboot = getscreennode(adjust, "dualboot");
    5253
    5354        struct skin* tmp = NULL;
     
    225226        addchoicebox(usecec, "1", _("yes"));
    226227        setchoiceboxselection(usecec, getconfig("usecec", NULL));
     228
     229        addchoicebox(dualboot, "0", _("no"));
     230        addchoicebox(dualboot, "1", _("yes"));
     231        setchoiceboxselection(dualboot, getconfig("dualboot", NULL));
     232
     233        if(checkbox("ATEMIO5000") == 1 || checkbox("ATEMIO5200") == 1)
     234                dualboot->hidden = NO;
     235        else
     236                dualboot->hidden = YES;
    227237
    228238        if(status.security == 1)
     
    366376                                        setsataswitch(sataswitch->ret);
    367377                                }
    368                         }
    369                        
     378                        }       
     379                        addconfigscreen("dualboot", dualboot);
     380                        if(dualboot->ret != NULL && ostrcmp(dualboot->ret, "0") == 0)
     381                                unlink("/mnt/config/dualboot");
     382                        else
     383                                system("touch /mnt/config/dualboot");
     384
    370385                        addconfigscreen("playerbuffersize", playerbuffersize);
    371386                        addconfigscreen("playerbufferseektime", playerbufferseektime);
Note: See TracChangeset for help on using the changeset viewer.