Ignore:
Timestamp:
09/10/16 21:23:35 (7 years ago)
Author:
Stephan
Message:

[skinadjust] change style name to skinconfig.user.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/skinadjust.h

    r38577 r38702  
    8383        changeinput(osdtransparent, "0\n5\n10\n15\n20\n25\n30\n35\n40\n45\n50\n55\n60\n65\n70");
    8484        setchoiceboxselection(osdtransparent, getskinconfig("osdtransparent", NULL));
    85        
     85
    8686        addchoicebox(blinkoff, "0", _("on"));
    8787        addchoicebox(blinkoff, "1", _("off"));
     
    114114#endif
    115115        oleftoffset = getconfigint("fbleftoffset", NULL);
    116         orightoffset = getconfigint("fbrightoffset", NULL); 
     116        orightoffset = getconfigint("fbrightoffset", NULL);
    117117        otopoffset = getconfigint("fbtopoffset", NULL);
    118118        obottomoffset = getconfigint("fbbottomoffset", NULL);
     
    160160                changemask(filelist, "*");
    161161                createfilelist(skinadjust, filelist, 0);
    162                
     162
    163163                node = filelist;
    164164                while(node != NULL)
     
    299299                favcol->hidden = YES;
    300300        }
    301        
     301
    302302        if(status.security == 0 || checkemu() == 0)
    303303        {
     
    401401
    402402                addconfigscreencheck("fbleftoffset", leftoffset, "0");
    403                 if(status.leftoffset != getconfigint("fbleftoffset", NULL)) offsetchange = 1; 
     403                if(status.leftoffset != getconfigint("fbleftoffset", NULL)) offsetchange = 1;
    404404                status.leftoffset = getconfigint("fbleftoffset", NULL);
    405405
     
    444444                        {
    445445                                char* cmd = NULL;
    446                                 if(ostrcmp(getconfig("skinconfig", NULL), "/mnt/config/skinconfig") == 0)                               
     446                                if(ostrcmp(getconfig("skinconfig", NULL), "/mnt/config/skinconfig") == 0)
    447447                                        cmd = ostrcat("cp -a /etc/titan.restore/mnt/config/skinconfig ", getconfig("skinconfig", NULL), 0, 0);
    448448                                else
     
    453453                                        cmd = ostrcat(cmd, getconfig("skinconfig", NULL), 1, 0);
    454454                                }
    455                                 printf("cmd: %s\n", cmd);       
     455                                printf("cmd: %s\n", cmd);
    456456                                system(cmd);
    457457                                free(cmd); cmd = NULL;
     
    478478                                        cmd = ostrcat(cmd, " \"", 1, 0);
    479479                                        cmd = ostrcat(cmd, getconfig("skinpath", NULL), 1, 0);
    480                                         cmd = ostrcat(cmd, "/skinconfig.", 1, 0);
     480                                        cmd = ostrcat(cmd, "/skinconfig.user.", 1, 0);
    481481                                        cmd = ostrcat(cmd, search, 1, 0);
    482482                                        cmd = ostrcat(cmd, "\"", 1, 0);
    483                                         printf("cmd: %s\n", cmd);       
     483                                        printf("cmd: %s\n", cmd);
    484484                                        system(cmd);
    485485                                        free(cmd); cmd = NULL;
    486                                        
     486
    487487                                        delskinconfigtmpall();
    488488                                        delownerrc(skinadjust);
     
    499499                        if(ostrcmp(skinstyle_sel->ret, "skinconfig.default") != 0)
    500500                        {
    501                                 tmpstr = string_replace("skinconfig.", "", skinstyle_sel->ret, 0);
     501                                tmpstr = string_replace("skinconfig.user.", "", skinstyle_sel->ret, 0);
    502502                                char* msg = ostrcat(_("Remove Skinstyle"), NULL, 0, 0);
    503503                                msg = ostrcat(msg, " '", 1, 0);
     
    517517                                        system(cmd);
    518518                                        free(cmd); cmd = NULL;
    519        
     519
    520520//                                      delskinconfigtmpall();
    521521//                                      delownerrc(skinadjust);
    522522//                                      clearscreen(skinadjust);
    523        
     523
    524524//                                      goto start;
    525525                                        textbox(_("Message"), _("Titan will be restarted!"), _("OK"), getrcconfigint("rcok", NULL), NULL, 0, NULL, 0, NULL, 0, 1000, 200, 0, 0);
     
    841841                                if(oldepgcol1 != convertcol("epgcol1")) reboot = 1;
    842842                                epgcol1->fontcol2 = convertcol(tmpstr);
    843                         }                                               
     843                        }
    844844
    845845                        if(listbox->select != NULL && ostrcmp(listbox->select->name, "epgcol2") == 0)
     
    913913                                cmd = ostrcat(cmd, "/", 1, 0);
    914914                                cmd = ostrcat(cmd, skinstyle_sel->ret, 1, 0);
    915                                 cmd = ostrcat(cmd, " ", 1, 0); 
     915                                cmd = ostrcat(cmd, " ", 1, 0);
    916916                                cmd = ostrcat(cmd, getconfig("skinconfig", NULL), 1, 0);
    917                                 printf("cmd: %s\n", cmd);       
     917                                printf("cmd: %s\n", cmd);
    918918                                system(cmd);
    919919                                free(cmd); cmd = NULL;
Note: See TracChangeset for help on using the changeset viewer.