This commit is contained in:
AtelierWindows\SilicaAndPina 2018-10-05 11:11:03 +13:00
parent 60bc7f806e
commit 52d0da05c6
11 changed files with 49 additions and 7 deletions

BIN
.vs/LocalPSM+/v15/.suo Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -145,6 +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" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@ -38,16 +38,30 @@ namespace LocalPSM_
}
private void DownloadXML(string path)
{
WebClient wc = new WebClient();
if (Unity.Checked)
try
{
byte[] XML = wc.DownloadData(UnityURL);
File.WriteAllBytes(path, XML);
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);
}
}
else
catch
{
byte[] XML = wc.DownloadData(PsmDevURL);
File.WriteAllBytes(path, XML);
if (Unity.Checked)
{
File.WriteAllText(path, Properties.Resources.NSXVID_PSM_UNITY_WW_GLOBAL);
}
else
{
File.WriteAllText(path, Properties.Resources.NSXVID_PSS_VT_WW_GLOBAL);
}
}
}

View File

@ -129,6 +129,24 @@ 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;;.
/// </summary>
internal static string NSXVID_PSM_UNITY_WW_GLOBAL {
get {
return ResourceManager.GetString("NSXVID_PSM_UNITY_WW_GLOBAL", resourceCulture);
}
}
/// <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;;.
/// </summary>
internal static string NSXVID_PSS_VT_WW_GLOBAL {
get {
return ResourceManager.GetString("NSXVID_PSS_VT_WW_GLOBAL", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>

View File

@ -139,6 +139,12 @@
<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>

View File

@ -0,0 +1 @@
<?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">PGNudHJ5aW5mbyB4bWxuczp4c2k9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4c2k6bm9OYW1lc3BhY2VTY2hlbWFMb2NhdGlvbj0iY250cnlpbmZvLnhzZCIgc2tpbl92ZXJzaW9uPSIxIiBnYW1lX2F2YWlsYWJsZV91bnRpbD0iMjEwMC0xMi0zMVQyMzo1OTowMC4wMFoiIGdhbWVfYXZhaWxhYmxlX2Zyb209IjIwMTItMDMtMzBUMTA6MDA6MDAuMDBaIiB2aWRlb19hdmFpbGFibGVfdW50aWw9Ijk5OTktMTItMzFUMjM6NTk6NTkuOTlaIiB2aWRlb19hdmFpbGFibGVfZnJvbT0iMjAxMS0xMS0wN1QxMDowMDowMC4wMFoiIGdhbWVfcmF0aW5nPSJ0cnVlIiB2aWRlb19yYXRpbmc9InRydWUiPg0KPHBzc3Nka19yZXZva2VfYmVmb3JlPjEuMTAuMDM8L3Bzc3Nka19yZXZva2VfYmVmb3JlPg0KPHF1ZXN0aW9ubmFpcmVfdXJsLz4NCjwvY250cnlpbmZvPg==</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="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="33">PGNudHJ5aW5mbyB4bWxuczp4c2k9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4c2k6bm9OYW1lc3BhY2VTY2hlbWFMb2NhdGlvbj0iY250cnlpbmZvLnhzZCIgc2tpbl92ZXJzaW9uPSIxIiBnYW1lX2F2YWlsYWJsZV91bnRpbD0iMjEwMC0xMi0zMVQyMzo1OTowMC4wMFoiIGdhbWVfYXZhaWxhYmxlX2Zyb209IjIwMTItMDMtMzBUMTA6MDA6MDAuMDBaIiB2aWRlb19hdmFpbGFibGVfdW50aWw9Ijk5OTktMTItMzFUMjM6NTk6NTkuOTlaIiB2aWRlb19hdmFpbGFibGVfZnJvbT0iMjAxMS0xMS0wN1QxMDowMDowMC4wMFoiIGdhbWVfcmF0aW5nPSJ0cnVlIiB2aWRlb19yYXRpbmc9InRydWUiPg0KPHBzc3Nka19yZXZva2VfYmVmb3JlPjIuMDAuMDI8L3Bzc3Nka19yZXZva2VfYmVmb3JlPg0KPHF1ZXN0aW9ubmFpcmVfdXJsLz4NCjwvY250cnlpbmZvPg==</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>