Changeset 44141


Ignore:
Timestamp:
10/11/19 16:33:35 (4 years ago)
Author:
gost
Message:

fix

Location:
titan/titan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/config.h

    r23206 r44141  
    228228}
    229229
     230char* getconfigdef(char *key, char *ext, char *def)
     231{
     232        getlist(config, key, ext);
     233        if(getlist(config, key, ext) == NULL)
     234                return ostrcat(def, NULL,0,0);
     235        else
     236                return getlist(config, key, ext);
     237}
     238
    230239int getconfigint(char *key, char *ext)
    231240{
  • titan/titan/global.h

    r44138 r44141  
    68046804       
    68056805        tmpstr = ostrcat(tuner->feshortname, "_hyprid_last", 0, 0);
    6806         if(ostrcmp(getconfig(tmpstr, "0"), value) == 0)
     6806        if(ostrcmp(getconfigdef(tmpstr, NULL, "0"), value) == 0)
    68076807        {
    68086808                printf("set hyprid.. new value %s eq old value %s\n", value, getconfig(tmpstr, "0"));
Note: See TracChangeset for help on using the changeset viewer.