Skip to content

Commit

Permalink
v0.1.1 Release
Browse files Browse the repository at this point in the history
Automatically back up files when they are modified.
  • Loading branch information
Starfelll committed Apr 18, 2024
1 parent a7a7531 commit d67e4a9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion NekoVpk/App.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public partial class App : Application
{
public static readonly NLog.Logger Logger = NLog.LogManager.GetCurrentClassLogger();

public const string Version = "0.1.0.0";
public const string Version = "0.1.1.0";

public const string VersionSuffix = "-Beta";

Expand Down
8 changes: 5 additions & 3 deletions NekoVpk/Views/MainView.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -326,16 +326,18 @@ private void Button_AssetTagModifiedPanel_Apply(object? sender, Avalonia.Interac
tmpFile.Delete();
}


FileInfo srcPakFile = new(pkg.FileName + ".vpk");
string originFilePath = pkg.FileName + ".vpk";
FileInfo srcPakFile = new(originFilePath);
pkg.Write(tmpFile.FullName, 1);
pkg.Dispose();

srcPakFile.MoveTo(Path.ChangeExtension(originFilePath, ".vpk.nekobak"), true);

// overwrite origin file
tmpFile.Refresh();
tmpFile.LastWriteTime = srcPakFile.LastWriteTime;
tmpFile.CreationTime = srcPakFile.CreationTime;
tmpFile.MoveTo(srcPakFile.FullName, true);
tmpFile.MoveTo(originFilePath, true);


// update UI
Expand Down
2 changes: 2 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@


## changelog
#### v0.1.1
- Automatically back up files when they are modified.
#### v0.1.0
- Breaking updates, mods that disable some content need to be fully enabled in the old version to be recognized in the new version.
- Enable file compression for disabled content.
Expand Down

0 comments on commit d67e4a9

Please sign in to comment.