MUDEngine.ProjectInformation.InitialLocation is no longer visible within the Project Manager.
MudDesigner no longer checks for the existance of the Data directory, this is handled by each editor independently. Project Manager was checking the wrong directory for the project file, thus never letting the project file be loaded during startup.
This commit is contained in:
parent
c44c73c337
commit
6abf61aa63
3 changed files with 4 additions and 5 deletions
|
@ -74,6 +74,7 @@ namespace MUDEngine
|
|||
//TODO: Add Party support.
|
||||
#endregion
|
||||
|
||||
[Browsable(false)]
|
||||
public StartingLocation InitialLocation
|
||||
{
|
||||
get;
|
||||
|
|
|
@ -15,13 +15,11 @@ namespace MudDesigner
|
|||
public const int VersionMinor = 0;
|
||||
public const int VersionRevision = 0;
|
||||
public string version = VersionMajor.ToString() + "." + VersionMinor.ToString() + "." + VersionRevision.ToString();
|
||||
|
||||
public frmMain()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.Text = "Mud Designer Beta " + version;
|
||||
|
||||
if (!System.IO.Directory.Exists(Application.StartupPath + "\\Data"))
|
||||
System.IO.Directory.CreateDirectory(Application.StartupPath + "\\Data");
|
||||
}
|
||||
|
||||
private void btnProjectManager_Click(object sender, EventArgs e)
|
||||
|
|
|
@ -20,9 +20,9 @@ namespace Project_Manager
|
|||
MUDEngine.Engine.ValidateProjectPath(Application.StartupPath);
|
||||
|
||||
//check if a project file exists, or use the new instance
|
||||
if (System.IO.File.Exists(Application.StartupPath + @"\project.xml"))
|
||||
if (System.IO.File.Exists(Application.StartupPath + @"\Data\project.xml"))
|
||||
{
|
||||
project = (MUDEngine.ProjectInformation)MUDEngine.XmlSerialization.Load(Application.StartupPath + @"\project.xml", project);
|
||||
project = (MUDEngine.ProjectInformation)MUDEngine.XmlSerialization.Load(Application.StartupPath + @"\Data\project.xml", project);
|
||||
}
|
||||
|
||||
//run the app
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue