Skip to content

Commit

Permalink
fixed output extension bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lordvoldem0rt committed Feb 23, 2023
1 parent f7f0201 commit 5951baf
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ To be announced

### Fixed

## [v0.2.3] - 2023-02-23

Fixed bug where output file wasn't changing extension

## [v0.2.2] - 2023-02-23

Few small quality of life tweaks
Expand Down
2 changes: 1 addition & 1 deletion Parseltongue.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<AssemblyName>parseltongue</AssemblyName>
<RootNamespace>parseltongue</RootNamespace>
<IsPackable>false</IsPackable>
<Version>0.2.2</Version>
<Version>0.2.3</Version>
<ApplicationIcon>snake-head.ico</ApplicationIcon>
</PropertyGroup>

Expand Down
4 changes: 2 additions & 2 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ private static void WriteBinFromDictionary(string file, Dictionary<string, strin
return;
}

string modifiedPath = AddSuffix(file,"-modified");
string modifiedPath = Path.ChangeExtension(AddSuffix(file,"-modified"), ".bin");

using (var fs = File.Open(modifiedPath, FileMode.Create))
{
Expand Down Expand Up @@ -263,7 +263,7 @@ private static void BinToJson(FileInfo file)

var jsonString = JsonConvert.SerializeObject(entries, Formatting.Indented);

string modifiedPath = AddSuffix(file.FullName,"-modified");
string modifiedPath = Path.ChangeExtension(AddSuffix(file.FullName,"-modified"), ".json");
File.WriteAllText(modifiedPath, jsonString);
}
}
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

### [v0.2.3] - 2023-02-23

Fixed bug where output file wasn't changing extension

### [v0.2.2] - 2023-02-23

Few small quality of life tweaks
Expand Down

0 comments on commit 5951baf

Please sign in to comment.