Changeset 29038


Ignore:
Timestamp:
05/15/14 17:23:28 (10 years ago)
Author:
obi
Message:

add createfav support

Location:
titan/titan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/global.h

    r29031 r29038  
    63476347}
    63486348
     6349void createfav()
     6350{
     6351        struct skin* load = getscreen("loading");
     6352
     6353        system("rm -rf /mnt/settings/bouquets*");
     6354        system("cp -a /etc/titan.restore/mnt/settings/bouquets* /mnt/settings");
     6355
     6356        textbox(_("Message"), _("Standard favorites have been successfully applied.\nYour System will reboot !"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1000, 200, 0, 0);
     6357        //write only config file
     6358        system("sync");
     6359        writeallconfig(3);
     6360        oshutdown(2,2);
     6361        system("init 6");
     6362}
     6363
    63496364#endif
  • titan/titan/menu.h

    r29008 r29038  
    666666                convertsettings();
    667667        }
     668        else if(ostrcmp("createfav", menuentry->name) == 0)
     669        {
     670                if(check == 1) return 0;
     671                createfav();
     672        }
    668673        else if(ostrcmp("autosearch", menuentry->name) == 0)
    669674        {
Note: See TracChangeset for help on using the changeset viewer.