Finally have a working parser for IAP scripts
This commit is contained in:
parent
9d8b8bcf95
commit
d0cb32b089
@ -19,6 +19,7 @@ namespace UniversalEditor.Editors.RebelSoftware.InstallationScript
|
||||
public InstallationScriptEditor()
|
||||
{
|
||||
InitializeComponent();
|
||||
tvExplorer.PopulateSystemIcons();
|
||||
}
|
||||
|
||||
private static UserInterface.EditorReference _er = null;
|
||||
@ -42,6 +43,7 @@ namespace UniversalEditor.Editors.RebelSoftware.InstallationScript
|
||||
if (script == null) return;
|
||||
|
||||
TreeNode nodeDialogs = new TreeNode("Dialogs");
|
||||
nodeDialogs.ImageKey = "generic-folder-closed";
|
||||
|
||||
foreach (ISDialog dialog in script.Dialogs)
|
||||
{
|
||||
@ -50,6 +52,10 @@ namespace UniversalEditor.Editors.RebelSoftware.InstallationScript
|
||||
{
|
||||
tn.Text = "CopyFiles";
|
||||
}
|
||||
else if (dialog is DestinationDialog)
|
||||
{
|
||||
tn.Text = "Destination";
|
||||
}
|
||||
else if (dialog is FinishDialog)
|
||||
{
|
||||
tn.Text = "Finish";
|
||||
|
||||
@ -101,7 +101,7 @@ namespace UniversalEditor.DataFormats.PropertyList.ExtensibleConfiguration
|
||||
nextString = string.Empty;
|
||||
foundRealChar = false;
|
||||
}
|
||||
else if (cw == mvarSettings.PropertySeparator)
|
||||
else if (cw == mvarSettings.PropertySeparator && (mvarSettings.AllowTopLevelProperties || nextGroup != null))
|
||||
{
|
||||
if (nextPropertyName != null)
|
||||
{
|
||||
|
||||
@ -37,7 +37,7 @@ namespace UniversalEditor.DataFormats.RebelSoftware.InstallationScript
|
||||
this.Settings.PropertyNameValueSeparator = " ";
|
||||
|
||||
// Property separator is the newline character
|
||||
this.Settings.PropertySeparator = "\r\n";
|
||||
this.Settings.PropertySeparator = "\n";
|
||||
|
||||
// Do not allow top-level properties as property name/value separator (' ') conflicts with group definitions with spaces in them
|
||||
this.Settings.AllowTopLevelProperties = false;
|
||||
@ -59,6 +59,7 @@ namespace UniversalEditor.DataFormats.RebelSoftware.InstallationScript
|
||||
{
|
||||
case "IA_Globals":
|
||||
{
|
||||
if (group.Properties["version"] != null) script.ProductVersion = new Version(group.Properties["version"].Value.ToString());
|
||||
break;
|
||||
}
|
||||
case "IA_WelcomeDialog":
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user