Skip to content

Commit

Permalink
Set N80 version as 1.2 preview 1 (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
Konamiman authored Dec 6, 2023
1 parent c34bd28 commit 865d9fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion N80/N80.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<RootNamespace>Konamiman.Nestor80.N80</RootNamespace>
<PlatformTarget>AnyCPU</PlatformTarget>
<Version>$(VersionPrefix)</Version>
<AssemblyVersion>1.1</AssemblyVersion>
<AssemblyVersion>1.2</AssemblyVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down
4 changes: 3 additions & 1 deletion N80/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ namespace Konamiman.Nestor80.N80
/// </summary>
internal partial class Program
{
const int PREVIEW_LEVEL = 1;

const int ERR_SUCCESS = 0;
const int ERR_BAD_ARGUMENTS = 1;
const int ERR_CANT_OPEN_INPUT_FILE = 2;
Expand Down Expand Up @@ -1533,7 +1535,7 @@ private static string GetProgramVersion()
while(version.EndsWith(".0") && version.Count(ch => ch is '.') > 1) {
version = version[..^2];
}
return version;
return PREVIEW_LEVEL == 0 ? version : version + " preview " + PREVIEW_LEVEL;
}
}
}

0 comments on commit 865d9fc

Please sign in to comment.