Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Commit

Permalink
Worked around another stupid version naming, fixes #11
Browse files Browse the repository at this point in the history
  • Loading branch information
SonoSooS committed Apr 1, 2017
1 parent f40ad9a commit ca1b074
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Expand Up @@ -298,7 +298,7 @@ private void materialFlatButton1_Click(object sender, EventArgs e)
}
}

YLS_Sysver firmw = new YLS_Sysver() { label = (match.Groups[1] + "." + match.Groups[2] + "." + (match.Groups[4].Success ? match.Groups[4].ToString() : "0") + "-" + (match.Groups[6].Success ? match.Groups[6].ToString() : "999")) };
YLS_Sysver firmw = new YLS_Sysver() { label = (match.Groups[1] + "." + match.Groups[2] + "." + (match.Groups[4].Success ? match.Groups[4].ToString() : "9") + "-" + (match.Groups[6].Success ? match.Groups[6].ToString() : "999")) };
String region = match.Groups[7].ToString().ToUpper();
t_titleid.Text = firmw + region;
t_titleid.Update();
Expand Down
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.1")]
[assembly: AssemblyFileVersion("3.0.1")]
[assembly: AssemblyVersion("3.0.1.1")]
[assembly: AssemblyFileVersion("3.0.1.1")]
Expand Up @@ -48,7 +48,7 @@ public static YLS Import(String wat)
if (titl.id == 0x4013000001B02) line[3] = line[3].Replace("_GPIO", " GPIO").Replace("02-11-15 GPIO", "9.5.0-22");
if (titl.id == 0x400102002CA00) line[3] = line[3].Replace("_JPN", " JPN").Replace("10-02-14 JPN", "9.1.0-20J");

if(line[1] == "TWN") line[3] = line[3].Replace("08-18-16_TWN_BeginScanning", "11.0.0-33T");
if(line[1] == "TWN") line[3] = line[3].Replace("08-18-16_TWN_BeginScanning", "11.0.0-33T").Replace("N/A", "11.3.1-36T");


Match mat = Regex.Match(line[3], @"(\d+)\.(\d+)\.(\d+)-(\d+)");
Expand Down

0 comments on commit ca1b074

Please sign in to comment.