diff --git a/InternalUpdater/InternalUpdater.csproj b/InternalUpdater/InternalUpdater.csproj
index d093553..88976b1 100644
--- a/InternalUpdater/InternalUpdater.csproj
+++ b/InternalUpdater/InternalUpdater.csproj
@@ -12,6 +12,21 @@
512
true
true
+ publish\
+ true
+ Disk
+ false
+ Foreground
+ 7
+ Days
+ false
+ false
+ true
+ 0
+ 1.0.0.%2a
+ false
+ false
+ true
AnyCPU
@@ -31,10 +46,33 @@
TRACE
prompt
4
+ true
InternalUpdater.Program
+
+
+ false
+
+
+ 7687A0E9F25BEFCB5EE943B02778E8E3F6308A33
+
+
+ true
+
+
+ PrimeHack.pfx
+
+
+ Internet
+
+
+ true
+
+
+ Properties\app.manifest
+
@@ -52,6 +90,20 @@
+
+
+
+
+
+ False
+ Microsoft .NET Framework 4.5.2 %28x86 and x64%29
+ true
+
+
+ False
+ .NET Framework 3.5 SP1
+ false
+
\ No newline at end of file
diff --git a/InternalUpdater/Program.cs b/InternalUpdater/Program.cs
index df65890..9f8f66a 100644
--- a/InternalUpdater/Program.cs
+++ b/InternalUpdater/Program.cs
@@ -13,6 +13,7 @@ namespace InternalUpdater
{
class Program
{
+ [STAThread]
static void Main(string[] args)
{
if (args.Length == 0)
diff --git a/InternalUpdater/Properties/app.manifest b/InternalUpdater/Properties/app.manifest
new file mode 100644
index 0000000..66981ed
--- /dev/null
+++ b/InternalUpdater/Properties/app.manifest
@@ -0,0 +1,70 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/PrimeHack Updater/InternalUpdater.cs b/PrimeHack Updater/InternalUpdater.cs
index c341f2b..d0393cf 100644
--- a/PrimeHack Updater/InternalUpdater.cs
+++ b/PrimeHack Updater/InternalUpdater.cs
@@ -24,7 +24,7 @@ public static void update()
string temp = Path.Combine(Path.GetTempPath(), "PrimeHack_InternalUpdater.exe");
- if (!File.Exists(temp))
+ if (!File.Exists(temp))
File.WriteAllBytes(temp, PrimeHack_Updater.Properties.Resources.InternalUpdater);
Process p = new Process();
diff --git a/PrimeHack Updater/PrimeHack Updater.csproj b/PrimeHack Updater/PrimeHack Updater.csproj
index e52d7b2..031aea0 100644
--- a/PrimeHack Updater/PrimeHack Updater.csproj
+++ b/PrimeHack Updater/PrimeHack Updater.csproj
@@ -16,6 +16,21 @@
true
+ publish\
+ true
+ Disk
+ false
+ Foreground
+ 7
+ Days
+ false
+ false
+ true
+ 0
+ 1.0.0.%2a
+ false
+ false
+ true
AnyCPU
@@ -35,6 +50,7 @@
TRACE
prompt
4
+ true
PrimeHack_Updator.Updater
@@ -43,14 +59,13 @@
metroid_prime.ico
- true
+ false
- false
+ true
-
-
+ PrimeHack.pfx
7687A0E9F25BEFCB5EE943B02778E8E3F6308A33
@@ -58,6 +73,15 @@
PrimeHack Updater_TemporaryKey.pfx
+
+ Internet
+
+
+ true
+
+
+ Properties\app.manifest
+
..\packages\Newtonsoft.Json.12.0.2\lib\net45\Newtonsoft.Json.dll
@@ -96,11 +120,19 @@
-
+
+
+
+
+
+
-
+
+
+
+
@@ -111,7 +143,18 @@
Resources.Designer.cs
-
+
+
+ False
+ Microsoft .NET Framework 4.5.2 %28x86 and x64%29
+ true
+
+
+ False
+ .NET Framework 3.5 SP1
+ false
+
+
diff --git a/PrimeHack Updater/Properties/Resources.Designer.cs b/PrimeHack Updater/Properties/Resources.Designer.cs
index 8067f97..a737340 100644
--- a/PrimeHack Updater/Properties/Resources.Designer.cs
+++ b/PrimeHack Updater/Properties/Resources.Designer.cs
@@ -69,5 +69,225 @@ internal static byte[] InternalUpdater {
return ((byte[])(obj));
}
}
+
+ ///
+ /// Looks up a localized string similar to [Profile]
+ ///Device = DInput/0/Keyboard Mouse
+ ///Buttons/A = `Click 0`
+ ///Buttons/B = SPACE
+ ///Buttons/1 = TAB
+ ///Buttons/2 = ESCAPE
+ ///Buttons/- = `Click 3`
+ ///Buttons/+ = `Click 4`
+ ///Buttons/Home = RETURN
+ ///IR/Center = 100.00000000000000
+ ///IR/Width = 25.000000000000000
+ ///IR/Height = 25.000000000000000
+ ///Swing/Up = LMENU
+ ///Tilt/Forward = LMENU
+ ///Extension = Nunchuk
+ ///Nunchuk/Buttons/C = LCONTROL
+ ///Nunchuk/Buttons/Z = `Click 1`
+ ///Nunchuk/Stick/Up = W
+ ///Nunchuk/Stick/Down = S
+ ///Nunchuk/Stick/Left = A
+ ///Nunchuk/Stick/Right = D
+ ///D-Pad/D [rest of string was truncated]";.
+ ///
+ internal static string Mendelli {
+ get {
+ return ResourceManager.GetString("Mendelli", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to ///PRIMEHACK MANUAL\\\
+ ///
+ ///Menus:
+ ///
+ ///Mouse = Menu cursor
+ ///Left Mouse Button = Menu accept
+ ///Space Bar = Menu cancel/back
+ ///
+ ///In-game:
+ ///
+ ///WASD = Move
+ ///Mouse = Aim
+ ///Right Mouse Button (Hold) = Lock/Scan/Spider Ball
+ ///Left Mouse Button = Fire (Hold for charge beam)
+ ///F = Missile
+ ///Q = Visor Selection
+ ///E = Beam Selection
+ ///Tab = Map
+ ///Esc = Pause
+ ///Space Bar = Jump/Dodge
+ ///Left Alt = Morph Ball jump
+ ///Left Ctrl = Morph Ball
+ ///Space Bar (Hold) = Boost Ball
+ ///
+ ///Notes:
+ ///Visors and beams have no binds by default. You will have [rest of string was truncated]";.
+ ///
+ internal static string Mendelli_Manual {
+ get {
+ return ResourceManager.GetString("Mendelli_Manual", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to [Profile]
+ ///Device = DInput/0/Keyboard Mouse
+ ///Buttons/A = `Click 0`
+ ///Buttons/B = SPACE
+ ///Buttons/1 = `NUMPAD1`
+ ///Buttons/2 = `NUMPAD2`
+ ///Buttons/- = E
+ ///Buttons/+ = R
+ ///Buttons/Home = LMENU&RETURN
+ ///IR/Center = 100.00000000000000
+ ///IR/Width = 25.000000000000000
+ ///IR/Height = 25.000000000000000
+ ///Extension = Nunchuk
+ ///Nunchuk/Buttons/C = LSHIFT
+ ///Nunchuk/Buttons/Z = `Click 3`
+ ///Nunchuk/Stick/Up = W
+ ///Nunchuk/Stick/Down = S
+ ///Nunchuk/Stick/Left = A
+ ///Nunchuk/Stick/Right = D
+ ///D-Pad/Down = `Click 1`
+ ///.
+ ///
+ internal static string Metroid_Prime_Trilogy_v1 {
+ get {
+ return ResourceManager.GetString("Metroid_Prime_Trilogy_v1", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to ///PRIMEHACK MANUAL\\\
+ /// (METROID PRIME TRILOGY V1)
+ ///
+ ///Menus:
+ ///
+ ///Mouse = Menu cursor
+ ///Left Mouse Button = Menu accept
+ ///Space Bar = Menu cancel/back
+ ///
+ ///In-game:
+ ///
+ ///WASD = Move
+ ///Mouse = Aim
+ ///Mouse Button 3 (Hold) = Lock/Scan/Spider Ball
+ ///Left Mouse Button = Fire (Hold for charge beam)
+ ///Right Mouse Button = Missile
+ ///E = Visor Selection
+ ///R = Beam Selection
+ ///Numpad 1 = Map
+ ///Numpad 2 = Pause
+ ///Space Bar = Jump/Dodge
+ ///Left Alt = Morph Ball jump
+ ///Left Shift = Morph Ball
+ ///Space Bar (Hold) = Boost Ball
+ ///
+ ///Notes: [rest of string was truncated]";.
+ ///
+ internal static string Metroid_Prime_Trilogy_v1_Manual {
+ get {
+ return ResourceManager.GetString("Metroid_Prime_Trilogy_v1_Manual", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to [Profile]
+ ///Device = DInput/0/Keyboard Mouse
+ ///Buttons/A = `Click 0`
+ ///Buttons/B = SPACE
+ ///Buttons/1 = M
+ ///Buttons/2 = I
+ ///Buttons/- = E
+ ///Buttons/+ = R
+ ///Buttons/Home = RETURN
+ ///IR/Center = 100.00000000000000
+ ///IR/Width = 25.000000000000000
+ ///IR/Height = 25.000000000000000
+ ///Extension = Nunchuk
+ ///Nunchuk/Buttons/C = LCONTROL
+ ///Nunchuk/Buttons/Z = `Click 1`
+ ///Nunchuk/Stick/Up = W
+ ///Nunchuk/Stick/Down = S
+ ///Nunchuk/Stick/Left = A
+ ///Nunchuk/Stick/Right = D
+ ///D-Pad/Down = `Click 3`
+ ///.
+ ///
+ internal static string Metroid_Prime_Trilogy_v2 {
+ get {
+ return ResourceManager.GetString("Metroid_Prime_Trilogy_v2", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to ///PRIMEHACK MANUAL\\\
+ /// (METROID PRIME TRILOGY V2)
+ ///
+ ///Menus:
+ ///
+ ///Mouse = Menu cursor
+ ///Left Mouse Button = Menu accept
+ ///Space Bar = Menu cancel/back
+ ///
+ ///In-game:
+ ///
+ ///WASD = Move
+ ///Mouse = Aim
+ ///Right Mouse Button (Hold) = Lock/Scan/Spider Ball
+ ///Left Mouse Button = Fire (Hold for charge beam)
+ ///Mouse Button 3 = Missile
+ ///E = Visor Selection
+ ///R = Beam Selection
+ ///M = Map
+ ///I = Pause
+ ///Space Bar = Jump/Dodge
+ ///Left Alt = Morph Ball jump
+ ///Left Ctrl = Morph Ball
+ ///Space Bar (Hold) = Boost Ball
+ ///
+ ///Notes:
+ ///Visors and be [rest of string was truncated]";.
+ ///
+ internal static string Metroid_Prime_Trilogy_v2_Manual {
+ get {
+ return ResourceManager.GetString("Metroid_Prime_Trilogy_v2_Manual", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to [Wiimote1]
+ ///Device = DInput/0/Keyboard Mouse
+ ///Buttons/A = `Click 2`
+ ///Buttons/B = SPACE
+ ///Buttons/1 = `NUMPAD1`
+ ///Buttons/2 = `NUMPAD2`
+ ///Buttons/- = MINUS
+ ///Buttons/+ = EQUALS
+ ///Buttons/Home = LMENU&RETURN
+ ///IR/Center = 100.00000000000000
+ ///IR/Width = 25.000000000000000
+ ///IR/Height = 25.000000000000000
+ ///Tilt/Forward = `Axis Z+`
+ ///Tilt/Backward = `Axis Z-`
+ ///Extension = Nunchuk
+ ///Nunchuk/Buttons/C = LSHIFT
+ ///Nunchuk/Buttons/Z = `Click 3`
+ ///Nunchuk/Stick/Up = W
+ ///Nunchuk/Stick/Down = S
+ ///Nunchuk/Stick/Left = A
+ ///Nunchuk/Stic [rest of string was truncated]";.
+ ///
+ internal static string WiimoteNew {
+ get {
+ return ResourceManager.GetString("WiimoteNew", resourceCulture);
+ }
+ }
}
}
diff --git a/PrimeHack Updater/Properties/Resources.resx b/PrimeHack Updater/Properties/Resources.resx
index 5b9dbe4..456b608 100644
--- a/PrimeHack Updater/Properties/Resources.resx
+++ b/PrimeHack Updater/Properties/Resources.resx
@@ -121,4 +121,25 @@
..\Resources\InternalUpdater.exe;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ ..\Resources\PrimeHack.ini;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252
+
+
+ ..\Resources\PrimeHack Manual.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252
+
+
+ ..\Resources\Metroid Prime Trilogy v1.ini;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252
+
+
+ ..\Resources\Metroid Prime Trilogy v1 Manual.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252
+
+
+ ..\Resources\Metroid Prime Trilogy v2.ini;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252
+
+
+ ..\Resources\Metroid Prime Trilogy v2 Manual.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252
+
+
+ ..\Resources\WiimoteNew.ini;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252
+
\ No newline at end of file
diff --git a/PrimeHack Updater/Properties/app.manifest b/PrimeHack Updater/Properties/app.manifest
new file mode 100644
index 0000000..66981ed
--- /dev/null
+++ b/PrimeHack Updater/Properties/app.manifest
@@ -0,0 +1,70 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/PrimeHack Updater/Resources/InternalUpdater.exe b/PrimeHack Updater/Resources/InternalUpdater.exe
index 4c23ff8..20d1dbc 100644
Binary files a/PrimeHack Updater/Resources/InternalUpdater.exe and b/PrimeHack Updater/Resources/InternalUpdater.exe differ
diff --git a/PrimeHack Updater/Resources/Metroid Prime Trilogy v1 Manual.txt b/PrimeHack Updater/Resources/Metroid Prime Trilogy v1 Manual.txt
new file mode 100644
index 0000000..30f0792
--- /dev/null
+++ b/PrimeHack Updater/Resources/Metroid Prime Trilogy v1 Manual.txt
@@ -0,0 +1,30 @@
+ ///PRIMEHACK MANUAL\\\
+ (METROID PRIME TRILOGY V1)
+
+Menus:
+
+Mouse = Menu cursor
+Left Mouse Button = Menu accept
+Space Bar = Menu cancel/back
+
+In-game:
+
+WASD = Move
+Mouse = Aim
+Mouse Button 3 (Hold) = Lock/Scan/Spider Ball
+Left Mouse Button = Fire (Hold for charge beam)
+Right Mouse Button = Missile
+E = Visor Selection
+R = Beam Selection
+Numpad 1 = Map
+Numpad 2 = Pause
+Space Bar = Jump/Dodge
+Left Alt = Morph Ball jump
+Left Shift = Morph Ball
+Space Bar (Hold) = Boost Ball
+
+Notes:
+Visors and beams have no binds by default. You will have to manually select which keys to
+bind them to through the PrimeHack Settings menu located in the menu bar. Once bound, you
+must click and hold the visor and beam selection keys above in combination with the binds
+you set through the PrimeHack Settings menu to switch between visors and beams.
\ No newline at end of file
diff --git a/PrimeHack Updater/Resources/Metroid Prime Trilogy v1.ini b/PrimeHack Updater/Resources/Metroid Prime Trilogy v1.ini
new file mode 100644
index 0000000..7f10efa
--- /dev/null
+++ b/PrimeHack Updater/Resources/Metroid Prime Trilogy v1.ini
@@ -0,0 +1,20 @@
+[Profile]
+Device = DInput/0/Keyboard Mouse
+Buttons/A = `Click 0`
+Buttons/B = SPACE
+Buttons/1 = `NUMPAD1`
+Buttons/2 = `NUMPAD2`
+Buttons/- = E
+Buttons/+ = R
+Buttons/Home = LMENU&RETURN
+IR/Center = 100.00000000000000
+IR/Width = 25.000000000000000
+IR/Height = 25.000000000000000
+Extension = Nunchuk
+Nunchuk/Buttons/C = LSHIFT
+Nunchuk/Buttons/Z = `Click 3`
+Nunchuk/Stick/Up = W
+Nunchuk/Stick/Down = S
+Nunchuk/Stick/Left = A
+Nunchuk/Stick/Right = D
+D-Pad/Down = `Click 1`
diff --git a/PrimeHack Updater/Resources/Metroid Prime Trilogy v2 Manual.txt b/PrimeHack Updater/Resources/Metroid Prime Trilogy v2 Manual.txt
new file mode 100644
index 0000000..164e3eb
--- /dev/null
+++ b/PrimeHack Updater/Resources/Metroid Prime Trilogy v2 Manual.txt
@@ -0,0 +1,30 @@
+ ///PRIMEHACK MANUAL\\\
+ (METROID PRIME TRILOGY V2)
+
+Menus:
+
+Mouse = Menu cursor
+Left Mouse Button = Menu accept
+Space Bar = Menu cancel/back
+
+In-game:
+
+WASD = Move
+Mouse = Aim
+Right Mouse Button (Hold) = Lock/Scan/Spider Ball
+Left Mouse Button = Fire (Hold for charge beam)
+Mouse Button 3 = Missile
+E = Visor Selection
+R = Beam Selection
+M = Map
+I = Pause
+Space Bar = Jump/Dodge
+Left Alt = Morph Ball jump
+Left Ctrl = Morph Ball
+Space Bar (Hold) = Boost Ball
+
+Notes:
+Visors and beams have no binds by default. You will have to manually select which keys to
+bind them to through the PrimeHack Settings menu located in the menu bar. Once bound, you
+must click and hold the visor and beam selection keys above in combination with the binds
+you set through the PrimeHack Settings menu to switch between visors and beams.
\ No newline at end of file
diff --git a/PrimeHack Updater/Resources/Metroid Prime Trilogy v2.ini b/PrimeHack Updater/Resources/Metroid Prime Trilogy v2.ini
new file mode 100644
index 0000000..b50b773
--- /dev/null
+++ b/PrimeHack Updater/Resources/Metroid Prime Trilogy v2.ini
@@ -0,0 +1,20 @@
+[Profile]
+Device = DInput/0/Keyboard Mouse
+Buttons/A = `Click 0`
+Buttons/B = SPACE
+Buttons/1 = M
+Buttons/2 = I
+Buttons/- = E
+Buttons/+ = R
+Buttons/Home = RETURN
+IR/Center = 100.00000000000000
+IR/Width = 25.000000000000000
+IR/Height = 25.000000000000000
+Extension = Nunchuk
+Nunchuk/Buttons/C = LCONTROL
+Nunchuk/Buttons/Z = `Click 1`
+Nunchuk/Stick/Up = W
+Nunchuk/Stick/Down = S
+Nunchuk/Stick/Left = A
+Nunchuk/Stick/Right = D
+D-Pad/Down = `Click 3`
diff --git a/PrimeHack Updater/Resources/PrimeHack Manual.txt b/PrimeHack Updater/Resources/PrimeHack Manual.txt
new file mode 100644
index 0000000..273687c
--- /dev/null
+++ b/PrimeHack Updater/Resources/PrimeHack Manual.txt
@@ -0,0 +1,29 @@
+ ///PRIMEHACK MANUAL\\\
+
+Menus:
+
+Mouse = Menu cursor
+Left Mouse Button = Menu accept
+Space Bar = Menu cancel/back
+
+In-game:
+
+WASD = Move
+Mouse = Aim
+Right Mouse Button (Hold) = Lock/Scan/Spider Ball
+Left Mouse Button = Fire (Hold for charge beam)
+F = Missile
+Q = Visor Selection
+E = Beam Selection
+Tab = Map
+Esc = Pause
+Space Bar = Jump/Dodge
+Left Alt = Morph Ball jump
+Left Ctrl = Morph Ball
+Space Bar (Hold) = Boost Ball
+
+Notes:
+Visors and beams have no binds by default. You will have to manually select which keys to
+bind them to through the PrimeHack Settings menu located in the menu bar. Once bound, you
+must click and hold the visor and beam selection keys above in combination with the binds
+you set through the PrimeHack Settings menu to switch between visors and beams.
\ No newline at end of file
diff --git a/PrimeHack Updater/Resources/PrimeHack.ini b/PrimeHack Updater/Resources/PrimeHack.ini
new file mode 100644
index 0000000..b78813b
--- /dev/null
+++ b/PrimeHack Updater/Resources/PrimeHack.ini
@@ -0,0 +1,22 @@
+[Profile]
+Device = DInput/0/Keyboard Mouse
+Buttons/A = `Click 0`
+Buttons/B = SPACE
+Buttons/1 = TAB
+Buttons/2 = ESCAPE
+Buttons/- = `Click 3`
+Buttons/+ = `Click 4`
+Buttons/Home = RETURN
+IR/Center = 100.00000000000000
+IR/Width = 25.000000000000000
+IR/Height = 25.000000000000000
+Swing/Up = LMENU
+Tilt/Forward = LMENU
+Extension = Nunchuk
+Nunchuk/Buttons/C = LCONTROL
+Nunchuk/Buttons/Z = `Click 1`
+Nunchuk/Stick/Up = W
+Nunchuk/Stick/Down = S
+Nunchuk/Stick/Left = A
+Nunchuk/Stick/Right = D
+D-Pad/Down = F
diff --git a/PrimeHack Updater/Resources/WiimoteNew.ini b/PrimeHack Updater/Resources/WiimoteNew.ini
new file mode 100644
index 0000000..4146394
--- /dev/null
+++ b/PrimeHack Updater/Resources/WiimoteNew.ini
@@ -0,0 +1,35 @@
+[Wiimote1]
+Device = DInput/0/Keyboard Mouse
+Buttons/A = `Click 2`
+Buttons/B = SPACE
+Buttons/1 = `NUMPAD1`
+Buttons/2 = `NUMPAD2`
+Buttons/- = MINUS
+Buttons/+ = EQUALS
+Buttons/Home = LMENU&RETURN
+IR/Center = 100.00000000000000
+IR/Width = 25.000000000000000
+IR/Height = 25.000000000000000
+Tilt/Forward = `Axis Z+`
+Tilt/Backward = `Axis Z-`
+Extension = Nunchuk
+Nunchuk/Buttons/C = LSHIFT
+Nunchuk/Buttons/Z = `Click 3`
+Nunchuk/Stick/Up = W
+Nunchuk/Stick/Down = S
+Nunchuk/Stick/Left = A
+Nunchuk/Stick/Right = D
+Nunchuk/Swing/Up = `Axis Z+`
+Nunchuk/Swing/Down = `Axis Z-`
+Nunchuk/Tilt/Forward = `Axis Z+`
+Nunchuk/Tilt/Backward = `Axis Z-`
+D-Pad/Down = `Click 1`
+Source = 1
+[Wiimote2]
+Source = 0
+[Wiimote3]
+Source = 0
+[Wiimote4]
+Source = 0
+[BalanceBoard]
+Source = 0
diff --git a/PrimeHack Updater/Updater.cs b/PrimeHack Updater/Updater.cs
index 849b3a9..356200c 100644
--- a/PrimeHack Updater/Updater.cs
+++ b/PrimeHack Updater/Updater.cs
@@ -9,6 +9,7 @@
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
+using System.Text;
namespace PrimeHack_Updator
{
@@ -16,6 +17,7 @@ class Updater
{
static string sysversion = "1.5.0";
+ [STAThread]
static void Main(string[] args)
{
Console.WriteLine("Checking for latest updates.");
@@ -32,8 +34,8 @@ static void Main(string[] args)
}
}
- Console.WriteLine("Checking for Local Dolphin Configuration");
- portableMode();
+ //Console.WriteLine("Checking for Local Dolphin Configuration");
+ //portableMode();
html = VersionCheck.getJSONInfo(@"https://api.github.com/repos/shiiion/Ishiiruka/releases/latest");
remoteversion = VersionCheck.getVersion(html);
@@ -180,6 +182,7 @@ public static DialogResult STAShowDialog(FileDialog dialog)
return state.result;
}
+ static string DE = Environment.ExpandEnvironmentVariables(@"%USERPROFILE%\Documents\Dolphin Emulator\");
public static void portableMode()
{
if (!Directory.Exists(".\\Configuration\\"))
@@ -188,7 +191,7 @@ public static void portableMode()
Directory.CreateDirectory(".\\Configuration\\");
- string DE = Environment.ExpandEnvironmentVariables(@"%USERPROFILE%\Documents\Dolphin Emulator\");
+
if (Directory.Exists(DE)) {
Console.WriteLine("Copying Dolphin Emulator files to local folder.");
@@ -204,7 +207,9 @@ public static void portableMode()
File.Copy(newPath, newPath.Replace(DE, ".\\Configuration\\"), true);
}
-
+
+
+ DE = ".\\Configuration\\";
}
}
}
@@ -240,10 +245,10 @@ public static void runPrimeHack(string[] args)
public static void cutProfiles()
{
+ string docspath = DE + @"Config\Profiles\Wiimote\";
if (Directory.Exists(".\\Profiles\\"))
{
string[] files = Directory.GetFiles(".\\Profiles\\");
- string docspath = Environment.ExpandEnvironmentVariables(@"%USERPROFILE%\Documents\Dolphin Emulator\Config\Profiles\Wiimote\");
if (!Directory.Exists(docspath))
{
@@ -259,6 +264,36 @@ public static void cutProfiles()
}
Directory.Delete(".\\Profiles\\", true);
+ } else
+ {
+ Boolean setProfile = false;
+
+ if (!File.Exists(docspath+"Metroid Prime Trilogy v1.ini"))
+ {
+ File.WriteAllBytes(docspath + "Metroid Prime Trilogy v1.ini", Encoding.ASCII.GetBytes(PrimeHack_Updater.Properties.Resources.Metroid_Prime_Trilogy_v1));
+ File.WriteAllBytes(".\\Metroid Prime Trilogy v1 Manual.ini", Encoding.ASCII.GetBytes(PrimeHack_Updater.Properties.Resources.Metroid_Prime_Trilogy_v1_Manual));
+
+ File.WriteAllBytes(DE + @"Config\WiimoteNew.ini", Encoding.ASCII.GetBytes(PrimeHack_Updater.Properties.Resources.WiimoteNew));
+ setProfile = true;
+ }
+
+ if (!File.Exists(docspath + "Metroid Prime Trilogy v2.ini"))
+ {
+ File.WriteAllBytes(docspath + "Metroid Prime Trilogy v2.ini", Encoding.ASCII.GetBytes(PrimeHack_Updater.Properties.Resources.Metroid_Prime_Trilogy_v2));
+ File.WriteAllBytes(".\\Metroid Prime Trilogy v2 Manual.ini", Encoding.ASCII.GetBytes(PrimeHack_Updater.Properties.Resources.Metroid_Prime_Trilogy_v2_Manual));
+
+ if (!setProfile)
+ File.WriteAllBytes(DE + @"Config\WiimoteNew.ini", Encoding.ASCII.GetBytes(PrimeHack_Updater.Properties.Resources.WiimoteNew));
+ }
+
+ if (!File.Exists(docspath + "Mendelli.ini"))
+ {
+ File.WriteAllBytes(docspath + "Mendelli.ini", Encoding.ASCII.GetBytes(PrimeHack_Updater.Properties.Resources.Mendelli));
+ File.WriteAllBytes(".\\Mendelli Manual.ini", Encoding.ASCII.GetBytes(PrimeHack_Updater.Properties.Resources.Mendelli));
+
+ if (!setProfile)
+ File.WriteAllBytes(DE + @"Config\WiimoteNew.ini", Encoding.ASCII.GetBytes(PrimeHack_Updater.Properties.Resources.WiimoteNew));
+ }
}
}