diff --git a/LocalPSM+/LocalPSM+.csproj b/LocalPSM+/LocalPSM+.csproj
index 6583684..9b357fc 100644
--- a/LocalPSM+/LocalPSM+.csproj
+++ b/LocalPSM+/LocalPSM+.csproj
@@ -145,8 +145,8 @@
-
-
+
+
\ No newline at end of file
diff --git a/LocalPSM+/PSMKeyGen.cs b/LocalPSM+/PSMKeyGen.cs
index c69e05e..e6a5819 100644
--- a/LocalPSM+/PSMKeyGen.cs
+++ b/LocalPSM+/PSMKeyGen.cs
@@ -16,10 +16,6 @@ namespace LocalPSM_
InitializeComponent();
}
- public String UnityURL = "https://nsx.sec.np.dl.playstation.net/nsx/sec/Xz78TMQ1Uf31VCYr/c/NSXVID/NSXVID-PSM.UNITY.WW-GLOBAL.xml";
- public String PsmDevURL = "https://nsx.sec.np.dl.playstation.net/nsx/sec/Xz78TMQ1Uf31VCYr/c/NSXVID/NSXVID-PSS.VT.WW-GLOBAL.xml";
-
-
private void PSMKeyGen_Load(object sender, EventArgs e)
{
Stream BGM = Properties.Resources.BGM;
@@ -38,30 +34,13 @@ namespace LocalPSM_
}
private void DownloadXML(string path)
{
- try
+ if (Unity.Checked)
{
- WebClient wc = new WebClient();
- if (Unity.Checked)
- {
- byte[] XML = wc.DownloadData(UnityURL);
- File.WriteAllBytes(path, XML);
- }
- else
- {
- byte[] XML = wc.DownloadData(PsmDevURL);
- File.WriteAllBytes(path, XML);
- }
+ File.WriteAllText(path, Properties.Resources.NSXVID_PSM_UNITY_WW_GLOBAL);
}
- catch
+ else
{
- if (Unity.Checked)
- {
- File.WriteAllText(path, Properties.Resources.NSXVID_PSM_UNITY_WW_GLOBAL);
- }
- else
- {
- File.WriteAllText(path, Properties.Resources.NSXVID_PSS_VT_WW_GLOBAL);
- }
+ File.WriteAllText(path, Properties.Resources.NSXVID_PSS_VT_WW_GLOBAL);
}
}
@@ -355,6 +334,7 @@ namespace LocalPSM_
int i = DevName.SelectionStart;
DevName.Text = new String(DevName.Text.Where(char.IsDigit).ToArray());
DevName.SelectionStart = i;
+
}
}
diff --git a/LocalPSM+/Properties/Resources.Designer.cs b/LocalPSM+/Properties/Resources.Designer.cs
index 7163e09..486aba9 100644
--- a/LocalPSM+/Properties/Resources.Designer.cs
+++ b/LocalPSM+/Properties/Resources.Designer.cs
@@ -130,7 +130,7 @@ namespace LocalPSM_.Properties {
}
///
- /// Looks up a localized string similar to <?xml version="1.0" encoding="UTF-8" standalone="yes"?><nsx ver="1.0" rev="6" lt-id="128" anno="" min-sys-ver=""><spc id="257" rep="f" multi="o" anno=""/><spc id="7681" rep="f" multi="o" anno=""/><spc id="32769" rep="f" multi="o" anno=""><mtrl id="1080636188" mname="NSXVID-PSM.UNITY.WW-GLOBAL.xml" from="2013-08-26T00:00:00.000Z" until="2100-12-31T23:59:00.000Z" lastm="2015-07-28T06:49:58.000Z" anno=""><data name="3529fc6a1e2477a09f1430fdb9c9874fa1113c2a-1092843.xml" type="33">PGNudHJ5aW5mbyB4bWxuczp4c2k9Imh [rest of string was truncated]";.
+ /// Looks up a localized string similar to <?xml version="1.0" encoding="UTF-8" standalone="yes"?><nsx ver="1.0" rev="5" lt-id="128" anno="" min-sys-ver=""><spc id="257" rep="f" multi="o" anno=""/><spc id="7681" rep="f" multi="o" anno=""/><spc id="32769" rep="f" multi="o" anno=""><mtrl id="1080636188" mname="NSXVID-PSM.UNITY.WW-GLOBAL.xml" from="2013-08-26T00:00:00.000Z" until="2100-12-31T23:59:00.000Z" lastm="2014-11-12T05:21:49.000Z" anno=""><data name="485f9bfbc0fc9364b87edfec21ecffd3d540ca19-988057.xml" type="33">PGNudHJ5aW5mbyB4bWxuczp4c2k9Imh0 [rest of string was truncated]";.
///
internal static string NSXVID_PSM_UNITY_WW_GLOBAL {
get {
@@ -139,7 +139,7 @@ namespace LocalPSM_.Properties {
}
///
- /// Looks up a localized string similar to <?xml version="1.0" encoding="UTF-8" standalone="yes"?><nsx ver="1.0" rev="19" lt-id="128" anno="" min-sys-ver=""><spc id="257" rep="f" multi="o" anno=""/><spc id="7681" rep="f" multi="o" anno=""/><spc id="32769" rep="f" multi="o" anno=""><mtrl id="1080536019" mname="NSXVID-PSS.VT.WW-GLOBAL" from="2012-03-29T00:00:00.000Z" until="2100-12-31T23:59:00.000Z" lastm="2015-07-28T06:51:25.000Z" anno=""><name></name><owner></owner><desc></desc><data name="c96b4e2e0a2d5c3fb78a8e6e7e62c8edb5020dfd-1092844.xml" type=" [rest of string was truncated]";.
+ /// Looks up a localized string similar to <?xml version="1.0" encoding="UTF-8" standalone="yes"?><nsx ver="1.0" rev="18" lt-id="128" anno="" min-sys-ver=""><spc id="257" rep="f" multi="o" anno=""/><spc id="7681" rep="f" multi="o" anno=""/><spc id="32769" rep="f" multi="o" anno=""><mtrl id="1080536019" mname="NSXVID-PSS.VT.WW-GLOBAL" from="2012-03-29T00:00:00.000Z" until="2100-12-31T23:59:00.000Z" lastm="2015-05-21T07:30:44.000Z" anno=""><name></name><owner></owner><desc></desc><data name="ab46b81c007ac267bc0ebb42564c275fcd0a528d-1076369.xml" type=" [rest of string was truncated]";.
///
internal static string NSXVID_PSS_VT_WW_GLOBAL {
get {
diff --git a/LocalPSM+/Properties/Resources.resx b/LocalPSM+/Properties/Resources.resx
index 5ef8977..2f546c0 100644
--- a/LocalPSM+/Properties/Resources.resx
+++ b/LocalPSM+/Properties/Resources.resx
@@ -139,12 +139,6 @@
..\Resources\Logo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\NSXVID-PSM.UNITY.WW-GLOBAL.xml;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252
-
-
- ..\Resources\NSXVID-PSS.VT.WW-GLOBAL.xml;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252
-
..\Resources\psmdev.krng;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
@@ -202,4 +196,10 @@
..\Resources\unity_vseed.dat;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ ..\Resources\NSXVID_PSM_UNITY_WW_GLOBAL.xml;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252
+
+
+ ..\Resources\NSXVID_PSS_VT_WW_GLOBAL.xml;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252
+
\ No newline at end of file
diff --git a/LocalPSM+/Resources/NSXVID_PSM_UNITY_WW_GLOBAL.xml b/LocalPSM+/Resources/NSXVID_PSM_UNITY_WW_GLOBAL.xml
new file mode 100644
index 0000000..e35618b
--- /dev/null
+++ b/LocalPSM+/Resources/NSXVID_PSM_UNITY_WW_GLOBAL.xml
@@ -0,0 +1 @@
+PGNudHJ5aW5mbyB4bWxuczp4c2k9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4c2k6bm9OYW1lc3BhY2VTY2hlbWFMb2NhdGlvbj0iY250cnlpbmZvLnhzZCIgc2tpbl92ZXJzaW9uPSIxIiBnYW1lX2F2YWlsYWJsZV91bnRpbD0iMjEwMC0xMi0zMVQyMzo1OTowMC4wMFoiIGdhbWVfYXZhaWxhYmxlX2Zyb209IjIwMTItMDMtMzBUMTA6MDA6MDAuMDBaIiB2aWRlb19hdmFpbGFibGVfdW50aWw9Ijk5OTktMTItMzFUMjM6NTk6NTkuOTlaIiB2aWRlb19hdmFpbGFibGVfZnJvbT0iMjAxMS0xMS0wN1QxMDowMDowMC4wMFoiIGdhbWVfcmF0aW5nPSJ0cnVlIiB2aWRlb19yYXRpbmc9InRydWUiPg0KPHBzc3Nka19yZXZva2VfYmVmb3JlPjAuOTAuMDA8L3Bzc3Nka19yZXZva2VfYmVmb3JlPg0KPHF1ZXN0aW9ubmFpcmVfdXJsLz4NCjwvY250cnlpbmZvPg==allall
\ No newline at end of file
diff --git a/LocalPSM+/Resources/NSXVID_PSS_VT_WW_GLOBAL.xml b/LocalPSM+/Resources/NSXVID_PSS_VT_WW_GLOBAL.xml
new file mode 100644
index 0000000..ce23f89
--- /dev/null
+++ b/LocalPSM+/Resources/NSXVID_PSS_VT_WW_GLOBAL.xml
@@ -0,0 +1 @@
+PGNudHJ5aW5mbyB4bWxuczp4c2k9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4c2k6bm9OYW1lc3BhY2VTY2hlbWFMb2NhdGlvbj0iY250cnlpbmZvLnhzZCIgc2tpbl92ZXJzaW9uPSIxIiBnYW1lX2F2YWlsYWJsZV91bnRpbD0iMjEwMC0xMi0zMVQyMzo1OTowMC4wMFoiIGdhbWVfYXZhaWxhYmxlX2Zyb209IjIwMTItMDMtMzBUMTA6MDA6MDAuMDBaIiB2aWRlb19hdmFpbGFibGVfdW50aWw9Ijk5OTktMTItMzFUMjM6NTk6NTkuOTlaIiB2aWRlb19hdmFpbGFibGVfZnJvbT0iMjAxMS0xMS0wN1QxMDowMDowMC4wMFoiIGdhbWVfcmF0aW5nPSJ0cnVlIiB2aWRlb19yYXRpbmc9InRydWUiPg0KPHBzc3Nka19yZXZva2VfYmVmb3JlPjEuMDAuMDA8L3Bzc3Nka19yZXZva2VfYmVmb3JlPg0KPHF1ZXN0aW9ubmFpcmVfdXJsLz4NCjwvY250cnlpbmZvPg==allall
\ No newline at end of file