Mud Engine:
- UIRealmControl now checks to make sure the Zone directory exists prior to accessing it. Fixes the exception being thrown due to it.
This commit is contained in:
parent
8d5a2b184c
commit
8b55b95dc1
1 changed files with 3 additions and 0 deletions
|
@ -63,6 +63,9 @@ namespace MudDesigner.MudEngine.UITypeEditors
|
|||
lstRealmMembers.Items.Add(zone);
|
||||
}
|
||||
|
||||
if (!Directory.Exists(zonePath))
|
||||
Directory.CreateDirectory(zonePath);
|
||||
|
||||
string[] zones = Directory.GetFiles(zonePath, "*.zone", SearchOption.AllDirectories);
|
||||
|
||||
foreach (string zone in zones)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue