diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-10-20 14:01:35 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-10-20 14:01:35 +0300 |
commit | 7d014b7da4b6d2af1e62ef7f665342cee0e1b467 (patch) | |
tree | d153607946b3abc76a1de188063ed065be964ee0 /Apps | |
parent | 88f3b50c9004d12a8603533bb94b22ee39da158b (diff) |
Fixes: compression and spaces
Diffstat (limited to 'Apps')
-rw-r--r-- | Apps/NesMiniApplication.cs | 10 |
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)
{
|