Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-03-29 01:25:16 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-03-29 01:25:16 +0300
commit24145e9db04513d15b7cb60f033a9e9d863f5de7 (patch)
treeb7c6f4edd6b12f7439d65c6a3cbbc8bfc67bc212 /NesMenuFolder.cs
parent99ad7ec16c71750a577b7604206864ed4b23da76 (diff)
On-the-fly tar archiving, it's using not so much memory now. And faster.
Diffstat (limited to 'NesMenuFolder.cs')
-rw-r--r--NesMenuFolder.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/NesMenuFolder.cs b/NesMenuFolder.cs
index 657ff3c7..1de924dd 100644
--- a/NesMenuFolder.cs
+++ b/NesMenuFolder.cs
@@ -205,7 +205,7 @@ namespace com.clusterrr.hakchi_gui
}
}
- public void Save(string path)
+ public long Save(string path)
{
Directory.CreateDirectory(path);
var ConfigPath = Path.Combine(path, Code + ".desktop");
@@ -255,6 +255,7 @@ namespace com.clusterrr.hakchi_gui
);
Image.Save(IconPath, ImageFormat.Png);
ImageThumbnail.Save(ThumnnailIconPath, ImageFormat.Png);
+ return new FileInfo(ConfigPath).Length + new FileInfo(IconPath).Length + new FileInfo(ThumnnailIconPath).Length;
}
public override string ToString()