Rename root namespace to LBPUnion.UnionPatcher

This commit is contained in:
jvyden 2021-10-21 16:53:27 -04:00
commit 91dfa33a7a
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
13 changed files with 23 additions and 15 deletions

View file

@ -1,4 +1,4 @@
namespace UnionPatcher.Gui.Linux { namespace LBPUnion.UnionPatcher.Gui.Linux {
public static class Program { public static class Program {
public static void Main() { public static void Main() {
Gui.Show(); Gui.Show();

View file

@ -3,6 +3,8 @@
<PropertyGroup> <PropertyGroup>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework> <TargetFramework>net5.0</TargetFramework>
<AssemblyName>LBPUnion.UnionPatcher.Gui.Linux</AssemblyName>
<RootNamespace>LBPUnion.UnionPatcher.Gui.Linux</RootNamespace>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View file

@ -1,4 +1,4 @@
namespace UnionPatcher.Gui.MacOS { namespace LBPUnion.UnionPatcher.Gui.MacOS {
public static class Program { public static class Program {
public static void Main() { public static void Main() {
Gui.Show(); Gui.Show();

View file

@ -4,6 +4,8 @@
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework> <TargetFramework>net5.0</TargetFramework>
<RuntimeIdentifiers>osx-x64</RuntimeIdentifiers> <RuntimeIdentifiers>osx-x64</RuntimeIdentifiers>
<AssemblyName>LBPUnion.UnionPatcher.Gui.MacOS</AssemblyName>
<RootNamespace>LBPUnion.UnionPatcher.Gui.MacOS</RootNamespace>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View file

@ -1,6 +1,6 @@
using System; using System;
namespace UnionPatcher.Gui.Windows { namespace LBPUnion.UnionPatcher.Gui.Windows {
public static class Program { public static class Program {
[STAThread] [STAThread]
public static void Main() { public static void Main() {

View file

@ -3,7 +3,8 @@
<PropertyGroup> <PropertyGroup>
<OutputType>WinExe</OutputType> <OutputType>WinExe</OutputType>
<TargetFramework>net5.0-windows</TargetFramework> <TargetFramework>net5.0-windows</TargetFramework>
<RootNamespace>UnionPatcher.Gui.Windows</RootNamespace> <RootNamespace>LBPUnion.UnionPatcher.Gui.Windows</RootNamespace>
<AssemblyName>LBPUnion.UnionPatcher.Gui.Windows</AssemblyName>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View file

@ -1,6 +1,6 @@
using System; using System;
namespace UnionPatcher.Gui { namespace LBPUnion.UnionPatcher.Gui {
public static class EasterEgg { public static class EasterEgg {
private static bool? restitch = null; private static bool? restitch = null;

View file

@ -1,6 +1,6 @@
using Eto.Forms; using Eto.Forms;
namespace UnionPatcher.Gui { namespace LBPUnion.UnionPatcher.Gui {
public static class Gui { public static class Gui {
public static void Show() { public static void Show() {
new Application().Run(new MainForm()); new Application().Run(new MainForm());

View file

@ -4,7 +4,7 @@ using Eto;
using Eto.Drawing; using Eto.Drawing;
using Eto.Forms; using Eto.Forms;
namespace UnionPatcher.Gui { namespace LBPUnion.UnionPatcher.Gui {
public class MainForm : Form { public class MainForm : Form {
private readonly FilePicker filePicker; private readonly FilePicker filePicker;
private readonly TextBox serverUrl; private readonly TextBox serverUrl;
@ -76,7 +76,7 @@ namespace UnionPatcher.Gui {
return; return;
} }
CreateOkDialog("Success!", "The Server URL has been patched to " + this.serverUrl.Text).ShowModal(); this.CreateOkDialog("Success!", "The Server URL has been patched to " + this.serverUrl.Text).ShowModal();
}; };
return control; return control;
@ -108,19 +108,19 @@ namespace UnionPatcher.Gui {
Rows = { Rows = {
new TableRow( new TableRow(
new TableCell(new Label { Text = "EBOOT.elf: ", VerticalAlignment = VerticalAlignment.Center }), new TableCell(new Label { Text = "EBOOT.elf: ", VerticalAlignment = VerticalAlignment.Center }),
new TableCell(filePicker = new FilePicker { TabIndex = 0 }) new TableCell(this.filePicker = new FilePicker { TabIndex = 0 })
), ),
new TableRow( new TableRow(
new TableCell(new Label { Text = "Server URL: ", VerticalAlignment = VerticalAlignment.Center }), new TableCell(new Label { Text = "Server URL: ", VerticalAlignment = VerticalAlignment.Center }),
new TableCell(serverUrl = new TextBox { TabIndex = 1 }) new TableCell(this.serverUrl = new TextBox { TabIndex = 1 })
), ),
new TableRow( new TableRow(
new TableCell(new Label { Text = "Output filename: ", VerticalAlignment = VerticalAlignment.Center }), new TableCell(new Label { Text = "Output filename: ", VerticalAlignment = VerticalAlignment.Center }),
new TableCell(this.outputFileName = new FilePicker { TabIndex = 2, FileAction = FileAction.SaveFile }) new TableCell(this.outputFileName = new FilePicker { TabIndex = 2, FileAction = FileAction.SaveFile })
), ),
new TableRow( new TableRow(
new TableCell(CreateHelpButton(4)), new TableCell(this.CreateHelpButton(4)),
new TableCell(CreatePatchButton(3)) new TableCell(this.CreatePatchButton(3))
), ),
}, },
}; };

View file

@ -2,7 +2,8 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>net5.0</TargetFramework> <TargetFramework>net5.0</TargetFramework>
<RootNamespace>UnionPatcher.Gui</RootNamespace> <RootNamespace>LBPUnion.UnionPatcher.Gui</RootNamespace>
<AssemblyName>LBPUnion.UnionPatcher.Gui</AssemblyName>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View file

@ -2,7 +2,7 @@ using System;
using System.IO; using System.IO;
using System.Text; using System.Text;
namespace UnionPatcher { namespace LBPUnion.UnionPatcher {
public static class Patcher { public static class Patcher {
private static readonly string[] ToBePatched = { private static readonly string[] ToBePatched = {
"https://littlebigplanetps3.online.scee.com:10061/LITTLEBIGPLANETPS3_XML", "https://littlebigplanetps3.online.scee.com:10061/LITTLEBIGPLANETPS3_XML",

View file

@ -2,7 +2,7 @@
using System.Diagnostics; using System.Diagnostics;
using System.IO; using System.IO;
namespace UnionPatcher { namespace LBPUnion.UnionPatcher {
public static class Program { public static class Program {
public const string Version = "1.0"; public const string Version = "1.0";

View file

@ -3,6 +3,8 @@
<PropertyGroup> <PropertyGroup>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework> <TargetFramework>net5.0</TargetFramework>
<AssemblyName>LBPUnion.UnionPatcher</AssemblyName>
<RootNamespace>LBPUnion.UnionPatcher</RootNamespace>
</PropertyGroup> </PropertyGroup>
</Project> </Project>