From 2cd61469e238da8418f93ee01f375f2871e46bb5 Mon Sep 17 00:00:00 2001 From: dexy Date: Tue, 25 Feb 2020 15:59:32 +1100 Subject: [PATCH] Changed namespace of Peds and Vehicle forms, to fix crash in standalone exes --- CodeWalker.Peds/Properties/launchSettings.json | 8 ++++++++ CodeWalker.Vehicles/Properties/launchSettings.json | 8 ++++++++ CodeWalker/PedsForm.Designer.cs | 2 +- CodeWalker/PedsForm.cs | 2 +- CodeWalker/Program.cs | 4 ++-- CodeWalker/VehicleForm.Designer.cs | 2 +- CodeWalker/VehicleForm.cs | 2 +- 7 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 CodeWalker.Peds/Properties/launchSettings.json create mode 100644 CodeWalker.Vehicles/Properties/launchSettings.json diff --git a/CodeWalker.Peds/Properties/launchSettings.json b/CodeWalker.Peds/Properties/launchSettings.json new file mode 100644 index 0000000..6721832 --- /dev/null +++ b/CodeWalker.Peds/Properties/launchSettings.json @@ -0,0 +1,8 @@ +{ + "profiles": { + "CodeWalker.Peds": { + "commandName": "Project", + "workingDirectory": ".." + } + } +} \ No newline at end of file diff --git a/CodeWalker.Vehicles/Properties/launchSettings.json b/CodeWalker.Vehicles/Properties/launchSettings.json new file mode 100644 index 0000000..068ebae --- /dev/null +++ b/CodeWalker.Vehicles/Properties/launchSettings.json @@ -0,0 +1,8 @@ +{ + "profiles": { + "CodeWalker.Vehicles": { + "commandName": "Project", + "workingDirectory": ".." + } + } +} \ No newline at end of file diff --git a/CodeWalker/PedsForm.Designer.cs b/CodeWalker/PedsForm.Designer.cs index 01f16a2..57c3f4c 100644 --- a/CodeWalker/PedsForm.Designer.cs +++ b/CodeWalker/PedsForm.Designer.cs @@ -1,4 +1,4 @@ -namespace CodeWalker.Peds +namespace CodeWalker { partial class PedsForm { diff --git a/CodeWalker/PedsForm.cs b/CodeWalker/PedsForm.cs index 564bcfa..a7d0dd3 100644 --- a/CodeWalker/PedsForm.cs +++ b/CodeWalker/PedsForm.cs @@ -18,7 +18,7 @@ using System.Threading.Tasks; using System.Windows.Forms; using Color = SharpDX.Color; -namespace CodeWalker.Peds +namespace CodeWalker { public partial class PedsForm : Form, DXForm { diff --git a/CodeWalker/Program.cs b/CodeWalker/Program.cs index 4fb7d70..14a151f 100644 --- a/CodeWalker/Program.cs +++ b/CodeWalker/Program.cs @@ -83,11 +83,11 @@ namespace CodeWalker } else if (vehiclesmode) { - Application.Run(new Vehicles.VehicleForm()); + Application.Run(new VehicleForm()); } else if (pedsmode) { - Application.Run(new Peds.PedsForm()); + Application.Run(new PedsForm()); } else { diff --git a/CodeWalker/VehicleForm.Designer.cs b/CodeWalker/VehicleForm.Designer.cs index 43a42e0..8b6a598 100644 --- a/CodeWalker/VehicleForm.Designer.cs +++ b/CodeWalker/VehicleForm.Designer.cs @@ -1,4 +1,4 @@ -namespace CodeWalker.Vehicles +namespace CodeWalker { partial class VehicleForm { diff --git a/CodeWalker/VehicleForm.cs b/CodeWalker/VehicleForm.cs index ca2db00..62aeb08 100644 --- a/CodeWalker/VehicleForm.cs +++ b/CodeWalker/VehicleForm.cs @@ -18,7 +18,7 @@ using System.Threading.Tasks; using System.Windows.Forms; using Color = SharpDX.Color; -namespace CodeWalker.Vehicles +namespace CodeWalker { public partial class VehicleForm : Form, DXForm {