Changeset 30184


Ignore:
Timestamp:
09/28/14 14:02:02 (8 years ago)
Author:
obi
Message:

add installed version to about

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/global.h

    r30174 r30184  
    66126612char* getabout()
    66136613{
    6614         char* text = NULL, *tmpstr = NULL;
     6614        char* text = NULL, *tmpstr = NULL, *imgversion = NULL;
    66156615        struct dvbdev* dvbnode = dvbdev;
     6616
     6617        if(isfile(getconfig("imagenamefile", NULL))     != 0)
     6618                imgversion = readsys(getconfig("imagenamefile", NULL), 1);
     6619        else
     6620                imgversion = ostrcat("unknown", NULL, 0, 0);
    66166621
    66176622        text = ostrcat(_("Image"), ": ", 0, 0);
     
    66216626        text = ostrcat(text, ": ", 1, 0);
    66226627        text = ostrcat(text, OVERSION, 1, 0);
     6628        text = ostrcat(text, "\n", 1, 0);
     6629        text = ostrcat(text, _("Installed:"), 1, 0);
     6630        text = ostrcat(text, ": ", 1, 0);
     6631        text = ostrcat(text, imgversion, 1, 1);
    66236632        text = ostrcat(text, "\n", 1, 0);
    66246633        text = ostrcat(text, _("Copyright"), 1, 0);
Note: See TracChangeset for help on using the changeset viewer.