Changeset 27957


Ignore:
Timestamp:
03/26/14 15:45:31 (10 years ago)
Author:
obi
Message:

add mipsel titan key

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/titan.c

    r27765 r27957  
    10511051        system(getconfig("skriptaftertv", NULL));
    10521052
     1053        char* cmd = NULL;
     1054#ifdef SH4
     1055        cmd = ostrcat("/media/hdd/movie/titankey.sh4", NULL, 0, 0);
     1056#endif
     1057
     1058#ifdef MIPSEL
     1059        cmd = ostrcat("/media/hdd/movie/titankey.mipsel", NULL, 0, 0);
     1060#endif
     1061
    10531062        //for atemio to unlock box with stick
    1054         if(file_exist("/media/hdd/movie/titankey"))
     1063        if(file_exist(cmd))
    10551064        {
    10561065                char* cpuid = getcpuid();
    1057                 char* cmd = ostrcat("/media/hdd/movie/titankey ", cpuid, 0, 0);
     1066                cmd = ostrcat(cmd, " ", 1, 0);
     1067                cmd = ostrcat(cmd, cpuid, 1, 0);
     1068
    10581069                system(cmd);
    10591070                checkserial(cpuid);
     
    10791090
    10801091                free(cpuid); cpuid = NULL;
    1081                 free(cmd); cmd = NULL;
    1082         }
     1092        }
     1093        free(cmd); cmd = NULL;
    10831094
    10841095        //must called direct befor screeninfobar
Note: See TracChangeset for help on using the changeset viewer.