Fix issues on Modern Windows
This commit is contained in:
parent
6b5663506c
commit
49e29d622b
Binary file not shown.
|
@ -4,7 +4,7 @@
|
||||||
<datafile>
|
<datafile>
|
||||||
<name>libeay32.dll</name>
|
<name>libeay32.dll</name>
|
||||||
<filename>libeay32.dll</filename>
|
<filename>libeay32.dll</filename>
|
||||||
<origname>C:\Users\Li\Documents\git\UGP\UGP.gmx\\\datafiles\libeay32.dll</origname>
|
<origname>C:\Users\Li\Desktop\NuclearWar\UGP\UGP.gmx\\\datafiles\libeay32.dll</origname>
|
||||||
<exists>-1</exists>
|
<exists>-1</exists>
|
||||||
<size>1207808</size>
|
<size>1207808</size>
|
||||||
<exportAction>2</exportAction>
|
<exportAction>2</exportAction>
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
<datafile>
|
<datafile>
|
||||||
<name>UGP.dll</name>
|
<name>UGP.dll</name>
|
||||||
<filename>UGP.dll</filename>
|
<filename>UGP.dll</filename>
|
||||||
<origname>C:\Users\Li\Documents\git\UGP\UGP.gmx\\\datafiles\UGP.dll</origname>
|
<origname>C:\Users\Li\Desktop\NuclearWar\UGP\UGP.gmx\\\datafiles\UGP.dll</origname>
|
||||||
<exists>-1</exists>
|
<exists>-1</exists>
|
||||||
<size>97280</size>
|
<size>97280</size>
|
||||||
<exportAction>2</exportAction>
|
<exportAction>2</exportAction>
|
||||||
|
@ -32,9 +32,9 @@
|
||||||
<datafile>
|
<datafile>
|
||||||
<name>ModuleDownloader.exe</name>
|
<name>ModuleDownloader.exe</name>
|
||||||
<filename>ModuleDownloader.exe</filename>
|
<filename>ModuleDownloader.exe</filename>
|
||||||
<origname>C:\Users\Li\Documents\git\UGP\UGP.gmx\\\datafiles\ModuleDownloader.exe</origname>
|
<origname>C:\Users\Li\Desktop\NuclearWar\UGP\Visual Studio Projects\ModuleDownloader\DownloadModules\bin\Release\ModuleDownloader.exe</origname>
|
||||||
<exists>-1</exists>
|
<exists>-1</exists>
|
||||||
<size>2146816</size>
|
<size>2147328</size>
|
||||||
<exportAction>2</exportAction>
|
<exportAction>2</exportAction>
|
||||||
<exportDir></exportDir>
|
<exportDir></exportDir>
|
||||||
<overwrite>0</overwrite>
|
<overwrite>0</overwrite>
|
||||||
|
@ -249,7 +249,7 @@
|
||||||
</objects>
|
</objects>
|
||||||
</objects>
|
</objects>
|
||||||
</objects>
|
</objects>
|
||||||
<rooms name="rooms" roommaxid="100003" room_maxtileid="10000000">
|
<rooms name="rooms" roommaxid="100000" room_maxtileid="10000000">
|
||||||
<room>rooms\rm_product_select</room>
|
<room>rooms\rm_product_select</room>
|
||||||
<room>rooms\rm_crack_gm8</room>
|
<room>rooms\rm_crack_gm8</room>
|
||||||
<room>rooms\rm_crack_studio</room>
|
<room>rooms\rm_crack_studio</room>
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,13 +1,13 @@
|
||||||
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
|
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
|
||||||
<sound>
|
<sound>
|
||||||
<kind>1</kind>
|
<kind>3</kind>
|
||||||
<extension>.mid</extension>
|
<extension>.mp3</extension>
|
||||||
<origname>C:\Users\Li\Documents\git\UGP\UGP.gmx\\\sound\audio\snd_mus.mid</origname>
|
<origname>snd_mus.mp3</origname>
|
||||||
<effects>0</effects>
|
<effects>0</effects>
|
||||||
<volume>1</volume>
|
<volume>1</volume>
|
||||||
<pan>0</pan>
|
<pan>0</pan>
|
||||||
<mp3BitRate>192</mp3BitRate>
|
<mp3BitRate>192</mp3BitRate>
|
||||||
<oggQuality>6</oggQuality>
|
<oggQuality>6</oggQuality>
|
||||||
<preload>-1</preload>
|
<preload>-1</preload>
|
||||||
<data>snd_mus.mid</data>
|
<data>snd_mus.mp3</data>
|
||||||
</sound>
|
</sound>
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -33,7 +33,7 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="BouncyCastle.Crypto">
|
<Reference Include="BouncyCastle.Crypto">
|
||||||
<HintPath>..\..\..\..\AppData\Roaming\GameMaker-Studio\BouncyCastle.Crypto.dll</HintPath>
|
<HintPath>..\..\..\..\..\..\AppData\Roaming\GameMaker\BouncyCastle.Crypto.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="HtmlAgilityPack, Version=1.11.33.0, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="HtmlAgilityPack, Version=1.11.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\HtmlAgilityPack.1.11.33\lib\Net35\HtmlAgilityPack.dll</HintPath>
|
<HintPath>..\packages\HtmlAgilityPack.1.11.33\lib\Net35\HtmlAgilityPack.dll</HintPath>
|
||||||
|
@ -56,12 +56,12 @@
|
||||||
<Compile Include="downloadForm.cs">
|
<Compile Include="downloadForm.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Form1.Designer.cs">
|
<Compile Include="downloadForm.Designer.cs">
|
||||||
<DependentUpon>downloadForm.cs</DependentUpon>
|
<DependentUpon>downloadForm.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Program.cs" />
|
<Compile Include="Program.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
<EmbeddedResource Include="Form1.resx">
|
<EmbeddedResource Include="downloadForm.resx">
|
||||||
<DependentUpon>downloadForm.cs</DependentUpon>
|
<DependentUpon>downloadForm.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="Properties\Resources.resx">
|
<EmbeddedResource Include="Properties\Resources.resx">
|
||||||
|
|
|
@ -1,77 +1,77 @@
|
||||||
|
|
||||||
namespace DownloadModules
|
namespace DownloadModules
|
||||||
{
|
{
|
||||||
partial class downloadForm
|
partial class downloadForm
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private System.ComponentModel.IContainer components = null;
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up any resources being used.
|
/// Clean up any resources being used.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
protected override void Dispose(bool disposing)
|
protected override void Dispose(bool disposing)
|
||||||
{
|
{
|
||||||
if (disposing && (components != null))
|
if (disposing && (components != null))
|
||||||
{
|
{
|
||||||
components.Dispose();
|
components.Dispose();
|
||||||
}
|
}
|
||||||
base.Dispose(disposing);
|
base.Dispose(disposing);
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Windows Form Designer generated code
|
#region Windows Form Designer generated code
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required method for Designer support - do not modify
|
/// Required method for Designer support - do not modify
|
||||||
/// the contents of this method with the code editor.
|
/// the contents of this method with the code editor.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(downloadForm));
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(downloadForm));
|
||||||
this.downloadProgress = new System.Windows.Forms.ProgressBar();
|
this.downloadProgress = new System.Windows.Forms.ProgressBar();
|
||||||
this.downloadStatus = new System.Windows.Forms.Label();
|
this.downloadStatus = new System.Windows.Forms.Label();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// downloadProgress
|
// downloadProgress
|
||||||
//
|
//
|
||||||
this.downloadProgress.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
this.downloadProgress.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.downloadProgress.Location = new System.Drawing.Point(12, 25);
|
this.downloadProgress.Location = new System.Drawing.Point(12, 25);
|
||||||
this.downloadProgress.Name = "downloadProgress";
|
this.downloadProgress.Name = "downloadProgress";
|
||||||
this.downloadProgress.Size = new System.Drawing.Size(828, 23);
|
this.downloadProgress.Size = new System.Drawing.Size(828, 23);
|
||||||
this.downloadProgress.TabIndex = 0;
|
this.downloadProgress.TabIndex = 0;
|
||||||
//
|
//
|
||||||
// downloadStatus
|
// downloadStatus
|
||||||
//
|
//
|
||||||
this.downloadStatus.AutoSize = true;
|
this.downloadStatus.AutoSize = true;
|
||||||
this.downloadStatus.Location = new System.Drawing.Point(12, 9);
|
this.downloadStatus.Location = new System.Drawing.Point(12, 9);
|
||||||
this.downloadStatus.Name = "downloadStatus";
|
this.downloadStatus.Name = "downloadStatus";
|
||||||
this.downloadStatus.Size = new System.Drawing.Size(104, 13);
|
this.downloadStatus.Size = new System.Drawing.Size(104, 13);
|
||||||
this.downloadStatus.TabIndex = 1;
|
this.downloadStatus.TabIndex = 1;
|
||||||
this.downloadStatus.Text = "Reading license.plist";
|
this.downloadStatus.Text = "Reading license.plist";
|
||||||
//
|
//
|
||||||
// downloadForm
|
// downloadForm
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.ClientSize = new System.Drawing.Size(852, 62);
|
this.ClientSize = new System.Drawing.Size(852, 62);
|
||||||
this.Controls.Add(this.downloadStatus);
|
this.Controls.Add(this.downloadStatus);
|
||||||
this.Controls.Add(this.downloadProgress);
|
this.Controls.Add(this.downloadProgress);
|
||||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
this.Name = "downloadForm";
|
this.Name = "downloadForm";
|
||||||
this.Text = "GameMaker Exports Downloader";
|
this.Text = "GameMaker Exports Downloader";
|
||||||
this.Load += new System.EventHandler(this.downloadForm_Load);
|
this.Load += new System.EventHandler(this.downloadForm_Load);
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
this.PerformLayout();
|
this.PerformLayout();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
private System.Windows.Forms.ProgressBar downloadProgress;
|
private System.Windows.Forms.ProgressBar downloadProgress;
|
||||||
private System.Windows.Forms.Label downloadStatus;
|
private System.Windows.Forms.Label downloadStatus;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -141,31 +141,29 @@ namespace DownloadModules
|
||||||
}
|
}
|
||||||
catch (Exception) { };
|
catch (Exception) { };
|
||||||
|
|
||||||
|
|
||||||
|
if (Urls.Count > 0)
|
||||||
|
{
|
||||||
|
CurrentFile = pop();
|
||||||
|
DownloadLocation = Path.Combine(Path.Combine(Path.Combine(Environment.GetEnvironmentVariable("LOCALAPPDATA"), "GameMaker-Studio"), "UpgradeZip"), Path.GetFileName(CurrentFile));
|
||||||
|
|
||||||
|
wc.DownloadFileAsync(new Uri(CurrentFile), DownloadLocation);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Application.Exit();
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
extractThread.Start();
|
extractThread.Start();
|
||||||
|
|
||||||
while (extractThread.IsAlive)
|
|
||||||
Application.DoEvents();
|
|
||||||
|
|
||||||
|
|
||||||
if (Urls.Count > 0)
|
|
||||||
{
|
|
||||||
CurrentFile = pop();
|
|
||||||
DownloadLocation = Path.Combine(Path.Combine(Path.Combine(Environment.GetEnvironmentVariable("LOCALAPPDATA"), "GameMaker-Studio"), "UpgradeZip"), Path.GetFileName(CurrentFile));
|
|
||||||
|
|
||||||
wc.DownloadFileAsync(new Uri(CurrentFile), DownloadLocation);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Application.Exit();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
private void Wc_DownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e)
|
private void Wc_DownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e)
|
||||||
{
|
{
|
||||||
downloadProgress.Value = e.ProgressPercentage;
|
downloadProgress.Value = e.ProgressPercentage;
|
||||||
downloadStatus.Text = "Downloading: (File "+fileCount.ToString()+"/"+filesToDownload.ToString()+") "+Path.GetFileName(CurrentFile)+" "+e.BytesReceived.ToString()+"/"+e.TotalBytesToReceive.ToString()+" "+e.ProgressPercentage.ToString()+"%";
|
downloadStatus.Text = "Downloading: (File "+fileCount.ToString()+"/"+filesToDownload.ToString()+") "+Path.GetFileName(CurrentFile)+" "+e.BytesReceived.ToString()+"/"+e.TotalBytesToReceive.ToString()+" "+e.ProgressPercentage.ToString()+"%";
|
||||||
Application.DoEvents();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue