Make it acturally work

This commit is contained in:
AtelierWindows\SilicaAndPina 2019-01-02 12:58:01 +13:00
parent 6ee4d9d391
commit 2e489a42a9
6 changed files with 17 additions and 35 deletions

View File

@ -145,8 +145,8 @@
</ItemGroup>
<ItemGroup>
<Content Include="PSM.ico" />
<None Include="Resources\NSXVID-PSS.VT.WW-GLOBAL.xml" />
<None Include="Resources\NSXVID-PSM.UNITY.WW-GLOBAL.xml" />
<None Include="Resources\NSXVID_PSM_UNITY_WW_GLOBAL.xml" />
<None Include="Resources\NSXVID_PSS_VT_WW_GLOBAL.xml" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@ -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;
}
}

View File

@ -130,7 +130,7 @@ namespace LocalPSM_.Properties {
}
/// <summary>
/// Looks up a localized string similar to &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;&lt;nsx ver=&quot;1.0&quot; rev=&quot;6&quot; lt-id=&quot;128&quot; anno=&quot;&quot; min-sys-ver=&quot;&quot;&gt;&lt;spc id=&quot;257&quot; rep=&quot;f&quot; multi=&quot;o&quot; anno=&quot;&quot;/&gt;&lt;spc id=&quot;7681&quot; rep=&quot;f&quot; multi=&quot;o&quot; anno=&quot;&quot;/&gt;&lt;spc id=&quot;32769&quot; rep=&quot;f&quot; multi=&quot;o&quot; anno=&quot;&quot;&gt;&lt;mtrl id=&quot;1080636188&quot; mname=&quot;NSXVID-PSM.UNITY.WW-GLOBAL.xml&quot; from=&quot;2013-08-26T00:00:00.000Z&quot; until=&quot;2100-12-31T23:59:00.000Z&quot; lastm=&quot;2015-07-28T06:49:58.000Z&quot; anno=&quot;&quot;&gt;&lt;data name=&quot;3529fc6a1e2477a09f1430fdb9c9874fa1113c2a-1092843.xml&quot; type=&quot;33&quot;&gt;PGNudHJ5aW5mbyB4bWxuczp4c2k9Imh [rest of string was truncated]&quot;;.
/// Looks up a localized string similar to &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;&lt;nsx ver=&quot;1.0&quot; rev=&quot;5&quot; lt-id=&quot;128&quot; anno=&quot;&quot; min-sys-ver=&quot;&quot;&gt;&lt;spc id=&quot;257&quot; rep=&quot;f&quot; multi=&quot;o&quot; anno=&quot;&quot;/&gt;&lt;spc id=&quot;7681&quot; rep=&quot;f&quot; multi=&quot;o&quot; anno=&quot;&quot;/&gt;&lt;spc id=&quot;32769&quot; rep=&quot;f&quot; multi=&quot;o&quot; anno=&quot;&quot;&gt;&lt;mtrl id=&quot;1080636188&quot; mname=&quot;NSXVID-PSM.UNITY.WW-GLOBAL.xml&quot; from=&quot;2013-08-26T00:00:00.000Z&quot; until=&quot;2100-12-31T23:59:00.000Z&quot; lastm=&quot;2014-11-12T05:21:49.000Z&quot; anno=&quot;&quot;&gt;&lt;data name=&quot;485f9bfbc0fc9364b87edfec21ecffd3d540ca19-988057.xml&quot; type=&quot;33&quot;&gt;PGNudHJ5aW5mbyB4bWxuczp4c2k9Imh0 [rest of string was truncated]&quot;;.
/// </summary>
internal static string NSXVID_PSM_UNITY_WW_GLOBAL {
get {
@ -139,7 +139,7 @@ namespace LocalPSM_.Properties {
}
/// <summary>
/// Looks up a localized string similar to &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;&lt;nsx ver=&quot;1.0&quot; rev=&quot;19&quot; lt-id=&quot;128&quot; anno=&quot;&quot; min-sys-ver=&quot;&quot;&gt;&lt;spc id=&quot;257&quot; rep=&quot;f&quot; multi=&quot;o&quot; anno=&quot;&quot;/&gt;&lt;spc id=&quot;7681&quot; rep=&quot;f&quot; multi=&quot;o&quot; anno=&quot;&quot;/&gt;&lt;spc id=&quot;32769&quot; rep=&quot;f&quot; multi=&quot;o&quot; anno=&quot;&quot;&gt;&lt;mtrl id=&quot;1080536019&quot; mname=&quot;NSXVID-PSS.VT.WW-GLOBAL&quot; from=&quot;2012-03-29T00:00:00.000Z&quot; until=&quot;2100-12-31T23:59:00.000Z&quot; lastm=&quot;2015-07-28T06:51:25.000Z&quot; anno=&quot;&quot;&gt;&lt;name&gt;&lt;/name&gt;&lt;owner&gt;&lt;/owner&gt;&lt;desc&gt;&lt;/desc&gt;&lt;data name=&quot;c96b4e2e0a2d5c3fb78a8e6e7e62c8edb5020dfd-1092844.xml&quot; type=&quot; [rest of string was truncated]&quot;;.
/// Looks up a localized string similar to &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;&lt;nsx ver=&quot;1.0&quot; rev=&quot;18&quot; lt-id=&quot;128&quot; anno=&quot;&quot; min-sys-ver=&quot;&quot;&gt;&lt;spc id=&quot;257&quot; rep=&quot;f&quot; multi=&quot;o&quot; anno=&quot;&quot;/&gt;&lt;spc id=&quot;7681&quot; rep=&quot;f&quot; multi=&quot;o&quot; anno=&quot;&quot;/&gt;&lt;spc id=&quot;32769&quot; rep=&quot;f&quot; multi=&quot;o&quot; anno=&quot;&quot;&gt;&lt;mtrl id=&quot;1080536019&quot; mname=&quot;NSXVID-PSS.VT.WW-GLOBAL&quot; from=&quot;2012-03-29T00:00:00.000Z&quot; until=&quot;2100-12-31T23:59:00.000Z&quot; lastm=&quot;2015-05-21T07:30:44.000Z&quot; anno=&quot;&quot;&gt;&lt;name&gt;&lt;/name&gt;&lt;owner&gt;&lt;/owner&gt;&lt;desc&gt;&lt;/desc&gt;&lt;data name=&quot;ab46b81c007ac267bc0ebb42564c275fcd0a528d-1076369.xml&quot; type=&quot; [rest of string was truncated]&quot;;.
/// </summary>
internal static string NSXVID_PSS_VT_WW_GLOBAL {
get {

View File

@ -139,12 +139,6 @@
<data name="Logo" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Logo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="NSXVID_PSM_UNITY_WW_GLOBAL" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\NSXVID-PSM.UNITY.WW-GLOBAL.xml;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
</data>
<data name="NSXVID_PSS_VT_WW_GLOBAL" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\NSXVID-PSS.VT.WW-GLOBAL.xml;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
</data>
<data name="psmdev" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\psmdev.krng;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
@ -202,4 +196,10 @@
<data name="unity_vseed" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\unity_vseed.dat;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="NSXVID_PSM_UNITY_WW_GLOBAL" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\NSXVID_PSM_UNITY_WW_GLOBAL.xml;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
</data>
<data name="NSXVID_PSS_VT_WW_GLOBAL" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\NSXVID_PSS_VT_WW_GLOBAL.xml;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
</data>
</root>

View File

@ -0,0 +1 @@
<?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">PGNudHJ5aW5mbyB4bWxuczp4c2k9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4c2k6bm9OYW1lc3BhY2VTY2hlbWFMb2NhdGlvbj0iY250cnlpbmZvLnhzZCIgc2tpbl92ZXJzaW9uPSIxIiBnYW1lX2F2YWlsYWJsZV91bnRpbD0iMjEwMC0xMi0zMVQyMzo1OTowMC4wMFoiIGdhbWVfYXZhaWxhYmxlX2Zyb209IjIwMTItMDMtMzBUMTA6MDA6MDAuMDBaIiB2aWRlb19hdmFpbGFibGVfdW50aWw9Ijk5OTktMTItMzFUMjM6NTk6NTkuOTlaIiB2aWRlb19hdmFpbGFibGVfZnJvbT0iMjAxMS0xMS0wN1QxMDowMDowMC4wMFoiIGdhbWVfcmF0aW5nPSJ0cnVlIiB2aWRlb19yYXRpbmc9InRydWUiPg0KPHBzc3Nka19yZXZva2VfYmVmb3JlPjAuOTAuMDA8L3Bzc3Nka19yZXZva2VfYmVmb3JlPg0KPHF1ZXN0aW9ubmFpcmVfdXJsLz4NCjwvY250cnlpbmZvPg==</data><cntry agelmt="0">all</cntry><lang>all</lang></mtrl></spc><spc id="32770" rep="f" multi="o" anno=""/><spc id="32771" rep="f" multi="o" anno=""/></nsx>

View File

@ -0,0 +1 @@
<?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="33">PGNudHJ5aW5mbyB4bWxuczp4c2k9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4c2k6bm9OYW1lc3BhY2VTY2hlbWFMb2NhdGlvbj0iY250cnlpbmZvLnhzZCIgc2tpbl92ZXJzaW9uPSIxIiBnYW1lX2F2YWlsYWJsZV91bnRpbD0iMjEwMC0xMi0zMVQyMzo1OTowMC4wMFoiIGdhbWVfYXZhaWxhYmxlX2Zyb209IjIwMTItMDMtMzBUMTA6MDA6MDAuMDBaIiB2aWRlb19hdmFpbGFibGVfdW50aWw9Ijk5OTktMTItMzFUMjM6NTk6NTkuOTlaIiB2aWRlb19hdmFpbGFibGVfZnJvbT0iMjAxMS0xMS0wN1QxMDowMDowMC4wMFoiIGdhbWVfcmF0aW5nPSJ0cnVlIiB2aWRlb19yYXRpbmc9InRydWUiPg0KPHBzc3Nka19yZXZva2VfYmVmb3JlPjEuMDAuMDA8L3Bzc3Nka19yZXZva2VfYmVmb3JlPg0KPHF1ZXN0aW9ubmFpcmVfdXJsLz4NCjwvY250cnlpbmZvPg==</data><cntry agelmt="0">all</cntry><lang>all</lang></mtrl></spc><spc id="32770" rep="f" multi="o" anno=""/><spc id="32771" rep="f" multi="o" anno=""/></nsx>