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-20 14:01:35 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-10-20 14:01:35 +0300
commit7d014b7da4b6d2af1e62ef7f665342cee0e1b467 (patch)
treed153607946b3abc76a1de188063ed065be964ee0 /Apps
parent88f3b50c9004d12a8603533bb94b22ee39da158b (diff)
Fixes: compression and spaces
Diffstat (limited to 'Apps')
-rw-r--r--Apps/NesMiniApplication.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/Apps/NesMiniApplication.cs b/Apps/NesMiniApplication.cs
index a45d43e1..8c6983be 100644
--- a/Apps/NesMiniApplication.cs
+++ b/Apps/NesMiniApplication.cs
@@ -658,15 +658,15 @@ namespace com.clusterrr.hakchi_gui
{
if (!Directory.Exists(GamePath)) return new string[0];
var result = new List<string>();
- var exec = Regex.Replace(Command, "['/\\\"]", " ") + " ";
+ var exec = Regex.Replace(Command, "[/\\\"]", " ") + " ";
var files = Directory.GetFiles(GamePath, "*.*", SearchOption.TopDirectoryOnly);
foreach (var file in files)
{
- if (System.IO.Path.GetExtension(file).ToLower() == ".7z")
+ if (Path.GetExtension(file).ToLower() == ".7z")
continue;
- if (System.IO.Path.GetExtension(file).ToLower() == ".zip")
+ if (Path.GetExtension(file).ToLower() == ".zip")
continue;
- if (exec.Contains(" " + System.IO.Path.GetFileName(file) + " "))
+ if (exec.Contains(" " + Path.GetFileName(file) + " "))
result.Add(file);
}
return result.ToArray();
@@ -676,7 +676,7 @@ namespace com.clusterrr.hakchi_gui
{
if (!Directory.Exists(GamePath)) return new string[0];
var result = new List<string>();
- var exec = Regex.Replace(Command, "['/\\\"]", " ") + " ";
+ var exec = Regex.Replace(Command, "[/\\\"]", " ") + " ";
var files = Directory.GetFiles(GamePath, "*.7z", SearchOption.TopDirectoryOnly);
foreach (var file in files)
{