Changeset 24709


Ignore:
Timestamp:
Nov 2, 2013, 10:33:02 AM (7 years ago)
Author:
obi
Message:

fix lcdsamsung / lcdpearl check all paths on start.

Location:
titan/plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/lcdpearl1/lcdpearl1.c

    r24694 r24709  
    434434        firststart = 1;
    435435
    436         tmpstr = createpluginpath("/lcdpearl1/skin2.xml", 0);
    437                
     436        tmpstr = ostrcat("/var/usr/local/share/titan/plugins/lcdpearl1/skin2.xml", NULL, 0, 0);
     437        if(!file_exist(tmpstr))
     438        {
     439                free(tmpstr); tmpstr = NULL;
     440                tmpstr = ostrcat("/var/swap/usr/local/share/titan/plugins/lcdpearl1/skin2.xml", NULL, 0, 0);
     441        }
     442        if(!file_exist(tmpstr))
     443        {
     444                free(tmpstr); tmpstr = NULL;
     445                tmpstr = ostrcat("/mnt/swapextensions/usr/local/share/titan/plugins/lcdpearl1/skin2.xml", NULL, 0, 0);
     446        }
    438447        if(!file_exist(tmpstr))
    439448        {
  • titan/plugins/lcdsamsung/lcdsamsung.c

    r24694 r24709  
    889889        pluginaktiv = 1;
    890890        firststart = 1;
    891        
    892         tmpstr = createpluginpath("/lcdsamsung/skin2.xml", 0);
    893                
     891
     892        tmpstr = ostrcat("/var/usr/local/share/titan/plugins/lcdsamsung/skin2.xml", NULL, 0, 0);
     893        if(!file_exist(tmpstr))
     894        {
     895                free(tmpstr); tmpstr = NULL;
     896                tmpstr = ostrcat("/var/swap/usr/local/share/titan/plugins/lcdsamsung/skin2.xml", NULL, 0, 0);
     897        }
     898        if(!file_exist(tmpstr))
     899        {
     900                free(tmpstr); tmpstr = NULL;
     901                tmpstr = ostrcat("/mnt/swapextensions/usr/local/share/titan/plugins/lcdsamsung/skin2.xml", NULL, 0, 0);
     902        }
    894903        if(!file_exist(tmpstr))
    895904        {
Note: See TracChangeset for help on using the changeset viewer.