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
path: root/Apps
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-10-06 05:58:08 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-10-06 05:58:08 +0300
commita45674adbbe6c83989c31b2d9192d729ce2c0ad2 (patch)
treeda2ce26c620ae75738ec3823fc5b2fee9c6669db /Apps
parent2f3c36218b419b547f2166bd3a3d973246858e33 (diff)
CheckBoxList replaced with ListView, group actions added. Release candindate #2.
Diffstat (limited to 'Apps')
-rw-r--r--Apps/NesMiniApplication.cs8
1 files changed, 3 insertions, 5 deletions
diff --git a/Apps/NesMiniApplication.cs b/Apps/NesMiniApplication.cs
index c1ee4eb2..a96f7b67 100644
--- a/Apps/NesMiniApplication.cs
+++ b/Apps/NesMiniApplication.cs
@@ -539,11 +539,7 @@ namespace com.clusterrr.hakchi_gui
DirectoryInfo dir = new DirectoryInfo(path);
if (!dir.Exists)
- {
- throw new DirectoryNotFoundException(
- "Source directory does not exist or could not be found: "
- + path);
- }
+ return 0;
DirectoryInfo[] dirs = dir.GetDirectories();
FileInfo[] files = dir.GetFiles();
@@ -604,6 +600,7 @@ namespace com.clusterrr.hakchi_gui
public string[] CompressPossible()
{
+ if (!Directory.Exists(GamePath)) return new string[0];
var result = new List<string>();
var exec = Regex.Replace(Command, "['/\\\"]", " ") + " ";
var files = Directory.GetFiles(GamePath, "*.*", SearchOption.TopDirectoryOnly);
@@ -621,6 +618,7 @@ namespace com.clusterrr.hakchi_gui
public string[] DecompressPossible()
{
+ if (!Directory.Exists(GamePath)) return new string[0];
var result = new List<string>();
var exec = Regex.Replace(Command, "['/\\\"]", " ") + " ";
var files = Directory.GetFiles(GamePath, "*.7z", SearchOption.TopDirectoryOnly);