diff options
Diffstat (limited to 'Apps/NesMiniApplication.cs')
-rw-r--r-- | Apps/NesMiniApplication.cs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Apps/NesMiniApplication.cs b/Apps/NesMiniApplication.cs index 3b6a7ad5..10d1c2d1 100644 --- a/Apps/NesMiniApplication.cs +++ b/Apps/NesMiniApplication.cs @@ -631,10 +631,13 @@ namespace com.clusterrr.hakchi_gui return size;
}
- public long Size(string path = null)
+ public long Size()
+ {
+ return DirectorySize(GamePath);
+ }
+
+ public static long DirectorySize(string path)
{
- if (path == null)
- path = GamePath;
long size = 0;
// Get the subdirectories for the specified directory.
DirectoryInfo dir = new DirectoryInfo(path);
@@ -650,7 +653,7 @@ namespace com.clusterrr.hakchi_gui }
foreach (DirectoryInfo subdir in dirs)
{
- size += Size(subdir.FullName);
+ size += DirectorySize(subdir.FullName);
}
return size;
}
|