aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.cs')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.cs28
1 files changed, 13 insertions, 15 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.cs
index 0cd2510..6ad1bb1 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.cs
@@ -63,24 +63,22 @@ namespace TimeHACK.OS.Win95.Win95Apps
String ReadDataFile(String reqDirectory, Boolean returnYesIfProtected = false) {
String Val = "";
- try
- {
- String directoryFileInfo;
- directoryFileInfo = File.ReadAllText(reqDirectory);
- FileSystemFolderInfo toRead = new FileSystemFolderInfo();
- toRead = JsonConvert.DeserializeObject<FileSystemFolderInfo>(directoryFileInfo);
+ String directoryFileInfo;
+ directoryFileInfo = File.ReadAllText(reqDirectory);
+ FileSystemFolderInfo toRead = new FileSystemFolderInfo();
+ toRead = JsonConvert.DeserializeObject<FileSystemFolderInfo>(directoryFileInfo);
- if (returnYesIfProtected == true)
+ MessageBox.Show(toRead.label);
+ if (returnYesIfProtected == true)
+ {
+ if (toRead.Isprotected == true)
{
- if (toRead.Isprotected == true)
- {
- return "yes";
- }
- } else {
- return toRead.label;
+ return "yes";
}
- } catch (Exception ex) {
-
+ }
+ else
+ {
+ return toRead.label;
}
return Val;
}