Subversion Repositories Projects

Rev

Rev 206 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 206 Rev 255
Line 12... Line 12...
12
public class MKVersion
12
public class MKVersion
Line 13... Line 13...
13
 
13
 
14
{
14
{
15
    public int major=-1;
15
    public int major=-1;
-
 
16
    public int minor=-1;
-
 
17
    public int proto_major=-1;
16
    public int minor=-1;
18
    public int proto_minor=-1;
-
 
19
    public int patch=-1;
-
 
20
 
17
    public int compatible=-1;
21
    public String version_str="";
Line 18... Line 22...
18
    public String str="--";
22
    public String proto_str="";
19
   
23
   
Line 28... Line 32...
28
 
32
 
29
    public void set_by_mk_data(int[] data)
33
    public void set_by_mk_data(int[] data)
30
    {
34
    {
31
        major=data[0];
35
        major=data[0];
-
 
36
        minor=data[1];
-
 
37
        proto_major=data[2];
32
        minor=data[1];
38
        proto_minor=data[3];
-
 
39
        patch=data[4];
33
        compatible=data[2];
40
 
-
 
41
        version_str="v"+major+"."+minor + (char)('a'+patch);
-
 
42
 
34
        str="v"+major+"."+minor+"/"+compatible;
43
        proto_str="v"+proto_major+"."+proto_minor ;
35
        known=true;
44
        known=true;
Line 36... Line 45...
36
    }
45
    }
37
   
46