Changeset 38715


Ignore:
Timestamp:
09/11/16 12:03:30 (7 years ago)
Author:
obi
Message:

fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/skinadjust.h

    r38714 r38715  
    156156        char* skinpath = NULL;
    157157        if(ostrcmp(getconfig("skinpath", NULL), "/var/usr/local/share/titan/skin/default") == 0)
     158        {
    158159                skinpath = ostrcat("/mnt/config", NULL, 0, 0);
     160                if(!file_exist("/mnt/config/skinconfig.default"))
     161                {
     162                        char* cmd = NULL;
     163                        cmd = ostrcat(cmd, "cp -a /var/usr/local/share/titan/skin/default/skinconfig.* /mnt/config", 1, 0);
     164                        printf("cmd: %s\n", cmd);
     165                        system(cmd);
     166                        free(cmd); cmd = NULL;
     167                }
     168        }
    159169        else
    160170                skinpath = ostrcat(getconfig("skinpath", NULL), NULL, 0, 0);
Note: See TracChangeset for help on using the changeset viewer.