Ignore:
Timestamp:
08/02/17 21:30:25 (7 years ago)
Author:
gost
Message:

[plugin] dm900 multiimage sd-card final

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/multiimage/MultiImage.c

    r40636 r40694  
    114114                        }
    115115                }
     116                else
     117                {
     118                        pos = ostrstr(fileline, "mmcblk1p1");
     119                        if(pos != NULL)
     120                        {
     121                                pos = string_newline(pos);
     122                                path = getconfig("mountpath", NULL);
     123                                path = ostrcat(path, "/", 0, 0);
     124                                path = ostrcat(path, pos, 1, 0);
     125                                path = ostrcat(path, "/", 1, 0);
     126                                path = ostrcat(path, "titan_multi", 1, 0);
     127                                if(file_exist(path) == 1)
     128                                {
     129                                        mdev = ostrcat(mdev, pos, 1, 0);
     130                                }
     131                                free(path); path = NULL;
     132                        }
     133                }
     134               
    116135                if(mdev != NULL)
    117136                        break;
     
    163182                        if(strlen(pos) == 4)
    164183                        {
     184                                if(mdev == NULL)
     185                                        mdev = ostrcat(mdev, pos, 1, 0);
     186                                addchoicebox(device, pos, pos);
     187                        }
     188                }
     189                else
     190                {
     191                        pos = ostrstr(fileline, "mmcblk1p1");
     192                        if(pos != NULL)
     193                        {
     194                                pos = string_newline(pos);
    165195                                if(mdev == NULL)
    166196                                        mdev = ostrcat(mdev, pos, 1, 0);
Note: See TracChangeset for help on using the changeset viewer.