diff -r Imagine! Updater/Imagine Magic Patcher/configurations.cs Imagine! Updater Mono/Imagine Magic Patcher/configurations.cs
29c29
< public static string patchPath = "http://yourDomain.FreeHosterName.com/";
---
> public static string patchPath = "http://localhost/update/";
32c32,33
< public static string savePath = Path.GetDirectoryName(Application.ExecutablePath) + "\\bin";
---
> // Use Path.DirectorySeparatorChar instead of \ for directory paths or it will not work on Mac or Linux
> public static string savePath = Path.GetDirectoryName(Application.ExecutablePath) + Path.DirectorySeparatorChar + "bin";
35c36
< public static string ExecutableName = "ProgramName.exe";
---
> public static string ExecutableName = "test.exe";
44c45
< public static string xmlRootName = "ProgramNameWithoutSpaces";
---
> public static string xmlRootName = "Test";
diff -r Imagine! Updater/Imagine Magic Patcher/Form1.cs Imagine! Updater Mono/Imagine Magic Patcher/Form1.cs
88,95c88
< if (this.contentsTextBox.InvokeRequired)
< {
< updateContentsText d = new updateContentsText(notify);
< this.Invoke(d, new object[] { notification });
< }
< else
< {
< if (notifications[notifications.Length - 1] != null)
---
> if (notifications[notifications.Length - 1] != null)
111,112c104,106
< contentsTextBox.Lines = notifications;
< }
---
> {
> contentsTextBox.Text = string.Join("\n", notifications);
> }
120,128c114
< if (this.contentsTextBox.InvokeRequired)
< {
< patchButtonDel d = new patchButtonDel(patchButtonEnabled);
< this.Invoke(d, new object[] { boolean });
< }
< else
< {
< patchButton.Enabled = boolean;
< }
---
> patchButton.Enabled = boolean;
136,144c122
< if (this.contentsTextBox.InvokeRequired)
< {
< playButtonDel d = new playButtonDel(playButtonEnabled);
< this.Invoke(d, new object[] { boolean });
< }
< else
< {
< playButton.Enabled = boolean;
< }
---
> playButton.Enabled = boolean;
152,161c130,131
< if (this.patchlognotesButton.InvokeRequired)
< {
< patchlognotesButtonDel d = new patchlognotesButtonDel(patchlognotesButtonVisible);
< this.Invoke(d, new object[] { boolean });
< }
< else
< {
< patchlognotesButton.Visible = boolean;
< resize();
< }
---
> patchlognotesButton.Visible = boolean;
> resize();
169c139
< if (this.patchlognotesButton.InvokeRequired)
---
> if (patchlognotesButton.Text == "Patchnotes")
171,172c141,142
< patchlognotesButtonSwitchDel d = new patchlognotesButtonSwitchDel(patchlognotesButtonSwitch);
< this.Invoke(d, new object[] { });
---
> patchlognotesButton.Text = "Patchlog";
> contentsTextBox.Text = patchnotes;
176,185c146,147
< if (patchlognotesButton.Text == "Patchnotes")
< {
< patchlognotesButton.Text = "Patchlog";
< contentsTextBox.Text = patchnotes;
< }
< else
< {
< patchlognotesButton.Text = "Patchnotes";
< contentsTextBox.Lines = notifications;
< }
---
> patchlognotesButton.Text = "Patchnotes";
> contentsTextBox.Lines = notifications;
190,198c152
< if (this.progressBar.InvokeRequired)
< {
< updateProgressBarDel d = new updateProgressBarDel(updateProgressBar);
< this.Invoke(d, new object[] {});
< }
< else
< {
< progressBar.Value = (alreadyProcessedFiles * 1000) / numberOfFiles;
< }
---
> progressBar.Value = (alreadyProcessedFiles * 1000) / numberOfFiles;
247c201
< if (File.Exists(savePath + "\\" + ExecutableName))
---
> if (File.Exists(savePath + Path.DirectorySeparatorChar + ExecutableName))
298,302c252
< }
< else
< {
< patch();
< }
---
> }
325c275
< downloadFile(uriTextBox.Text.Substring(0, uriTextBox.Text.Length - parts[parts.Length-1].Length), parts[parts.Length-1], Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "\\");
---
> downloadFile(uriTextBox.Text.Substring(0, uriTextBox.Text.Length - parts[parts.Length-1].Length), parts[parts.Length-1], Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + Path.DirectorySeparatorChar);
378,381c328,331
< if (File.Exists(desktopPath + "\\register.xml")) //"C:\Users\Felix Ernst\Desktop\register.xml"))
< File.Delete(desktopPath + "\\register.xml");
< doc.Save(desktopPath + "\\register.xml");
< notify("Created " + desktopPath + "\\register.xml");
---
> if (File.Exists(desktopPath + Path.DirectorySeparatorChar +"register.xml")) //"C:\Users\Felix Ernst\Desktop\register.xml"))
> File.Delete(desktopPath + Path.DirectorySeparatorChar +"register.xml");
> doc.Save(desktopPath + Path.DirectorySeparatorChar +"register.xml");
> notify("Created " + desktopPath + Path.DirectorySeparatorChar +"register.xml");
526c476
< if (File.Exists(savePath + "\\" + savedFile.Attributes.Item(0).Value))
---
> if (File.Exists(savePath + Path.DirectorySeparatorChar + savedFile.Attributes.Item(0).Value))
529c479
< File.Delete(savePath + "\\" + savedFile.Attributes.GetNamedItem("name").InnerXml);
---
> File.Delete(savePath + Path.DirectorySeparatorChar + savedFile.Attributes.GetNamedItem("name").InnerXml);
549c499
< downloadFile(patchPath, patchFile.Attributes.Item(0).Value.Replace("+", " "), savePath + "\\");
---
> downloadFile(patchPath, patchFile.Attributes.Item(0).Value.Replace("+", " "), savePath + Path.DirectorySeparatorChar);
563c513
< if (Directory.Exists(savePath + "\\" + savedFolder.Attributes.Item(0).Value))
---
> if (Directory.Exists(savePath + Path.DirectorySeparatorChar + savedFolder.Attributes.Item(0).Value))
566c516
< Directory.Delete(savePath + "\\" + savedFolder.Attributes.Item(0).Value, true);
---
> Directory.Delete(savePath + Path.DirectorySeparatorChar + savedFolder.Attributes.Item(0).Value, true);
581,582c531
< Directory.CreateDirectory(savePath + "\\" + patchFolder.Attributes.Item(0).Value);
< string PathTest = savePath + patchFolder.Attributes.Item(0).Value;
---
> Directory.CreateDirectory(savePath + Path.DirectorySeparatorChar + patchFolder.Attributes.Item(0).Value);
584c533
< patchPath + patchFolder.Attributes.Item(0).Value + "/", savePath + "\\" + patchFolder.Attributes.Item(0).Value);
---
> patchPath + patchFolder.Attributes.Item(0).Value + "/", savePath + Path.DirectorySeparatorChar + patchFolder.Attributes.Item(0).Value);
598c547
< System.Diagnostics.Process.Start(savePath + "\\" + ExecutableName);
---
> System.Diagnostics.Process.Start(savePath + Path.DirectorySeparatorChar + ExecutableName);
diff -r Imagine! Updater/Imagine Magic Patcher/Form1.Designer.cs Imagine! Updater Mono/Imagine Magic Patcher/Form1.Designer.cs
31d30
< System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
154d152
< this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
Only in Imagine! Updater Mono/Imagine Magic Patcher: Form1.resources
diff -r Imagine! Updater/Imagine Magic Patcher/Imagine! Updater.csproj Imagine! Updater Mono/Imagine Magic Patcher/Imagine! Updater.csproj
13,14d12
< v4.0
< Client
65,66d62
<
<
69d64
<
71,72d65
<
<
75a69,72
>
>
>
>
Only in Imagine! Updater Mono/Imagine Magic Patcher/Properties: Resources.resources
diff -r Imagine! Updater/Imagine! Updater.userprefs Imagine! Updater Mono/Imagine! Updater.userprefs
6c6
<
---
>
8a9
>