Merge pull request #4 from KuromeSan/V1.7.5

Upload V1.7.5 Src
This commit is contained in:
Bluzume 2020-01-14 04:32:32 +13:00 committed by GitHub
commit effd1ef436
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
28 changed files with 23902 additions and 23902 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup>
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup>
</configuration>

View File

@ -1,66 +1,66 @@
using System;
using System.Runtime.InteropServices;
namespace GayMaker
{
class GMAC
{
public enum FileMapProtection : uint
{
PageReadonly = 0x02,
PageReadWrite = 0x04,
PageWriteCopy = 0x08,
PageExecuteRead = 0x20,
PageExecuteReadWrite = 0x40,
SectionCommit = 0x8000000,
SectionImage = 0x1000000,
SectionNoCache = 0x10000000,
SectionReserve = 0x4000000,
}
public enum FileMapAccess : uint
{
FileMapCopy = 0x0001,
FileMapWrite = 0x0002,
FileMapRead = 0x0004,
FileMapReadWrite = 0x0006,
FileMapAllAccess = 0x001f,
FileMapExecute = 0x0020,
}
[DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern IntPtr CreateFileMapping(
IntPtr hFile,
IntPtr lpFileMappingAttributes,
FileMapProtection flProtect,
uint dwMaximumSizeHigh,
uint dwMaximumSizeLow,
string lpName
);
[DllImport("kernel32", SetLastError = true)]
public static extern IntPtr MapViewOfFile(IntPtr intptr_0, FileMapAccess dwDesiredAccess, int int_5, int int_6, IntPtr intptr_1);
[DllImport("kernel32", CharSet = CharSet.Auto, SetLastError = true)]
public static extern IntPtr OpenFileMapping(
FileMapAccess dwDesiredAccess,
bool bInheritHandle,
string lpName
);
[DllImport("kernel32", SetLastError = true)]
public static extern bool CloseHandle(IntPtr intptr_0);
public static void GetPermissionToExecute()
{
IntPtr Create = CreateFileMapping(new IntPtr(-1), IntPtr.Zero, FileMapProtection.PageReadWrite, 0x0, 0x1000, "YYMappingFileTestYY");
IntPtr DaFile = OpenFileMapping(FileMapAccess.FileMapWrite, false, "YYMappingFileTestYY");
IntPtr MapView = MapViewOfFile(DaFile, FileMapAccess.FileMapWrite, 0, 0, new IntPtr(4));
Marshal.WriteInt32(MapView, (int)(DateTime.Now - new DateTime(1970, 1, 1, 0, 0, 0)).TotalSeconds);
CloseHandle(DaFile);
}
}
}
using System;
using System.Runtime.InteropServices;
namespace GayMaker
{
class GMAC
{
public enum FileMapProtection : uint
{
PageReadonly = 0x02,
PageReadWrite = 0x04,
PageWriteCopy = 0x08,
PageExecuteRead = 0x20,
PageExecuteReadWrite = 0x40,
SectionCommit = 0x8000000,
SectionImage = 0x1000000,
SectionNoCache = 0x10000000,
SectionReserve = 0x4000000,
}
public enum FileMapAccess : uint
{
FileMapCopy = 0x0001,
FileMapWrite = 0x0002,
FileMapRead = 0x0004,
FileMapReadWrite = 0x0006,
FileMapAllAccess = 0x001f,
FileMapExecute = 0x0020,
}
[DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern IntPtr CreateFileMapping(
IntPtr hFile,
IntPtr lpFileMappingAttributes,
FileMapProtection flProtect,
uint dwMaximumSizeHigh,
uint dwMaximumSizeLow,
string lpName
);
[DllImport("kernel32", SetLastError = true)]
public static extern IntPtr MapViewOfFile(IntPtr intptr_0, FileMapAccess dwDesiredAccess, int int_5, int int_6, IntPtr intptr_1);
[DllImport("kernel32", CharSet = CharSet.Auto, SetLastError = true)]
public static extern IntPtr OpenFileMapping(
FileMapAccess dwDesiredAccess,
bool bInheritHandle,
string lpName
);
[DllImport("kernel32", SetLastError = true)]
public static extern bool CloseHandle(IntPtr intptr_0);
public static void GetPermissionToExecute()
{
IntPtr Create = CreateFileMapping(new IntPtr(-1), IntPtr.Zero, FileMapProtection.PageReadWrite, 0x0, 0x1000, "YYMappingFileTestYY");
IntPtr DaFile = OpenFileMapping(FileMapAccess.FileMapWrite, false, "YYMappingFileTestYY");
IntPtr MapView = MapViewOfFile(DaFile, FileMapAccess.FileMapWrite, 0, 0, new IntPtr(4));
Marshal.WriteInt32(MapView, (int)(DateTime.Now - new DateTime(1970, 1, 1, 0, 0, 0)).TotalSeconds);
CloseHandle(DaFile);
}
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,158 +1,158 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{F189E983-481E-4740-81B7-13A415D68636}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>GayMaker</RootNamespace>
<AssemblyName>GayMaker</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>icon0.ico</ApplicationIcon>
</PropertyGroup>
<PropertyGroup>
<ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>
<ItemGroup>
<Reference Include="DotNetZip, Version=1.12.0.0, Culture=neutral, PublicKeyToken=6583c7c814667745, processorArchitecture=MSIL">
<HintPath>..\packages\DotNetZip.1.12.0\lib\net20\DotNetZip.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.IO.Compression" />
<Reference Include="System.IO.Compression.FileSystem" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Preferences.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Preferences.Designer.cs">
<DependentUpon>Preferences.cs</DependentUpon>
</Compile>
<Compile Include="VersionManager.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="VersionManager.Designer.cs">
<DependentUpon>VersionManager.cs</DependentUpon>
</Compile>
<Compile Include="GlobalGameSettings.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="GlobalGameSettings.Designer.cs">
<DependentUpon>GlobalGameSettings.cs</DependentUpon>
</Compile>
<Compile Include="GayMaker.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="GayMaker.Designer.cs">
<DependentUpon>GayMaker.cs</DependentUpon>
</Compile>
<Compile Include="GMAC.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Update.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Update.Designer.cs">
<DependentUpon>Update.cs</DependentUpon>
</Compile>
<EmbeddedResource Include="Preferences.resx">
<DependentUpon>Preferences.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="VersionManager.resx">
<DependentUpon>VersionManager.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="GlobalGameSettings.resx">
<DependentUpon>GlobalGameSettings.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="GayMaker.resx">
<DependentUpon>GayMaker.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<EmbeddedResource Include="Update.resx">
<DependentUpon>Update.cs</DependentUpon>
</EmbeddedResource>
<None Include="app.manifest">
<SubType>Designer</SubType>
</None>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\fnames" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Export.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\bg.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\template.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Icons.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Gate.png" />
</ItemGroup>
<ItemGroup>
<Content Include="icon0.ico" />
<None Include="Resources\template.xml" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{F189E983-481E-4740-81B7-13A415D68636}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>GayMaker</RootNamespace>
<AssemblyName>GayMaker</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>icon0.ico</ApplicationIcon>
</PropertyGroup>
<PropertyGroup>
<ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>
<ItemGroup>
<Reference Include="DotNetZip, Version=1.12.0.0, Culture=neutral, PublicKeyToken=6583c7c814667745, processorArchitecture=MSIL">
<HintPath>..\packages\DotNetZip.1.12.0\lib\net20\DotNetZip.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.IO.Compression" />
<Reference Include="System.IO.Compression.FileSystem" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Preferences.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Preferences.Designer.cs">
<DependentUpon>Preferences.cs</DependentUpon>
</Compile>
<Compile Include="VersionManager.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="VersionManager.Designer.cs">
<DependentUpon>VersionManager.cs</DependentUpon>
</Compile>
<Compile Include="GlobalGameSettings.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="GlobalGameSettings.Designer.cs">
<DependentUpon>GlobalGameSettings.cs</DependentUpon>
</Compile>
<Compile Include="GayMaker.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="GayMaker.Designer.cs">
<DependentUpon>GayMaker.cs</DependentUpon>
</Compile>
<Compile Include="GMAC.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Update.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Update.Designer.cs">
<DependentUpon>Update.cs</DependentUpon>
</Compile>
<EmbeddedResource Include="Preferences.resx">
<DependentUpon>Preferences.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="VersionManager.resx">
<DependentUpon>VersionManager.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="GlobalGameSettings.resx">
<DependentUpon>GlobalGameSettings.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="GayMaker.resx">
<DependentUpon>GayMaker.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<EmbeddedResource Include="Update.resx">
<DependentUpon>Update.cs</DependentUpon>
</EmbeddedResource>
<None Include="app.manifest">
<SubType>Designer</SubType>
</None>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\fnames" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Export.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\bg.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\template.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Icons.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Gate.png" />
</ItemGroup>
<ItemGroup>
<Content Include="icon0.ico" />
<None Include="Resources\template.xml" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

File diff suppressed because it is too large Load Diff

View File

@ -1,218 +1,218 @@
namespace GayMaker
{
partial class GlobalGameSettings
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(GlobalGameSettings));
this.panel1 = new System.Windows.Forms.Panel();
this.TexturePageSize = new System.Windows.Forms.ComboBox();
this.FullScale = new System.Windows.Forms.RadioButton();
this.AspectRatio = new System.Windows.Forms.RadioButton();
this.label3 = new System.Windows.Forms.Label();
this.Interporlate = new System.Windows.Forms.CheckBox();
this.Options = new System.Windows.Forms.Label();
this.FrontTouchPad = new System.Windows.Forms.CheckBox();
this.RearTouchPad = new System.Windows.Forms.CheckBox();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.Save = new System.Windows.Forms.Button();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// panel1
//
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.panel1.Controls.Add(this.TexturePageSize);
this.panel1.Controls.Add(this.FullScale);
this.panel1.Controls.Add(this.AspectRatio);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.Interporlate);
this.panel1.Controls.Add(this.Options);
this.panel1.Controls.Add(this.FrontTouchPad);
this.panel1.Controls.Add(this.RearTouchPad);
this.panel1.Controls.Add(this.label2);
this.panel1.Location = new System.Drawing.Point(15, 25);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(235, 164);
this.panel1.TabIndex = 0;
//
// TexturePageSize
//
this.TexturePageSize.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.TexturePageSize.FormattingEnabled = true;
this.TexturePageSize.Items.AddRange(new object[] {
"256",
"512",
"1024",
"2048",
"4096",
"8192"});
this.TexturePageSize.Location = new System.Drawing.Point(124, 130);
this.TexturePageSize.Name = "TexturePageSize";
this.TexturePageSize.Size = new System.Drawing.Size(94, 21);
this.TexturePageSize.TabIndex = 8;
//
// FullScale
//
this.FullScale.AutoSize = true;
this.FullScale.Location = new System.Drawing.Point(6, 135);
this.FullScale.Name = "FullScale";
this.FullScale.Size = new System.Drawing.Size(69, 17);
this.FullScale.TabIndex = 7;
this.FullScale.TabStop = true;
this.FullScale.Text = "Full scale";
this.FullScale.UseVisualStyleBackColor = true;
//
// AspectRatio
//
this.AspectRatio.AutoSize = true;
this.AspectRatio.Location = new System.Drawing.Point(6, 112);
this.AspectRatio.Name = "AspectRatio";
this.AspectRatio.Size = new System.Drawing.Size(108, 17);
this.AspectRatio.TabIndex = 6;
this.AspectRatio.TabStop = true;
this.AspectRatio.Text = "Keep aspect ratio";
this.AspectRatio.UseVisualStyleBackColor = true;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(3, 96);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(81, 13);
this.label3.TabIndex = 5;
this.label3.Text = "Scaling Options";
//
// Interporlate
//
this.Interporlate.AutoSize = true;
this.Interporlate.Location = new System.Drawing.Point(4, 21);
this.Interporlate.Name = "Interporlate";
this.Interporlate.Size = new System.Drawing.Size(183, 17);
this.Interporlate.TabIndex = 4;
this.Interporlate.Text = "Interporlate colors between pixels";
this.Interporlate.UseVisualStyleBackColor = true;
//
// Options
//
this.Options.AutoSize = true;
this.Options.Location = new System.Drawing.Point(1, 5);
this.Options.Name = "Options";
this.Options.Size = new System.Drawing.Size(43, 13);
this.Options.TabIndex = 3;
this.Options.Text = "Options";
//
// FrontTouchPad
//
this.FrontTouchPad.AutoSize = true;
this.FrontTouchPad.Location = new System.Drawing.Point(3, 67);
this.FrontTouchPad.Name = "FrontTouchPad";
this.FrontTouchPad.Size = new System.Drawing.Size(120, 17);
this.FrontTouchPad.TabIndex = 2;
this.FrontTouchPad.Text = "Enable Front Touch";
this.FrontTouchPad.UseVisualStyleBackColor = true;
//
// RearTouchPad
//
this.RearTouchPad.AutoSize = true;
this.RearTouchPad.Location = new System.Drawing.Point(3, 44);
this.RearTouchPad.Name = "RearTouchPad";
this.RearTouchPad.Size = new System.Drawing.Size(119, 17);
this.RearTouchPad.TabIndex = 0;
this.RearTouchPad.Text = "Enable Rear Touch";
this.RearTouchPad.UseVisualStyleBackColor = true;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(121, 114);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(97, 13);
this.label2.TabIndex = 2;
this.label2.Text = "Texture Page Size:";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(17, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(112, 13);
this.label1.TabIndex = 1;
this.label1.Text = "Global Game Settings:";
//
// Save
//
this.Save.Location = new System.Drawing.Point(15, 195);
this.Save.Name = "Save";
this.Save.Size = new System.Drawing.Size(235, 23);
this.Save.TabIndex = 2;
this.Save.Text = "Save Changes";
this.Save.UseVisualStyleBackColor = true;
this.Save.Click += new System.EventHandler(this.Save_Click);
//
// GlobalGameSettings
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(262, 230);
this.Controls.Add(this.Save);
this.Controls.Add(this.label1);
this.Controls.Add(this.panel1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.KeyPreview = true;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "GlobalGameSettings";
this.ShowInTaskbar = false;
this.Text = "Global Game Settings";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.GlobalGameSettings_FormClosing);
this.Load += new System.EventHandler(this.GlobalGameSettings_Load);
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.GlobalGameSettings_KeyDown);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.CheckBox FrontTouchPad;
private System.Windows.Forms.CheckBox RearTouchPad;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button Save;
private System.Windows.Forms.RadioButton FullScale;
private System.Windows.Forms.RadioButton AspectRatio;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.CheckBox Interporlate;
private System.Windows.Forms.Label Options;
private System.Windows.Forms.ComboBox TexturePageSize;
}
namespace GayMaker
{
partial class GlobalGameSettings
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(GlobalGameSettings));
this.panel1 = new System.Windows.Forms.Panel();
this.TexturePageSize = new System.Windows.Forms.ComboBox();
this.FullScale = new System.Windows.Forms.RadioButton();
this.AspectRatio = new System.Windows.Forms.RadioButton();
this.label3 = new System.Windows.Forms.Label();
this.Interporlate = new System.Windows.Forms.CheckBox();
this.Options = new System.Windows.Forms.Label();
this.FrontTouchPad = new System.Windows.Forms.CheckBox();
this.RearTouchPad = new System.Windows.Forms.CheckBox();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.Save = new System.Windows.Forms.Button();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// panel1
//
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.panel1.Controls.Add(this.TexturePageSize);
this.panel1.Controls.Add(this.FullScale);
this.panel1.Controls.Add(this.AspectRatio);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.Interporlate);
this.panel1.Controls.Add(this.Options);
this.panel1.Controls.Add(this.FrontTouchPad);
this.panel1.Controls.Add(this.RearTouchPad);
this.panel1.Controls.Add(this.label2);
this.panel1.Location = new System.Drawing.Point(15, 25);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(235, 164);
this.panel1.TabIndex = 0;
//
// TexturePageSize
//
this.TexturePageSize.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.TexturePageSize.FormattingEnabled = true;
this.TexturePageSize.Items.AddRange(new object[] {
"256",
"512",
"1024",
"2048",
"4096",
"8192"});
this.TexturePageSize.Location = new System.Drawing.Point(124, 130);
this.TexturePageSize.Name = "TexturePageSize";
this.TexturePageSize.Size = new System.Drawing.Size(94, 21);
this.TexturePageSize.TabIndex = 8;
//
// FullScale
//
this.FullScale.AutoSize = true;
this.FullScale.Location = new System.Drawing.Point(6, 135);
this.FullScale.Name = "FullScale";
this.FullScale.Size = new System.Drawing.Size(69, 17);
this.FullScale.TabIndex = 7;
this.FullScale.TabStop = true;
this.FullScale.Text = "Full scale";
this.FullScale.UseVisualStyleBackColor = true;
//
// AspectRatio
//
this.AspectRatio.AutoSize = true;
this.AspectRatio.Location = new System.Drawing.Point(6, 112);
this.AspectRatio.Name = "AspectRatio";
this.AspectRatio.Size = new System.Drawing.Size(108, 17);
this.AspectRatio.TabIndex = 6;
this.AspectRatio.TabStop = true;
this.AspectRatio.Text = "Keep aspect ratio";
this.AspectRatio.UseVisualStyleBackColor = true;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(3, 96);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(81, 13);
this.label3.TabIndex = 5;
this.label3.Text = "Scaling Options";
//
// Interporlate
//
this.Interporlate.AutoSize = true;
this.Interporlate.Location = new System.Drawing.Point(4, 21);
this.Interporlate.Name = "Interporlate";
this.Interporlate.Size = new System.Drawing.Size(183, 17);
this.Interporlate.TabIndex = 4;
this.Interporlate.Text = "Interporlate colors between pixels";
this.Interporlate.UseVisualStyleBackColor = true;
//
// Options
//
this.Options.AutoSize = true;
this.Options.Location = new System.Drawing.Point(1, 5);
this.Options.Name = "Options";
this.Options.Size = new System.Drawing.Size(43, 13);
this.Options.TabIndex = 3;
this.Options.Text = "Options";
//
// FrontTouchPad
//
this.FrontTouchPad.AutoSize = true;
this.FrontTouchPad.Location = new System.Drawing.Point(3, 67);
this.FrontTouchPad.Name = "FrontTouchPad";
this.FrontTouchPad.Size = new System.Drawing.Size(120, 17);
this.FrontTouchPad.TabIndex = 2;
this.FrontTouchPad.Text = "Enable Front Touch";
this.FrontTouchPad.UseVisualStyleBackColor = true;
//
// RearTouchPad
//
this.RearTouchPad.AutoSize = true;
this.RearTouchPad.Location = new System.Drawing.Point(3, 44);
this.RearTouchPad.Name = "RearTouchPad";
this.RearTouchPad.Size = new System.Drawing.Size(119, 17);
this.RearTouchPad.TabIndex = 0;
this.RearTouchPad.Text = "Enable Rear Touch";
this.RearTouchPad.UseVisualStyleBackColor = true;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(121, 114);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(97, 13);
this.label2.TabIndex = 2;
this.label2.Text = "Texture Page Size:";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(17, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(112, 13);
this.label1.TabIndex = 1;
this.label1.Text = "Global Game Settings:";
//
// Save
//
this.Save.Location = new System.Drawing.Point(15, 195);
this.Save.Name = "Save";
this.Save.Size = new System.Drawing.Size(235, 23);
this.Save.TabIndex = 2;
this.Save.Text = "Save Changes";
this.Save.UseVisualStyleBackColor = true;
this.Save.Click += new System.EventHandler(this.Save_Click);
//
// GlobalGameSettings
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(262, 230);
this.Controls.Add(this.Save);
this.Controls.Add(this.label1);
this.Controls.Add(this.panel1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.KeyPreview = true;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "GlobalGameSettings";
this.ShowInTaskbar = false;
this.Text = "Global Game Settings";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.GlobalGameSettings_FormClosing);
this.Load += new System.EventHandler(this.GlobalGameSettings_Load);
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.GlobalGameSettings_KeyDown);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.CheckBox FrontTouchPad;
private System.Windows.Forms.CheckBox RearTouchPad;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button Save;
private System.Windows.Forms.RadioButton FullScale;
private System.Windows.Forms.RadioButton AspectRatio;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.CheckBox Interporlate;
private System.Windows.Forms.Label Options;
private System.Windows.Forms.ComboBox TexturePageSize;
}
}

View File

@ -1,228 +1,228 @@
//IDC that my code is shit:
#pragma warning disable IDE1006
#pragma warning disable IDE0017
using System;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
using System.Xml;
namespace GayMaker
{
public partial class GlobalGameSettings : Form
{
bool RearTouchEnabled = false;
bool FrontTouchEnabled = false;
bool IntorpolateEnabled = false;
bool MakeFullScale = true;
bool KeepAspectRatio = false;
int PageSize = 2048;
String ProjectPath;
XmlDocument DefaultConfig = new XmlDocument();
public GlobalGameSettings()
{
//Bypass Windows DPI Scaling
Font = new Font(Font.Name, 8.25f * 96f / CreateGraphics().DpiX, Font.Style, Font.Unit, Font.GdiCharSet, Font.GdiVerticalFont);
InitializeComponent();
}
private void GlobalGameSettings_Load(object sender, EventArgs e)
{
Program.GM.Enabled = false;
ProjectPath = Path.GetDirectoryName(Program.GM.GetProjectPath());
Console.WriteLine(ProjectPath);
DefaultConfig.Load(ProjectPath + "\\Configs\\Default.config.gmx");
XmlNode FT = DefaultConfig.GetElementsByTagName("option_psvita_fronttouch")[0];
XmlNode RT = DefaultConfig.GetElementsByTagName("option_psvita_reartouch")[0];
XmlNode TP = DefaultConfig.GetElementsByTagName("option_psvita_texture_page")[0];
XmlNode IT = DefaultConfig.GetElementsByTagName("option_psvita_interpolate")[0];
XmlNode SC = DefaultConfig.GetElementsByTagName("option_psvita_scale")[0];
try
{
//If global game settings was never opened then its true/false for some reason
if (bool.Parse(FT.InnerText))
{
FrontTouchEnabled = true;
}
else
{
FrontTouchEnabled = false;
}
if(bool.Parse(RT.InnerText))
{
RearTouchEnabled = true;
}
else
{
RearTouchEnabled = false;
}
if(bool.Parse(IT.InnerText))
{
IntorpolateEnabled = true;
}
else
{
IntorpolateEnabled = false;
}
}
catch
{
//Otherwise its -1 / 0 (GM IS WEIRD)
if (int.Parse(FT.InnerText) == 0)
{
FrontTouchEnabled = false;
}
else
{
FrontTouchEnabled = true;
}
if (int.Parse(RT.InnerText) == 0)
{
RearTouchEnabled = false;
}
else
{
RearTouchEnabled = true;
}
if (int.Parse(IT.InnerText) == 0)
{
IntorpolateEnabled = false;
}
else
{
IntorpolateEnabled = true;
}
};
if (int.Parse(SC.InnerText) == 0)
{
MakeFullScale = true;
KeepAspectRatio = false;
}
else
{
MakeFullScale = false;
KeepAspectRatio = true;
}
PageSize = int.Parse(TP.InnerText);
//Update Form
FrontTouchPad.Checked = FrontTouchEnabled;
RearTouchPad.Checked = RearTouchEnabled;
Interporlate.Checked = IntorpolateEnabled;
FullScale.Checked = MakeFullScale;
AspectRatio.Checked = KeepAspectRatio;
TexturePageSize.Text = PageSize.ToString();
}
private void Save_Click(object sender, EventArgs e)
{
try
{
if (FrontTouchPad.Checked)
{
XmlNode FT = DefaultConfig.GetElementsByTagName("option_psvita_fronttouch")[0];
FT.InnerText = "-1";
}
else
{
XmlNode FT = DefaultConfig.GetElementsByTagName("option_psvita_fronttouch")[0];
FT.InnerText = "0";
}
if (RearTouchPad.Checked)
{
XmlNode RT = DefaultConfig.GetElementsByTagName("option_psvita_reartouch")[0];
RT.InnerText = "-1";
}
else
{
XmlNode RT = DefaultConfig.GetElementsByTagName("option_psvita_reartouch")[0];
RT.InnerText = "0";
}
if (Interporlate.Checked)
{
XmlNode IT = DefaultConfig.GetElementsByTagName("option_psvita_interpolate")[0];
IT.InnerText = "-1";
}
else
{
XmlNode IT = DefaultConfig.GetElementsByTagName("option_psvita_interpolate")[0];
IT.InnerText = "0";
}
if(AspectRatio.Checked)
{
XmlNode SC = DefaultConfig.GetElementsByTagName("option_psvita_scale")[0];
SC.InnerText = "-1";
}
else
{
XmlNode SC = DefaultConfig.GetElementsByTagName("option_psvita_scale")[0];
SC.InnerText = "0";
}
XmlNode TP = DefaultConfig.GetElementsByTagName("option_psvita_texture_page")[0];
TP.InnerText = TexturePageSize.Text;
//Save without creating newlines (i dont think it really matters but its good to be as accurate as possible)
XmlWriterSettings settings = new XmlWriterSettings { Indent = true, OmitXmlDeclaration = true };
XmlWriter writer = XmlWriter.Create(ProjectPath + "\\Configs\\Default.config.gmx", settings);
DefaultConfig.Save(writer);
writer.Close();
}
catch(Exception)
{
MessageBox.Show("There was an error while saving settings!","Error",MessageBoxButtons.OK,MessageBoxIcon.Error);
}
Program.GM.Enabled = true;
Close();
}
private void GlobalGameSettings_KeyDown(object sender, KeyEventArgs e)
{
//Keyboard Shortcuts are Nice.
if(e.KeyCode == Keys.Enter)
{
Save_Click(null, null);
}
else if(e.KeyCode == Keys.Escape)
{
Program.GM.Enabled = true;
Close();
}
}
private void GlobalGameSettings_FormClosing(object sender, FormClosingEventArgs e)
{
Program.GM.Enabled = true;
}
}
}
//IDC that my code is shit:
#pragma warning disable IDE1006
#pragma warning disable IDE0017
using System;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
using System.Xml;
namespace GayMaker
{
public partial class GlobalGameSettings : Form
{
bool RearTouchEnabled = false;
bool FrontTouchEnabled = false;
bool IntorpolateEnabled = false;
bool MakeFullScale = true;
bool KeepAspectRatio = false;
int PageSize = 2048;
String ProjectPath;
XmlDocument DefaultConfig = new XmlDocument();
public GlobalGameSettings()
{
//Bypass Windows DPI Scaling
Font = new Font(Font.Name, 8.25f * 96f / CreateGraphics().DpiX, Font.Style, Font.Unit, Font.GdiCharSet, Font.GdiVerticalFont);
InitializeComponent();
}
private void GlobalGameSettings_Load(object sender, EventArgs e)
{
Program.GM.Enabled = false;
ProjectPath = Path.GetDirectoryName(Program.GM.GetProjectPath());
Console.WriteLine(ProjectPath);
DefaultConfig.Load(ProjectPath + "\\Configs\\Default.config.gmx");
XmlNode FT = DefaultConfig.GetElementsByTagName("option_psvita_fronttouch")[0];
XmlNode RT = DefaultConfig.GetElementsByTagName("option_psvita_reartouch")[0];
XmlNode TP = DefaultConfig.GetElementsByTagName("option_psvita_texture_page")[0];
XmlNode IT = DefaultConfig.GetElementsByTagName("option_psvita_interpolate")[0];
XmlNode SC = DefaultConfig.GetElementsByTagName("option_psvita_scale")[0];
try
{
//If global game settings was never opened then its true/false for some reason
if (bool.Parse(FT.InnerText))
{
FrontTouchEnabled = true;
}
else
{
FrontTouchEnabled = false;
}
if(bool.Parse(RT.InnerText))
{
RearTouchEnabled = true;
}
else
{
RearTouchEnabled = false;
}
if(bool.Parse(IT.InnerText))
{
IntorpolateEnabled = true;
}
else
{
IntorpolateEnabled = false;
}
}
catch
{
//Otherwise its -1 / 0 (GM IS WEIRD)
if (int.Parse(FT.InnerText) == 0)
{
FrontTouchEnabled = false;
}
else
{
FrontTouchEnabled = true;
}
if (int.Parse(RT.InnerText) == 0)
{
RearTouchEnabled = false;
}
else
{
RearTouchEnabled = true;
}
if (int.Parse(IT.InnerText) == 0)
{
IntorpolateEnabled = false;
}
else
{
IntorpolateEnabled = true;
}
};
if (int.Parse(SC.InnerText) == 0)
{
MakeFullScale = true;
KeepAspectRatio = false;
}
else
{
MakeFullScale = false;
KeepAspectRatio = true;
}
PageSize = int.Parse(TP.InnerText);
//Update Form
FrontTouchPad.Checked = FrontTouchEnabled;
RearTouchPad.Checked = RearTouchEnabled;
Interporlate.Checked = IntorpolateEnabled;
FullScale.Checked = MakeFullScale;
AspectRatio.Checked = KeepAspectRatio;
TexturePageSize.Text = PageSize.ToString();
}
private void Save_Click(object sender, EventArgs e)
{
try
{
if (FrontTouchPad.Checked)
{
XmlNode FT = DefaultConfig.GetElementsByTagName("option_psvita_fronttouch")[0];
FT.InnerText = "-1";
}
else
{
XmlNode FT = DefaultConfig.GetElementsByTagName("option_psvita_fronttouch")[0];
FT.InnerText = "0";
}
if (RearTouchPad.Checked)
{
XmlNode RT = DefaultConfig.GetElementsByTagName("option_psvita_reartouch")[0];
RT.InnerText = "-1";
}
else
{
XmlNode RT = DefaultConfig.GetElementsByTagName("option_psvita_reartouch")[0];
RT.InnerText = "0";
}
if (Interporlate.Checked)
{
XmlNode IT = DefaultConfig.GetElementsByTagName("option_psvita_interpolate")[0];
IT.InnerText = "-1";
}
else
{
XmlNode IT = DefaultConfig.GetElementsByTagName("option_psvita_interpolate")[0];
IT.InnerText = "0";
}
if(AspectRatio.Checked)
{
XmlNode SC = DefaultConfig.GetElementsByTagName("option_psvita_scale")[0];
SC.InnerText = "-1";
}
else
{
XmlNode SC = DefaultConfig.GetElementsByTagName("option_psvita_scale")[0];
SC.InnerText = "0";
}
XmlNode TP = DefaultConfig.GetElementsByTagName("option_psvita_texture_page")[0];
TP.InnerText = TexturePageSize.Text;
//Save without creating newlines (i dont think it really matters but its good to be as accurate as possible)
XmlWriterSettings settings = new XmlWriterSettings { Indent = true, OmitXmlDeclaration = true };
XmlWriter writer = XmlWriter.Create(ProjectPath + "\\Configs\\Default.config.gmx", settings);
DefaultConfig.Save(writer);
writer.Close();
}
catch(Exception)
{
MessageBox.Show("There was an error while saving settings!","Error",MessageBoxButtons.OK,MessageBoxIcon.Error);
}
Program.GM.Enabled = true;
Close();
}
private void GlobalGameSettings_KeyDown(object sender, KeyEventArgs e)
{
//Keyboard Shortcuts are Nice.
if(e.KeyCode == Keys.Enter)
{
Save_Click(null, null);
}
else if(e.KeyCode == Keys.Escape)
{
Program.GM.Enabled = true;
Close();
}
}
private void GlobalGameSettings_FormClosing(object sender, FormClosingEventArgs e)
{
Program.GM.Enabled = true;
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -1,275 +1,275 @@
namespace GayMaker
{
partial class Preferences
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Preferences));
this.panel1 = new System.Windows.Forms.Panel();
this.browse = new System.Windows.Forms.Button();
this.pathLabel = new System.Windows.Forms.Label();
this.SDKDir = new System.Windows.Forms.TextBox();
this.unOfficalSDK = new System.Windows.Forms.RadioButton();
this.label2 = new System.Windows.Forms.Label();
this.officalSDK = new System.Windows.Forms.RadioButton();
this.label1 = new System.Windows.Forms.Label();
this.panel2 = new System.Windows.Forms.Panel();
this.IndexedColor = new System.Windows.Forms.CheckBox();
this.SaveLast = new System.Windows.Forms.CheckBox();
this.Updates = new System.Windows.Forms.CheckBox();
this.label3 = new System.Windows.Forms.Label();
this.SaveChanges = new System.Windows.Forms.Button();
this.label4 = new System.Windows.Forms.Label();
this.VcVarsBatDir = new System.Windows.Forms.TextBox();
this.browseVCVARS = new System.Windows.Forms.Button();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.SuspendLayout();
//
// panel1
//
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.panel1.Controls.Add(this.browseVCVARS);
this.panel1.Controls.Add(this.VcVarsBatDir);
this.panel1.Controls.Add(this.label4);
this.panel1.Controls.Add(this.browse);
this.panel1.Controls.Add(this.pathLabel);
this.panel1.Controls.Add(this.SDKDir);
this.panel1.Controls.Add(this.unOfficalSDK);
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.officalSDK);
this.panel1.Controls.Add(this.label1);
this.panel1.Location = new System.Drawing.Point(12, 12);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(296, 187);
this.panel1.TabIndex = 1;
//
// browse
//
this.browse.Location = new System.Drawing.Point(210, 110);
this.browse.Name = "browse";
this.browse.Size = new System.Drawing.Size(75, 23);
this.browse.TabIndex = 2;
this.browse.Text = "Browse";
this.browse.UseVisualStyleBackColor = true;
this.browse.Click += new System.EventHandler(this.browse_Click);
//
// pathLabel
//
this.pathLabel.AutoSize = true;
this.pathLabel.Location = new System.Drawing.Point(7, 97);
this.pathLabel.Name = "pathLabel";
this.pathLabel.Size = new System.Drawing.Size(76, 13);
this.pathLabel.TabIndex = 2;
this.pathLabel.Text = "SDK Location:";
//
// SDKDir
//
this.SDKDir.Location = new System.Drawing.Point(10, 113);
this.SDKDir.Name = "SDKDir";
this.SDKDir.Size = new System.Drawing.Size(193, 20);
this.SDKDir.TabIndex = 2;
//
// unOfficalSDK
//
this.unOfficalSDK.AutoSize = true;
this.unOfficalSDK.Enabled = false;
this.unOfficalSDK.Location = new System.Drawing.Point(6, 68);
this.unOfficalSDK.Name = "unOfficalSDK";
this.unOfficalSDK.Size = new System.Drawing.Size(109, 17);
this.unOfficalSDK.TabIndex = 2;
this.unOfficalSDK.Text = "UNOFFICAL SDK";
this.unOfficalSDK.UseVisualStyleBackColor = true;
this.unOfficalSDK.CheckedChanged += new System.EventHandler(this.unOfficalSDK_CheckedChanged);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(7, 29);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(59, 13);
this.label2.TabIndex = 4;
this.label2.Text = "SDK Type:";
//
// officalSDK
//
this.officalSDK.AutoSize = true;
this.officalSDK.Checked = true;
this.officalSDK.Location = new System.Drawing.Point(6, 45);
this.officalSDK.Name = "officalSDK";
this.officalSDK.Size = new System.Drawing.Size(93, 17);
this.officalSDK.TabIndex = 3;
this.officalSDK.TabStop = true;
this.officalSDK.Text = "OFFICAL SDK";
this.officalSDK.UseVisualStyleBackColor = true;
this.officalSDK.CheckedChanged += new System.EventHandler(this.officalSDK_CheckedChanged);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(3, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(70, 13);
this.label1.TabIndex = 2;
this.label1.Text = "YYC Options:";
//
// panel2
//
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.panel2.Controls.Add(this.IndexedColor);
this.panel2.Controls.Add(this.SaveLast);
this.panel2.Controls.Add(this.Updates);
this.panel2.Controls.Add(this.label3);
this.panel2.Location = new System.Drawing.Point(12, 205);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(296, 107);
this.panel2.TabIndex = 2;
//
// IndexedColor
//
this.IndexedColor.AutoSize = true;
this.IndexedColor.Checked = true;
this.IndexedColor.CheckState = System.Windows.Forms.CheckState.Checked;
this.IndexedColor.Location = new System.Drawing.Point(6, 71);
this.IndexedColor.Name = "IndexedColor";
this.IndexedColor.Size = new System.Drawing.Size(176, 17);
this.IndexedColor.TabIndex = 3;
this.IndexedColor.Text = "Convert PNG\'s to Indexed Color";
this.IndexedColor.UseVisualStyleBackColor = true;
//
// SaveLast
//
this.SaveLast.AutoSize = true;
this.SaveLast.Checked = true;
this.SaveLast.CheckState = System.Windows.Forms.CheckState.Checked;
this.SaveLast.Location = new System.Drawing.Point(6, 48);
this.SaveLast.Name = "SaveLast";
this.SaveLast.Size = new System.Drawing.Size(173, 17);
this.SaveLast.TabIndex = 2;
this.SaveLast.Text = "Save last used Project Settings";
this.SaveLast.UseVisualStyleBackColor = true;
//
// Updates
//
this.Updates.AutoSize = true;
this.Updates.Checked = true;
this.Updates.CheckState = System.Windows.Forms.CheckState.Checked;
this.Updates.Location = new System.Drawing.Point(6, 25);
this.Updates.Name = "Updates";
this.Updates.Size = new System.Drawing.Size(115, 17);
this.Updates.TabIndex = 1;
this.Updates.Text = "Check for Updates";
this.Updates.UseVisualStyleBackColor = true;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(3, 0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(98, 13);
this.label3.TabIndex = 0;
this.label3.Text = "GayMaker Options:";
//
// SaveChanges
//
this.SaveChanges.Location = new System.Drawing.Point(12, 318);
this.SaveChanges.Name = "SaveChanges";
this.SaveChanges.Size = new System.Drawing.Size(296, 23);
this.SaveChanges.TabIndex = 3;
this.SaveChanges.Text = "Save Preferences";
this.SaveChanges.UseVisualStyleBackColor = true;
this.SaveChanges.Click += new System.EventHandler(this.SaveChanges_Click);
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(7, 136);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(116, 13);
this.label4.TabIndex = 5;
this.label4.Text = "vcvars32.bat Location:";
//
// VcVarsBatDir
//
this.VcVarsBatDir.Location = new System.Drawing.Point(10, 152);
this.VcVarsBatDir.Name = "VcVarsBatDir";
this.VcVarsBatDir.Size = new System.Drawing.Size(193, 20);
this.VcVarsBatDir.TabIndex = 6;
//
// browseVCVARS
//
this.browseVCVARS.Location = new System.Drawing.Point(210, 149);
this.browseVCVARS.Name = "browseVCVARS";
this.browseVCVARS.Size = new System.Drawing.Size(75, 23);
this.browseVCVARS.TabIndex = 7;
this.browseVCVARS.Text = "Browse";
this.browseVCVARS.UseVisualStyleBackColor = true;
this.browseVCVARS.Click += new System.EventHandler(this.browseVCVARS_Click);
//
// Preferences
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(314, 353);
this.Controls.Add(this.SaveChanges);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "Preferences";
this.ShowInTaskbar = false;
this.Text = "Preferences";
this.Load += new System.EventHandler(this.Preferences_Load);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.RadioButton officalSDK;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button browse;
private System.Windows.Forms.Label pathLabel;
private System.Windows.Forms.TextBox SDKDir;
private System.Windows.Forms.RadioButton unOfficalSDK;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.CheckBox SaveLast;
private System.Windows.Forms.CheckBox Updates;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Button SaveChanges;
private System.Windows.Forms.CheckBox IndexedColor;
private System.Windows.Forms.Button browseVCVARS;
private System.Windows.Forms.TextBox VcVarsBatDir;
private System.Windows.Forms.Label label4;
}
namespace GayMaker
{
partial class Preferences
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Preferences));
this.panel1 = new System.Windows.Forms.Panel();
this.browse = new System.Windows.Forms.Button();
this.pathLabel = new System.Windows.Forms.Label();
this.SDKDir = new System.Windows.Forms.TextBox();
this.unOfficalSDK = new System.Windows.Forms.RadioButton();
this.label2 = new System.Windows.Forms.Label();
this.officalSDK = new System.Windows.Forms.RadioButton();
this.label1 = new System.Windows.Forms.Label();
this.panel2 = new System.Windows.Forms.Panel();
this.IndexedColor = new System.Windows.Forms.CheckBox();
this.SaveLast = new System.Windows.Forms.CheckBox();
this.Updates = new System.Windows.Forms.CheckBox();
this.label3 = new System.Windows.Forms.Label();
this.SaveChanges = new System.Windows.Forms.Button();
this.label4 = new System.Windows.Forms.Label();
this.VcVarsBatDir = new System.Windows.Forms.TextBox();
this.browseVCVARS = new System.Windows.Forms.Button();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.SuspendLayout();
//
// panel1
//
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.panel1.Controls.Add(this.browseVCVARS);
this.panel1.Controls.Add(this.VcVarsBatDir);
this.panel1.Controls.Add(this.label4);
this.panel1.Controls.Add(this.browse);
this.panel1.Controls.Add(this.pathLabel);
this.panel1.Controls.Add(this.SDKDir);
this.panel1.Controls.Add(this.unOfficalSDK);
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.officalSDK);
this.panel1.Controls.Add(this.label1);
this.panel1.Location = new System.Drawing.Point(12, 12);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(296, 187);
this.panel1.TabIndex = 1;
//
// browse
//
this.browse.Location = new System.Drawing.Point(210, 110);
this.browse.Name = "browse";
this.browse.Size = new System.Drawing.Size(75, 23);
this.browse.TabIndex = 2;
this.browse.Text = "Browse";
this.browse.UseVisualStyleBackColor = true;
this.browse.Click += new System.EventHandler(this.browse_Click);
//
// pathLabel
//
this.pathLabel.AutoSize = true;
this.pathLabel.Location = new System.Drawing.Point(7, 97);
this.pathLabel.Name = "pathLabel";
this.pathLabel.Size = new System.Drawing.Size(76, 13);
this.pathLabel.TabIndex = 2;
this.pathLabel.Text = "SDK Location:";
//
// SDKDir
//
this.SDKDir.Location = new System.Drawing.Point(10, 113);
this.SDKDir.Name = "SDKDir";
this.SDKDir.Size = new System.Drawing.Size(193, 20);
this.SDKDir.TabIndex = 2;
//
// unOfficalSDK
//
this.unOfficalSDK.AutoSize = true;
this.unOfficalSDK.Enabled = false;
this.unOfficalSDK.Location = new System.Drawing.Point(6, 68);
this.unOfficalSDK.Name = "unOfficalSDK";
this.unOfficalSDK.Size = new System.Drawing.Size(109, 17);
this.unOfficalSDK.TabIndex = 2;
this.unOfficalSDK.Text = "UNOFFICAL SDK";
this.unOfficalSDK.UseVisualStyleBackColor = true;
this.unOfficalSDK.CheckedChanged += new System.EventHandler(this.unOfficalSDK_CheckedChanged);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(7, 29);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(59, 13);
this.label2.TabIndex = 4;
this.label2.Text = "SDK Type:";
//
// officalSDK
//
this.officalSDK.AutoSize = true;
this.officalSDK.Checked = true;
this.officalSDK.Location = new System.Drawing.Point(6, 45);
this.officalSDK.Name = "officalSDK";
this.officalSDK.Size = new System.Drawing.Size(93, 17);
this.officalSDK.TabIndex = 3;
this.officalSDK.TabStop = true;
this.officalSDK.Text = "OFFICAL SDK";
this.officalSDK.UseVisualStyleBackColor = true;
this.officalSDK.CheckedChanged += new System.EventHandler(this.officalSDK_CheckedChanged);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(3, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(70, 13);
this.label1.TabIndex = 2;
this.label1.Text = "YYC Options:";
//
// panel2
//
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.panel2.Controls.Add(this.IndexedColor);
this.panel2.Controls.Add(this.SaveLast);
this.panel2.Controls.Add(this.Updates);
this.panel2.Controls.Add(this.label3);
this.panel2.Location = new System.Drawing.Point(12, 205);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(296, 107);
this.panel2.TabIndex = 2;
//
// IndexedColor
//
this.IndexedColor.AutoSize = true;
this.IndexedColor.Checked = true;
this.IndexedColor.CheckState = System.Windows.Forms.CheckState.Checked;
this.IndexedColor.Location = new System.Drawing.Point(6, 71);
this.IndexedColor.Name = "IndexedColor";
this.IndexedColor.Size = new System.Drawing.Size(176, 17);
this.IndexedColor.TabIndex = 3;
this.IndexedColor.Text = "Convert PNG\'s to Indexed Color";
this.IndexedColor.UseVisualStyleBackColor = true;
//
// SaveLast
//
this.SaveLast.AutoSize = true;
this.SaveLast.Checked = true;
this.SaveLast.CheckState = System.Windows.Forms.CheckState.Checked;
this.SaveLast.Location = new System.Drawing.Point(6, 48);
this.SaveLast.Name = "SaveLast";
this.SaveLast.Size = new System.Drawing.Size(173, 17);
this.SaveLast.TabIndex = 2;
this.SaveLast.Text = "Save last used Project Settings";
this.SaveLast.UseVisualStyleBackColor = true;
//
// Updates
//
this.Updates.AutoSize = true;
this.Updates.Checked = true;
this.Updates.CheckState = System.Windows.Forms.CheckState.Checked;
this.Updates.Location = new System.Drawing.Point(6, 25);
this.Updates.Name = "Updates";
this.Updates.Size = new System.Drawing.Size(115, 17);
this.Updates.TabIndex = 1;
this.Updates.Text = "Check for Updates";
this.Updates.UseVisualStyleBackColor = true;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(3, 0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(98, 13);
this.label3.TabIndex = 0;
this.label3.Text = "GayMaker Options:";
//
// SaveChanges
//
this.SaveChanges.Location = new System.Drawing.Point(12, 318);
this.SaveChanges.Name = "SaveChanges";
this.SaveChanges.Size = new System.Drawing.Size(296, 23);
this.SaveChanges.TabIndex = 3;
this.SaveChanges.Text = "Save Preferences";
this.SaveChanges.UseVisualStyleBackColor = true;
this.SaveChanges.Click += new System.EventHandler(this.SaveChanges_Click);
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(7, 136);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(116, 13);
this.label4.TabIndex = 5;
this.label4.Text = "vcvars32.bat Location:";
//
// VcVarsBatDir
//
this.VcVarsBatDir.Location = new System.Drawing.Point(10, 152);
this.VcVarsBatDir.Name = "VcVarsBatDir";
this.VcVarsBatDir.Size = new System.Drawing.Size(193, 20);
this.VcVarsBatDir.TabIndex = 6;
//
// browseVCVARS
//
this.browseVCVARS.Location = new System.Drawing.Point(210, 149);
this.browseVCVARS.Name = "browseVCVARS";
this.browseVCVARS.Size = new System.Drawing.Size(75, 23);
this.browseVCVARS.TabIndex = 7;
this.browseVCVARS.Text = "Browse";
this.browseVCVARS.UseVisualStyleBackColor = true;
this.browseVCVARS.Click += new System.EventHandler(this.browseVCVARS_Click);
//
// Preferences
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(314, 353);
this.Controls.Add(this.SaveChanges);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "Preferences";
this.ShowInTaskbar = false;
this.Text = "Preferences";
this.Load += new System.EventHandler(this.Preferences_Load);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.RadioButton officalSDK;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button browse;
private System.Windows.Forms.Label pathLabel;
private System.Windows.Forms.TextBox SDKDir;
private System.Windows.Forms.RadioButton unOfficalSDK;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.CheckBox SaveLast;
private System.Windows.Forms.CheckBox Updates;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Button SaveChanges;
private System.Windows.Forms.CheckBox IndexedColor;
private System.Windows.Forms.Button browseVCVARS;
private System.Windows.Forms.TextBox VcVarsBatDir;
private System.Windows.Forms.Label label4;
}
}

View File

@ -1,135 +1,135 @@
//IDC that my code is shit:
#pragma warning disable IDE1006
#pragma warning disable IDE0017
using System;
using System.Drawing;
using System.Windows.Forms;
namespace GayMaker
{
public partial class Preferences : Form
{
public bool ReadBoolean(string Bool)
{
if (Bool == "True")
{
return true;
}
else
{
return false;
}
}
public Preferences()
{
//Bypass Windows DPI Scaling (See issue #8 to see why its important)
Font = new Font(Font.Name, 8.25f * 96f / CreateGraphics().DpiX, Font.Style, Font.Unit, Font.GdiCharSet, Font.GdiVerticalFont);
InitializeComponent();
}
public void CheckSdkPath()
{
if(officalSDK.Checked)
{
SDKDir.Enabled = true;
browse.Enabled = true;
VcVarsBatDir.Enabled = true;
browseVCVARS.Enabled = true;
}
else
{
SDKDir.Enabled = false;
browse.Enabled = false;
VcVarsBatDir.Enabled = false;
browseVCVARS.Enabled = false;
}
}
private void Preferences_Load(object sender, EventArgs e)
{
try
{
Microsoft.Win32.RegistryKey key;
key = Microsoft.Win32.Registry.CurrentUser.CreateSubKey(@"Software\GayMaker");
Updates.Checked = ReadBoolean(key.GetValue("CheckForUpdates").ToString());
SaveLast.Checked = ReadBoolean(key.GetValue("SaveLast").ToString());
IndexedColor.Checked = ReadBoolean(key.GetValue("IndexedColor").ToString());
SDKDir.Text = key.GetValue("SDKPath").ToString();
VcVarsBatDir.Text = key.GetValue("VCVarsPath").ToString();
officalSDK.Checked = ReadBoolean(key.GetValue("OfficalSDK").ToString());
unOfficalSDK.Checked = ReadBoolean(key.GetValue("UNOfficalSDK").ToString());
key.Close();
}
catch (Exception) { };
CheckSdkPath();
}
private void SaveChanges_Click(object sender, EventArgs e)
{
try
{
Microsoft.Win32.RegistryKey key;
key = Microsoft.Win32.Registry.CurrentUser.CreateSubKey(@"Software\GayMaker");
key.SetValue("CheckForUpdates", Updates.Checked);
key.SetValue("SaveLast", SaveLast.Checked);
key.SetValue("IndexedColor", IndexedColor.Checked);
key.SetValue("SDKPath", SDKDir.Text);
key.SetValue("VCVarsPath", VcVarsBatDir.Text);
key.SetValue("OfficalSDK", officalSDK.Checked);
key.SetValue("UNOfficalSDK", unOfficalSDK.Checked);
key.Close();
}
catch (Exception)
{
MessageBox.Show("There was an error while saving preferences!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
Environment.SetEnvironmentVariable("SCE_PSP2_SDK_DIR", SDKDir.Text);
Close();
}
private void unOfficalSDK_CheckedChanged(object sender, EventArgs e)
{
CheckSdkPath();
}
private void officalSDK_CheckedChanged(object sender, EventArgs e)
{
CheckSdkPath();
}
private void browse_Click(object sender, EventArgs e)
{
FolderBrowserDialog FBD = new FolderBrowserDialog();
FBD.ShowDialog();
SDKDir.Text = FBD.SelectedPath;
FBD.Dispose();
}
private void browseVCVARS_Click(object sender, EventArgs e)
{
OpenFileDialog FBD = new OpenFileDialog();
FBD.Filter = "vcvars32.bat|vcvars32.bat";
FBD.ShowDialog();
VcVarsBatDir.Text = FBD.FileName;
FBD.Dispose();
}
}
}
//IDC that my code is shit:
#pragma warning disable IDE1006
#pragma warning disable IDE0017
using System;
using System.Drawing;
using System.Windows.Forms;
namespace GayMaker
{
public partial class Preferences : Form
{
public bool ReadBoolean(string Bool)
{
if (Bool == "True")
{
return true;
}
else
{
return false;
}
}
public Preferences()
{
//Bypass Windows DPI Scaling (See issue #8 to see why its important)
Font = new Font(Font.Name, 8.25f * 96f / CreateGraphics().DpiX, Font.Style, Font.Unit, Font.GdiCharSet, Font.GdiVerticalFont);
InitializeComponent();
}
public void CheckSdkPath()
{
if(officalSDK.Checked)
{
SDKDir.Enabled = true;
browse.Enabled = true;
VcVarsBatDir.Enabled = true;
browseVCVARS.Enabled = true;
}
else
{
SDKDir.Enabled = false;
browse.Enabled = false;
VcVarsBatDir.Enabled = false;
browseVCVARS.Enabled = false;
}
}
private void Preferences_Load(object sender, EventArgs e)
{
try
{
Microsoft.Win32.RegistryKey key;
key = Microsoft.Win32.Registry.CurrentUser.CreateSubKey(@"Software\GayMaker");
Updates.Checked = ReadBoolean(key.GetValue("CheckForUpdates").ToString());
SaveLast.Checked = ReadBoolean(key.GetValue("SaveLast").ToString());
IndexedColor.Checked = ReadBoolean(key.GetValue("IndexedColor").ToString());
SDKDir.Text = key.GetValue("SDKPath").ToString();
VcVarsBatDir.Text = key.GetValue("VCVarsPath").ToString();
officalSDK.Checked = ReadBoolean(key.GetValue("OfficalSDK").ToString());
unOfficalSDK.Checked = ReadBoolean(key.GetValue("UNOfficalSDK").ToString());
key.Close();
}
catch (Exception) { };
CheckSdkPath();
}
private void SaveChanges_Click(object sender, EventArgs e)
{
try
{
Microsoft.Win32.RegistryKey key;
key = Microsoft.Win32.Registry.CurrentUser.CreateSubKey(@"Software\GayMaker");
key.SetValue("CheckForUpdates", Updates.Checked);
key.SetValue("SaveLast", SaveLast.Checked);
key.SetValue("IndexedColor", IndexedColor.Checked);
key.SetValue("SDKPath", SDKDir.Text);
key.SetValue("VCVarsPath", VcVarsBatDir.Text);
key.SetValue("OfficalSDK", officalSDK.Checked);
key.SetValue("UNOfficalSDK", unOfficalSDK.Checked);
key.Close();
}
catch (Exception)
{
MessageBox.Show("There was an error while saving preferences!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
Environment.SetEnvironmentVariable("SCE_PSP2_SDK_DIR", SDKDir.Text);
Close();
}
private void unOfficalSDK_CheckedChanged(object sender, EventArgs e)
{
CheckSdkPath();
}
private void officalSDK_CheckedChanged(object sender, EventArgs e)
{
CheckSdkPath();
}
private void browse_Click(object sender, EventArgs e)
{
FolderBrowserDialog FBD = new FolderBrowserDialog();
FBD.ShowDialog();
SDKDir.Text = FBD.SelectedPath;
FBD.Dispose();
}
private void browseVCVARS_Click(object sender, EventArgs e)
{
OpenFileDialog FBD = new OpenFileDialog();
FBD.Filter = "vcvars32.bat|vcvars32.bat";
FBD.ShowDialog();
VcVarsBatDir.Text = FBD.FileName;
FBD.Dispose();
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -1,21 +1,21 @@
using System;
using System.Windows.Forms;
namespace GayMaker
{
static class Program
{
public static GayMaker GM;
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
GM = new GayMaker();
Application.Run(GM);
}
}
}
using System;
using System.Windows.Forms;
namespace GayMaker
{
static class Program
{
public static GayMaker GM;
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
GM = new GayMaker();
Application.Run(GM);
}
}
}

View File

@ -1,36 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("GayMaker")]
[assembly: AssemblyDescription("GameMaker:Studio -> PSVita Export Tool")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("GayMaker")]
[assembly: AssemblyCopyright("MIT License - SilicaAndPina")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("f189e983-481e-4740-81b7-13a415d68636")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("GayMaker")]
[assembly: AssemblyDescription("GameMaker:Studio -> PSVita Export Tool")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("GayMaker")]
[assembly: AssemblyCopyright("MIT License - SilicaAndPina")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("f189e983-481e-4740-81b7-13a415d68636")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -1,173 +1,173 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace GayMaker.Properties {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("GayMaker.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap bg {
get {
object obj = ResourceManager.GetObject("bg", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap Export {
get {
object obj = ResourceManager.GetObject("Export", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to ///////////////////////////////
///// PlayStation Vita specific
//////////////////////////////////
///
///// # = constant
///// * = readonly
///// &amp; = obsolete
///
///psn_get_leaderboard_score_range(pad_index, leaderboard_id, start_index, end_index)
///psn_default_user_name()
///psn_name_for_pad(pad_index)
///psn_unlock_trophy(pad_index, trophy_index)
///psn_get_trophy_unlock_state(pad_index)
///psn_init_np_libs(title_id, np_title_secret, np_passphrase, enable_online)
///psn_exit_np_libs()
///psn_get_leaderboard_score(pad_index, leaderboard_id)
///psn_po [rest of string was truncated]&quot;;.
/// </summary>
internal static string fnames {
get {
return ResourceManager.GetString("fnames", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap Gate {
get {
object obj = ResourceManager.GetObject("Gate", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
///
///&lt;livearea style=&quot;psmobile&quot; format-ver=&quot;01.00&quot; content-rev=&quot;1&quot;&gt;
/// &lt;livearea-background&gt;
/// &lt;image&gt;bg0.png&lt;/image&gt;
/// &lt;/livearea-background&gt;
///
/// &lt;gate&gt;
/// &lt;startup-image&gt;startup.png&lt;/startup-image&gt;
/// &lt;/gate&gt;
///
/// &lt;frame id=&quot;frame1&quot;&gt;
/// &lt;/frame&gt;
///
/// &lt;frame id=&quot;frame2&quot;&gt;
/// &lt;/frame&gt;
///
/// &lt;frame id=&quot;frame3&quot;&gt;
/// &lt;/frame&gt;
///
/// &lt;frame id=&quot;frame4&quot;&gt;
/// &lt;/frame&gt;
///
///&lt;/livearea&gt;
///
///
///.
/// </summary>
internal static string gdbTemplate {
get {
return ResourceManager.GetString("gdbTemplate", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap Icons {
get {
object obj = ResourceManager.GetObject("Icons", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap template {
get {
object obj = ResourceManager.GetObject("template", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
}
}
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace GayMaker.Properties {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("GayMaker.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap bg {
get {
object obj = ResourceManager.GetObject("bg", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap Export {
get {
object obj = ResourceManager.GetObject("Export", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to ///////////////////////////////
///// PlayStation Vita specific
//////////////////////////////////
///
///// # = constant
///// * = readonly
///// &amp; = obsolete
///
///psn_get_leaderboard_score_range(pad_index, leaderboard_id, start_index, end_index)
///psn_default_user_name()
///psn_name_for_pad(pad_index)
///psn_unlock_trophy(pad_index, trophy_index)
///psn_get_trophy_unlock_state(pad_index)
///psn_init_np_libs(title_id, np_title_secret, np_passphrase, enable_online)
///psn_exit_np_libs()
///psn_get_leaderboard_score(pad_index, leaderboard_id)
///psn_po [rest of string was truncated]&quot;;.
/// </summary>
internal static string fnames {
get {
return ResourceManager.GetString("fnames", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap Gate {
get {
object obj = ResourceManager.GetObject("Gate", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
///
///&lt;livearea style=&quot;psmobile&quot; format-ver=&quot;01.00&quot; content-rev=&quot;1&quot;&gt;
/// &lt;livearea-background&gt;
/// &lt;image&gt;bg0.png&lt;/image&gt;
/// &lt;/livearea-background&gt;
///
/// &lt;gate&gt;
/// &lt;startup-image&gt;startup.png&lt;/startup-image&gt;
/// &lt;/gate&gt;
///
/// &lt;frame id=&quot;frame1&quot;&gt;
/// &lt;/frame&gt;
///
/// &lt;frame id=&quot;frame2&quot;&gt;
/// &lt;/frame&gt;
///
/// &lt;frame id=&quot;frame3&quot;&gt;
/// &lt;/frame&gt;
///
/// &lt;frame id=&quot;frame4&quot;&gt;
/// &lt;/frame&gt;
///
///&lt;/livearea&gt;
///
///
///.
/// </summary>
internal static string gdbTemplate {
get {
return ResourceManager.GetString("gdbTemplate", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap Icons {
get {
object obj = ResourceManager.GetObject("Icons", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap template {
get {
object obj = ResourceManager.GetObject("template", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
}
}

View File

@ -1,142 +1,142 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="Gate" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Gate.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fnames" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fnames;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
</data>
<data name="Icons" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Icons.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="gdbTemplate" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\template.xml;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data>
<data name="Export" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Export.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="template" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\template.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="bg" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\bg.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="Gate" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Gate.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fnames" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fnames;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
</data>
<data name="Icons" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Icons.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="gdbTemplate" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\template.xml;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data>
<data name="Export" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Export.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="template" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\template.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="bg" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\bg.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

View File

@ -1,30 +1,30 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace GayMaker.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
}
}
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace GayMaker.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
}
}

View File

@ -1,7 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

View File

@ -1,87 +1,87 @@
///////////////////////////////
// PlayStation Vita specific
///////////////////////////////
// # = constant
// * = readonly
// & = obsolete
psn_get_leaderboard_score_range(pad_index, leaderboard_id, start_index, end_index)
psn_default_user_name()
psn_name_for_pad(pad_index)
psn_unlock_trophy(pad_index, trophy_index)
psn_get_trophy_unlock_state(pad_index)
psn_init_np_libs(title_id, np_title_secret, np_passphrase, enable_online)
psn_exit_np_libs()
psn_get_leaderboard_score(pad_index, leaderboard_id)
psn_post_leaderboard_score(pad_index, leaderboard_id, score)
psn_post_leaderboard_score_comment(pad_index, leaderboard_id, score, comment)
psn_check_np_availability(pad_index, show_error)
psn_tick_error_dialog()
psn_tick()
psn_np_status(pad_index)
psn_get_friends_scores(pad_index, leaderboard_id, start_index, end_index)
psn_name_for_user(user_id)
psn_default_user()
psn_user_for_pad(pad_index)
matchmaking_reset_create_params()
matchmaking_add_create_param(param_index, param_value)
matchmaking_session_create(num_slots, session_name)
matchmaking_session_update(session_id)
matchmaking_session_get_users(session_id)
matchmaking_session_get_owner(session_id)
matchmaking_session_set_closed(session_id)
matchmaking_session_set_open(session_id)
matchmaking_reset_find_params()
matchmaking_add_find_param(index, value, operation)
matchmaking_session_find()
matchmaking_session_join(session_id)
matchmaking_session_leave(session_id)
matchmaking_start(user_id, pad_index)
matchmaking_stop()
matchmaking_send_invites(room_id, user_message, max_recipients)
matchmaking_tick_invites()
matchmaking_join_invite(invitation_id)
psn_content_restriction_add(country_code, age)
psn_net_check(default_age_restriction)
psn_setup_trophies()
psn_init_trophy(pad_index)
PSN_LEADERBOARD_SCORE_MSG#
PSN_LEADERBOARD_SCORE_RANGE_MSG#
PSN_LEADERBOARD_FRIENDS_SCORES_MSG#
PSN_LEADERBOARD_SCORE_POSTED_MSG#
PSN_TROPHY_INFO_MSG#
PSN_TROPHY_UNLOCKED_MSG#
PSN_TROPHY_UNLOCK_STATE#
psn_np_check_plus(real_time, async, pad_index)
psn_np_commerce_dialog_open(real_time, async, pad_index)
psn_np_commerce_dialog_tick()
psn_np_notify_plus_feature(real_time, async, pad_index)
psn_set_content_restriction(age)
psn_load_modules()
MATCHMAKING_CONNECTION#
MATCHMAKING_SESSION#
MATCHMAKING_INVITATION#
PSN_SERVICE_STATE#
MATCHMAKING_OPERATOR_EQUAL#
MATCHMAKING_OPERATOR_NOTEQUAL#
MATCHMAKING_OPERATOR_LESSTHAN#
MATCHMAKING_OPERATOR_LESSTHANOREQUAL#
MATCHMAKING_OPERATOR_GREATERTHAN#
MATCHMAKING_OPERATOR_GREATERTHANOREQUAL#
psn_get_tus_data(pad_index, tus_slot_number)
psn_set_tus_data(pad_index, tus_slot_number, data_size, data)
psn_get_tus_variable(pad_index, tus_slot_number)
psn_set_tus_variable(pad_index, tus_slot_number, data_value)
psn_delete_tus_data(pad_index, tus_slot_number)
///////////////////////////////
// PlayStation Vita specific
///////////////////////////////
// # = constant
// * = readonly
// & = obsolete
psn_get_leaderboard_score_range(pad_index, leaderboard_id, start_index, end_index)
psn_default_user_name()
psn_name_for_pad(pad_index)
psn_unlock_trophy(pad_index, trophy_index)
psn_get_trophy_unlock_state(pad_index)
psn_init_np_libs(title_id, np_title_secret, np_passphrase, enable_online)
psn_exit_np_libs()
psn_get_leaderboard_score(pad_index, leaderboard_id)
psn_post_leaderboard_score(pad_index, leaderboard_id, score)
psn_post_leaderboard_score_comment(pad_index, leaderboard_id, score, comment)
psn_check_np_availability(pad_index, show_error)
psn_tick_error_dialog()
psn_tick()
psn_np_status(pad_index)
psn_get_friends_scores(pad_index, leaderboard_id, start_index, end_index)
psn_name_for_user(user_id)
psn_default_user()
psn_user_for_pad(pad_index)
matchmaking_reset_create_params()
matchmaking_add_create_param(param_index, param_value)
matchmaking_session_create(num_slots, session_name)
matchmaking_session_update(session_id)
matchmaking_session_get_users(session_id)
matchmaking_session_get_owner(session_id)
matchmaking_session_set_closed(session_id)
matchmaking_session_set_open(session_id)
matchmaking_reset_find_params()
matchmaking_add_find_param(index, value, operation)
matchmaking_session_find()
matchmaking_session_join(session_id)
matchmaking_session_leave(session_id)
matchmaking_start(user_id, pad_index)
matchmaking_stop()
matchmaking_send_invites(room_id, user_message, max_recipients)
matchmaking_tick_invites()
matchmaking_join_invite(invitation_id)
psn_content_restriction_add(country_code, age)
psn_net_check(default_age_restriction)
psn_setup_trophies()
psn_init_trophy(pad_index)
PSN_LEADERBOARD_SCORE_MSG#
PSN_LEADERBOARD_SCORE_RANGE_MSG#
PSN_LEADERBOARD_FRIENDS_SCORES_MSG#
PSN_LEADERBOARD_SCORE_POSTED_MSG#
PSN_TROPHY_INFO_MSG#
PSN_TROPHY_UNLOCKED_MSG#
PSN_TROPHY_UNLOCK_STATE#
psn_np_check_plus(real_time, async, pad_index)
psn_np_commerce_dialog_open(real_time, async, pad_index)
psn_np_commerce_dialog_tick()
psn_np_notify_plus_feature(real_time, async, pad_index)
psn_set_content_restriction(age)
psn_load_modules()
MATCHMAKING_CONNECTION#
MATCHMAKING_SESSION#
MATCHMAKING_INVITATION#
PSN_SERVICE_STATE#
MATCHMAKING_OPERATOR_EQUAL#
MATCHMAKING_OPERATOR_NOTEQUAL#
MATCHMAKING_OPERATOR_LESSTHAN#
MATCHMAKING_OPERATOR_LESSTHANOREQUAL#
MATCHMAKING_OPERATOR_GREATERTHAN#
MATCHMAKING_OPERATOR_GREATERTHANOREQUAL#
psn_get_tus_data(pad_index, tus_slot_number)
psn_set_tus_data(pad_index, tus_slot_number, data_size, data)
psn_get_tus_variable(pad_index, tus_slot_number)
psn_set_tus_variable(pad_index, tus_slot_number, data_value)
psn_delete_tus_data(pad_index, tus_slot_number)

View File

@ -1,26 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<livearea style="psmobile" format-ver="01.00" content-rev="1">
<livearea-background>
<image>bg0.png</image>
</livearea-background>
<gate>
<startup-image>startup.png</startup-image>
</gate>
<frame id="frame1">
</frame>
<frame id="frame2">
</frame>
<frame id="frame3">
</frame>
<frame id="frame4">
</frame>
</livearea>
<?xml version="1.0" encoding="utf-8"?>
<livearea style="psmobile" format-ver="01.00" content-rev="1">
<livearea-background>
<image>bg0.png</image>
</livearea-background>
<gate>
<startup-image>startup.png</startup-image>
</gate>
<frame id="frame1">
</frame>
<frame id="frame2">
</frame>
<frame id="frame3">
</frame>
<frame id="frame4">
</frame>
</livearea>

View File

@ -1,71 +1,71 @@
namespace GayMaker
{
partial class Update
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.DownloadProgress = new System.Windows.Forms.ProgressBar();
this.label1 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// DownloadProgress
//
this.DownloadProgress.Location = new System.Drawing.Point(12, 42);
this.DownloadProgress.Name = "DownloadProgress";
this.DownloadProgress.Size = new System.Drawing.Size(394, 23);
this.DownloadProgress.TabIndex = 0;
//
// label1
//
this.label1.Location = new System.Drawing.Point(12, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(388, 18);
this.label1.TabIndex = 1;
this.label1.Text = "Starting Download";
//
// Update
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(418, 97);
this.ControlBox = false;
this.Controls.Add(this.label1);
this.Controls.Add(this.DownloadProgress);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Name = "Update";
this.ShowInTaskbar = false;
this.Text = "Update";
this.Load += new System.EventHandler(this.Update_Load);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.ProgressBar DownloadProgress;
private System.Windows.Forms.Label label1;
}
namespace GayMaker
{
partial class Update
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.DownloadProgress = new System.Windows.Forms.ProgressBar();
this.label1 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// DownloadProgress
//
this.DownloadProgress.Location = new System.Drawing.Point(12, 42);
this.DownloadProgress.Name = "DownloadProgress";
this.DownloadProgress.Size = new System.Drawing.Size(394, 23);
this.DownloadProgress.TabIndex = 0;
//
// label1
//
this.label1.Location = new System.Drawing.Point(12, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(388, 18);
this.label1.TabIndex = 1;
this.label1.Text = "Starting Download";
//
// Update
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(418, 97);
this.ControlBox = false;
this.Controls.Add(this.label1);
this.Controls.Add(this.DownloadProgress);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Name = "Update";
this.ShowInTaskbar = false;
this.Text = "Update";
this.Load += new System.EventHandler(this.Update_Load);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.ProgressBar DownloadProgress;
private System.Windows.Forms.Label label1;
}
}

View File

@ -1,81 +1,81 @@
//IDC that my code is shit:
#pragma warning disable IDE1006
#pragma warning disable IDE0017
using System;
using System.ComponentModel;
using System.Drawing;
using System.IO;
using System.IO.Compression;
using System.Net;
using System.Net.Cache;
using System.Reflection;
using System.Windows.Forms;
namespace GayMaker
{
public partial class Update : Form
{
public Update()
{
//Bypass Windows DPI Scaling
Font = new Font(Font.Name, 8.25f * 96f / CreateGraphics().DpiX, Font.Style, Font.Unit, Font.GdiCharSet, Font.GdiVerticalFont);
InitializeComponent();
}
private void startDownload()
{
WebClient wc = new WebClient();
wc.CachePolicy = new RequestCachePolicy(RequestCacheLevel.NoCacheNoStore);
String UpdateString = wc.DownloadString("https://bitbucket.org/SilicaAndPina/gaymaker/raw/master/latest.md");
String[] Data = UpdateString.Split('~');
String UpdateUrl = Data[1];
wc.Dispose();
WebClient client = new WebClient();
client.Headers.Add("pragma", "no-cache");
client.DownloadProgressChanged += new DownloadProgressChangedEventHandler(client_DownloadProgressChanged);
client.DownloadFileCompleted += new AsyncCompletedEventHandler(client_DownloadFileCompleted);
client.DownloadFileAsync(new Uri(UpdateUrl),"upgrade.zip");
}
private void client_DownloadFileCompleted(object sender, AsyncCompletedEventArgs e)
{
label1.Text = "Extracting";
String EXEPath = Assembly.GetExecutingAssembly().Location;
File.Move(EXEPath, Path.ChangeExtension(EXEPath, ".old"));
ZipArchive archive = new ZipArchive(File.OpenRead("upgrade.zip"));
foreach(ZipArchiveEntry file in archive.Entries)
{
if (File.Exists(file.FullName))
{
File.Delete(file.FullName);
}
}
ZipFile.ExtractToDirectory("upgrade.zip", Path.GetDirectoryName(EXEPath));
File.Delete("upgrade.zip");
Application.Restart();
}
private void client_DownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e)
{
DownloadProgress.Value = e.ProgressPercentage;
label1.Text = "Downloading: " + e.ProgressPercentage + "%";
}
private void Update_Load(object sender, EventArgs e)
{
startDownload();
}
}
}
//IDC that my code is shit:
#pragma warning disable IDE1006
#pragma warning disable IDE0017
using System;
using System.ComponentModel;
using System.Drawing;
using System.IO;
using System.IO.Compression;
using System.Net;
using System.Net.Cache;
using System.Reflection;
using System.Windows.Forms;
namespace GayMaker
{
public partial class Update : Form
{
public Update()
{
//Bypass Windows DPI Scaling
Font = new Font(Font.Name, 8.25f * 96f / CreateGraphics().DpiX, Font.Style, Font.Unit, Font.GdiCharSet, Font.GdiVerticalFont);
InitializeComponent();
}
private void startDownload()
{
WebClient wc = new WebClient();
wc.CachePolicy = new RequestCachePolicy(RequestCacheLevel.NoCacheNoStore);
String UpdateString = wc.DownloadString("https://bitbucket.org/SilicaAndPina/gaymaker/raw/master/latest.md");
String[] Data = UpdateString.Split('~');
String UpdateUrl = Data[1];
wc.Dispose();
WebClient client = new WebClient();
client.Headers.Add("pragma", "no-cache");
client.DownloadProgressChanged += new DownloadProgressChangedEventHandler(client_DownloadProgressChanged);
client.DownloadFileCompleted += new AsyncCompletedEventHandler(client_DownloadFileCompleted);
client.DownloadFileAsync(new Uri(UpdateUrl),"upgrade.zip");
}
private void client_DownloadFileCompleted(object sender, AsyncCompletedEventArgs e)
{
label1.Text = "Extracting";
String EXEPath = Assembly.GetExecutingAssembly().Location;
File.Move(EXEPath, Path.ChangeExtension(EXEPath, ".old"));
ZipArchive archive = new ZipArchive(File.OpenRead("upgrade.zip"));
foreach(ZipArchiveEntry file in archive.Entries)
{
if (File.Exists(file.FullName))
{
File.Delete(file.FullName);
}
}
ZipFile.ExtractToDirectory("upgrade.zip", Path.GetDirectoryName(EXEPath));
File.Delete("upgrade.zip");
Application.Restart();
}
private void client_DownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e)
{
DownloadProgress.Value = e.ProgressPercentage;
label1.Text = "Downloading: " + e.ProgressPercentage + "%";
}
private void Update_Load(object sender, EventArgs e)
{
startDownload();
}
}
}

View File

@ -1,120 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@ -1,149 +1,149 @@
namespace GayMaker
{
partial class versionManager
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(versionManager));
this.downloadList = new System.Windows.Forms.ListBox();
this.label2 = new System.Windows.Forms.Label();
this.downloadVersion = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
this.installedList = new System.Windows.Forms.ListBox();
this.deleteVersion = new System.Windows.Forms.Button();
this.DownloadProgress = new System.Windows.Forms.ProgressBar();
this.Status = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// downloadList
//
this.downloadList.FormattingEnabled = true;
this.downloadList.Location = new System.Drawing.Point(12, 25);
this.downloadList.Name = "downloadList";
this.downloadList.Size = new System.Drawing.Size(458, 186);
this.downloadList.TabIndex = 2;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(9, 9);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(109, 13);
this.label2.TabIndex = 3;
this.label2.Text = "Available Downloads:";
//
// downloadVersion
//
this.downloadVersion.Location = new System.Drawing.Point(12, 217);
this.downloadVersion.Name = "downloadVersion";
this.downloadVersion.Size = new System.Drawing.Size(458, 23);
this.downloadVersion.TabIndex = 4;
this.downloadVersion.Text = "Download This Version";
this.downloadVersion.UseVisualStyleBackColor = true;
this.downloadVersion.Click += new System.EventHandler(this.downloadVersion_Click);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(12, 288);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(110, 13);
this.label3.TabIndex = 5;
this.label3.Text = "Allready Downloaded:";
//
// installedList
//
this.installedList.FormattingEnabled = true;
this.installedList.Items.AddRange(new object[] {
"1.4.9999"});
this.installedList.Location = new System.Drawing.Point(15, 304);
this.installedList.Name = "installedList";
this.installedList.Size = new System.Drawing.Size(458, 199);
this.installedList.TabIndex = 6;
//
// deleteVersion
//
this.deleteVersion.Location = new System.Drawing.Point(12, 509);
this.deleteVersion.Name = "deleteVersion";
this.deleteVersion.Size = new System.Drawing.Size(458, 23);
this.deleteVersion.TabIndex = 7;
this.deleteVersion.Text = "Delete This Version";
this.deleteVersion.UseVisualStyleBackColor = true;
this.deleteVersion.Click += new System.EventHandler(this.deleteVersion_Click);
//
// DownloadProgress
//
this.DownloadProgress.Location = new System.Drawing.Point(12, 259);
this.DownloadProgress.Name = "DownloadProgress";
this.DownloadProgress.Size = new System.Drawing.Size(461, 23);
this.DownloadProgress.TabIndex = 8;
//
// Status
//
this.Status.Location = new System.Drawing.Point(12, 243);
this.Status.Name = "Status";
this.Status.Size = new System.Drawing.Size(458, 13);
this.Status.TabIndex = 9;
this.Status.Text = "Waiting";
//
// versionManager
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(485, 544);
this.Controls.Add(this.Status);
this.Controls.Add(this.DownloadProgress);
this.Controls.Add(this.deleteVersion);
this.Controls.Add(this.installedList);
this.Controls.Add(this.label3);
this.Controls.Add(this.downloadVersion);
this.Controls.Add(this.label2);
this.Controls.Add(this.downloadList);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "versionManager";
this.ShowInTaskbar = false;
this.Text = "GameMaker Studio Version Manager";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.versionManager_FormClosing);
this.Load += new System.EventHandler(this.versionManager_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.ListBox downloadList;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button downloadVersion;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.ListBox installedList;
private System.Windows.Forms.Button deleteVersion;
private System.Windows.Forms.ProgressBar DownloadProgress;
private System.Windows.Forms.Label Status;
}
namespace GayMaker
{
partial class versionManager
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(versionManager));
this.downloadList = new System.Windows.Forms.ListBox();
this.label2 = new System.Windows.Forms.Label();
this.downloadVersion = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
this.installedList = new System.Windows.Forms.ListBox();
this.deleteVersion = new System.Windows.Forms.Button();
this.DownloadProgress = new System.Windows.Forms.ProgressBar();
this.Status = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// downloadList
//
this.downloadList.FormattingEnabled = true;
this.downloadList.Location = new System.Drawing.Point(12, 25);
this.downloadList.Name = "downloadList";
this.downloadList.Size = new System.Drawing.Size(458, 186);
this.downloadList.TabIndex = 2;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(9, 9);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(109, 13);
this.label2.TabIndex = 3;
this.label2.Text = "Available Downloads:";
//
// downloadVersion
//
this.downloadVersion.Location = new System.Drawing.Point(12, 217);
this.downloadVersion.Name = "downloadVersion";
this.downloadVersion.Size = new System.Drawing.Size(458, 23);
this.downloadVersion.TabIndex = 4;
this.downloadVersion.Text = "Download This Version";
this.downloadVersion.UseVisualStyleBackColor = true;
this.downloadVersion.Click += new System.EventHandler(this.downloadVersion_Click);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(12, 288);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(110, 13);
this.label3.TabIndex = 5;
this.label3.Text = "Allready Downloaded:";
//
// installedList
//
this.installedList.FormattingEnabled = true;
this.installedList.Items.AddRange(new object[] {
"1.4.9999"});
this.installedList.Location = new System.Drawing.Point(15, 304);
this.installedList.Name = "installedList";
this.installedList.Size = new System.Drawing.Size(458, 199);
this.installedList.TabIndex = 6;
//
// deleteVersion
//
this.deleteVersion.Location = new System.Drawing.Point(12, 509);
this.deleteVersion.Name = "deleteVersion";
this.deleteVersion.Size = new System.Drawing.Size(458, 23);
this.deleteVersion.TabIndex = 7;
this.deleteVersion.Text = "Delete This Version";
this.deleteVersion.UseVisualStyleBackColor = true;
this.deleteVersion.Click += new System.EventHandler(this.deleteVersion_Click);
//
// DownloadProgress
//
this.DownloadProgress.Location = new System.Drawing.Point(12, 259);
this.DownloadProgress.Name = "DownloadProgress";
this.DownloadProgress.Size = new System.Drawing.Size(461, 23);
this.DownloadProgress.TabIndex = 8;
//
// Status
//
this.Status.Location = new System.Drawing.Point(12, 243);
this.Status.Name = "Status";
this.Status.Size = new System.Drawing.Size(458, 13);
this.Status.TabIndex = 9;
this.Status.Text = "Waiting";
//
// versionManager
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(485, 544);
this.Controls.Add(this.Status);
this.Controls.Add(this.DownloadProgress);
this.Controls.Add(this.deleteVersion);
this.Controls.Add(this.installedList);
this.Controls.Add(this.label3);
this.Controls.Add(this.downloadVersion);
this.Controls.Add(this.label2);
this.Controls.Add(this.downloadList);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "versionManager";
this.ShowInTaskbar = false;
this.Text = "GameMaker Studio Version Manager";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.versionManager_FormClosing);
this.Load += new System.EventHandler(this.versionManager_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.ListBox downloadList;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button downloadVersion;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.ListBox installedList;
private System.Windows.Forms.Button deleteVersion;
private System.Windows.Forms.ProgressBar DownloadProgress;
private System.Windows.Forms.Label Status;
}
}

View File

@ -1,375 +1,375 @@
//IDC that my code is shit:
#pragma warning disable IDE1006
#pragma warning disable IDE0017
using System;
using System.ComponentModel;
using System.Drawing;
using System.IO;
using Ionic.Zip;
using System.Net;
using System.Net.Cache;
using System.Windows.Forms;
using System.Threading;
namespace GayMaker
{
public partial class versionManager : Form
{
private void CopyDir(string source, string target)
{
if (!Directory.Exists(target)) Directory.CreateDirectory(target);
string[] sysEntries = Directory.GetFileSystemEntries(source);
foreach (string sysEntry in sysEntries)
{
string fileName = Path.GetFileName(sysEntry);
string targetPath = Path.Combine(target, fileName);
if (Directory.Exists(sysEntry))
CopyDir(sysEntry, targetPath);
else
{
File.Copy(sysEntry, targetPath, true);
}
}
}
String[] Versions = { "1.4.1464", "1.4.1468", "1.4.1469", "1.4.1470", "1.4.1474", "1.4.1495", "1.4.1496", "1.4.1499", "1.4.1514", "1.4.1522", "1.4.1542", "1.4.1556", "1.4.1565", "1.4.1567", "1.4.1598", "1.4.1629", "1.4.1657", "1.4.1675", "1.4.1683", "1.4.1690", "1.4.1711", "1.4.1747", "1.4.1749", "1.4.1757", "1.4.1760", "1.4.1763", "1.4.1767", "1.4.1772", "1.4.1773", "1.4.1788", "1.4.1804", "1.99.505", "1.99.525", "1.99.533", "1.99.548", "1.99.549", "1.99.550", "1.99.551" };
String[] VitaUrls = { "https://updater.yoyogames.com/api/download/psvita/71880e2e-e496-449f-9211-1a700f198335.zip", "https://updater.yoyogames.com/api/download/psvita/fb89b27d-7a56-4cdd-adbc-3b8e62ca2cc3.zip", "https://updater.yoyogames.com/api/download/psvita/da46f54f-5c00-4094-a26e-349035ae01a7.zip", "https://updater.yoyogames.com/api/download/psvita/c1761a9d-6420-44d0-835e-f3365e20a5ab.zip", "https://updater.yoyogames.com/api/download/psvita/aa7f0e02-6b9d-4d6f-8127-f4916d84c8fa.zip", "https://updater.yoyogames.com/api/download/psvita/8e7a116a-3518-482b-9d68-dc70aafa9772.zip", "https://updater.yoyogames.com/api/download/psvita/b5a773c3-8c81-4d50-937f-f2037dd6949a.zip", "https://updater.yoyogames.com/api/download/psvita/652004f6-4ba0-4779-93a9-3e8eacf31928.zip", "https://updater.yoyogames.com/api/download/psvita/e462256c-bed3-4301-9340-af428a41ba50.zip", "https://updater.yoyogames.com/api/download/psvita/59cca874-7bc7-426e-8535-434aa6dfc813.zip", "https://updater.yoyogames.com/api/download/psvita/4e51d1b5-3849-4cf4-86c6-d6b81bcf4e46.zip", "https://updater.yoyogames.com/api/download/psvita/53456f90-c66d-4b44-aa0d-db6e1d37e376.zip", "https://updater.yoyogames.com/api/download/psvita/bd1d4e64-5543-41ef-b0b6-94f3b5c377ac.zip", "https://updater.yoyogames.com/api/download/psvita/de15be40-b8e9-496a-aadb-46c3ea69e93c.zip", "https://updater.yoyogames.com/api/download/psvita/faf56e92-16f8-447b-a2a1-acbbbc31a659.zip", "https://updater.yoyogames.com/api/download/psvita/1a13f8d4-d9a6-43e4-b5cf-a2396fb1103c.zip", "https://updater.yoyogames.com/api/download/psvita/6dbeddb8-1468-4a2e-9c98-cc0117526c52.zip", "https://updater.yoyogames.com/api/download/psvita/18500239-c6cb-431f-9478-969bc5aa7e45.zip", "https://updater.yoyogames.com/api/download/psvita/9f4441e4-d72a-491c-9061-23db81308616.zip", "https://updater.yoyogames.com/api/download/psvita/640b0323-88f2-4e94-bb07-97034777a305.zip", "https://updater.yoyogames.com/api/download/psvita/52cfe6e4-9d4a-43a0-bfba-a38802b96be6.zip", "https://updater.yoyogames.com/api/download/psvita/501d070a-c53a-40a7-bf06-558161b77b30.zip", "https://updater.yoyogames.com/api/download/psvita/a7d57b1e-24dc-4e61-b402-9ec845cbb098.zip", "https://updater.yoyogames.com/api/download/psvita/dc390c15-b2de-494b-8031-651efee2020e.zip", "https://updater.yoyogames.com/api/download/psvita/213f252a-aa11-49fb-96e7-91b9242fad29.zip", "https://updater.yoyogames.com/api/download/psvita/0c23316a-f349-42f7-b267-59033632a77c.zip", "https://updater.yoyogames.com/api/download/psvita/58e19718-61a1-4be7-811b-b7558925d7ed.zip", "https://updater.yoyogames.com/api/download/psvita/95c61747-1ed2-4ec3-8ea0-037430417b34.zip", "https://updater.yoyogames.com/api/download/psvita/5fd1304c-42be-4d09-9359-4165a4d39591.zip", "https://updater.yoyogames.com/api/download/psvita/c9f28194-5994-459e-8218-b3bf45ddf1e0.zip", "https://updater.yoyogames.com/api/download/psvita/f8d08841-b6ae-4e34-a3d6-67407c4343b5.zip", "https://updater.yoyogames.com/api/download/psvita/09b42fab-6da7-4fe9-a60d-44e29fe6cf9a.zip", "https://updater.yoyogames.com/api/download/psvita/2dd4b46f-7a4e-4234-933c-1bcf0e34523e.zip", "https://updater.yoyogames.com/api/download/psvita/4b9f6329-4552-46d5-a401-e9f0d9c2a230.zip", "https://updater.yoyogames.com/api/download/psvita/77244b67-7e41-4f28-b83a-019f06739f9e.zip", "https://updater.yoyogames.com/api/download/psvita/b392e1d2-c431-4baa-9235-2dd1e95fc383.zip", "https://updater.yoyogames.com/api/download/psvita/afd82c60-daf5-4052-b785-a8327e8e509b.zip", "https://updater.yoyogames.com/api/download/psvita/a770d6eb-bf78-4ff6-8065-03ae79cda515.zip" };
String[] Passwords = { "YJYDyTRu//reGTDMRtvqeA==", "qF5w5XngIlsjfF+Lgjvddg==", "HKMg1V1AJRyp4+fIpZe43Q==", "0fWronXzSHo0N3vP1OhXkw==", "mcUqbOFUxmKN/kfz0uczhA==", "Jo27hTbHw/fwIn6FWVyIiw==", "d0buqe+qJ7PoJ/+pO8UO8g==", "Psz0UkA3muQV9s+sJXQyyw==", "g7X4CTCE2P7zjHQjlUJjhg==", "VnKXoy+yOI1qt3ozXFW+VA==", "Wg4noeglJDRfAvzdHFMPAg==", "qzH9EbGL+EiQWERbAj63Hg==", "2l9hlMtrgVsXssl6BwGaaQ==", "pu05nMHNyzUYry9kF7WFdw==", "jM6jCc+Pr3muL/r+MXrJGQ==", "LdxwOYgTuC3kkPBHscNWZQ==", "eqJM94iGbbBsIA7iMCbCzg==", "nus0kqTASRp4r+cZQz4dHA==", "gXxOQ/hMdAG5XDnmzwRJBA==", "B8Yn0JHxXkE+q8DfboNZsw==", "2ZoimLxEz/Na7zoZnmQjbg==", "ftW7sk7jsT3tv09qQiOg9A==", "jvEhtQpW6yqRL0HLrU/k5w==", "9GsaUhrUn69As/n0hjyrDg==", "Xc13EtzfcI0wBdB46T8bCg==", "8ItorzszZnkr+AMeqvKt/g==", "z7jo2sFobX4wjv9sbokX5g==", "bfsOB+ih0Voayb+xuD+hmg==", "O8e/g0v8bnmVaxP0Mj+lTQ==", "CoUKbUNjJhUhN2Nis2Ofng==", "mnRXlyAzJDLXCk9xi5frmA==", "f+cjma9wcRLTqDBd5mpAgQ==", "WieG/fzWg+zksBrzMH0n0A==", "khCX7Bp6xPt9NdbhVMXzKg==", "AyvTY0JjJ8FcH93GNsqaMQ==", "hncejwoHFaVYgT4iQ1pKgg==", "DLP9sUfmMgcZ+q0BIncr8A==", "Z1E5Ad1HzQe9EzTuA7fbjg==" };
String[] ProUrls = { "https://updater.yoyogames.com/api/download/pro/2aa95d44-cf9e-4a58-9d09-2a240bae2590.zip", "https://updater.yoyogames.com/api/download/pro/9c06dd3b-8105-4637-b720-93dbc7de7e7b.zip", "https://updater.yoyogames.com/api/download/pro/ea4c8359-2755-43b0-8c8c-21028d2e926f.zip", "https://updater.yoyogames.com/api/download/pro/34146826-64be-4ae2-b2ea-3d405f521bf4.zip", "https://updater.yoyogames.com/api/download/pro/7e1b4a27-c4cc-433a-a6cd-790c8370f69e.zip", "https://updater.yoyogames.com/api/download/pro/7ddfcb90-6d15-4593-9310-7effd86d5c5f.zip", "https://updater.yoyogames.com/api/download/pro/60809534-d886-4134-9b39-4f2a4b2d5417.zip", "https://updater.yoyogames.com/api/download/pro/7068d83c-5105-4e38-97cd-c8589ba995ac.zip", "https://updater.yoyogames.com/api/download/pro/e1c7104b-b79e-4f62-88b9-f5422b3a0062.zip", "https://updater.yoyogames.com/api/download/pro/8a2fadd8-9cbb-4c8b-b36d-34155a8b8366.zip", "https://updater.yoyogames.com/api/download/pro/422d570d-c0ba-46b1-90c6-96d4bb097198.zip", "https://updater.yoyogames.com/api/download/pro/3b8df5a4-61d3-42b2-8131-a7e3276a9d45.zip", "https://updater.yoyogames.com/api/download/pro/67808b11-d116-4f3b-9743-c3c56ca3fa11.zip", "https://updater.yoyogames.com/api/download/pro/0e138e3d-9f09-4a9e-9bb1-75de9dc35247.zip", "https://updater.yoyogames.com/api/download/pro/40d52eaf-d50e-46b0-b183-d45dea5fd1d3.zip", "https://updater.yoyogames.com/api/download/pro/015e9bdc-7e99-4815-a630-c2cb7fbad2bc.zip", "https://updater.yoyogames.com/api/download/pro/3c5ffb88-cc42-41e2-9365-2a3cd19f9f1c.zip", "https://updater.yoyogames.com/api/download/pro/e8a82731-30b9-4cbd-bb4a-23adb65918d7.zip", "https://updater.yoyogames.com/api/download/pro/951d162a-98a3-482b-b650-584c1b40638f.zip", "https://updater.yoyogames.com/api/download/pro/0acfc6df-06d8-4f58-9496-7a38c20c4efb.zip", "https://updater.yoyogames.com/api/download/pro/10ab3c1c-b1ee-4d80-90d2-0c189c508429.zip", "https://updater.yoyogames.com/api/download/pro/6df40635-9cf0-4ecb-9171-72ad3ecf96fe.zip", "https://updater.yoyogames.com/api/download/pro/86f8bf2a-8d70-4eb5-bd83-a2f2eb92bc7a.zip", "https://updater.yoyogames.com/api/download/pro/e703ba9b-b315-4b6a-b13b-5b0e2c816447.zip", "https://updater.yoyogames.com/api/download/pro/69966fb5-e022-4c9d-8c91-e5b82433fdbf.zip", "https://updater.yoyogames.com/api/download/pro/7ab65890-a469-41d4-b911-71b0ec18130c.zip", "https://updater.yoyogames.com/api/download/pro/1dcde91f-266a-4f83-b6aa-ae52706d11de.zip", "https://updater.yoyogames.com/api/download/pro/0f7d7ae9-c0ec-4518-867d-835b5657c301.zip", "https://updater.yoyogames.com/api/download/pro/4bf55408-2de9-426d-973c-27f8ffb25982.zip", "https://updater.yoyogames.com/api/download/pro/c132db45-6b5b-4dae-8a67-577bd8a3c77b.zip", "https://updater.yoyogames.com/api/download/pro/c7d823f5-9b53-4f23-8cfa-133814ae1d18.zip", "https://updater.yoyogames.com/api/download/pro/d7ebbb34-ee04-41b0-9d43-a751fd5c77e8.zip", "https://updater.yoyogames.com/api/download/pro/15d3bece-ebb8-49e9-b2ef-9a3eb8c0976a.zip", "https://updater.yoyogames.com/api/download/pro/7dfa06f9-ea44-4932-89fe-9efdaf0ba5c7.zip", "https://updater.yoyogames.com/api/download/pro/5fe561c7-a8b1-4cc3-9839-08268a1c6031.zip", "https://updater.yoyogames.com/api/download/pro/532013db-efb3-4227-81a4-36b6d8cb9029.zip", "https://updater.yoyogames.com/api/download/pro/7f485047-6575-476a-94f0-c27776664543.zip", "https://updater.yoyogames.com/api/download/pro/aa180c74-2b1c-4bc1-98b9-304394f8619d.zip", "https://updater.yoyogames.com/api/download/pro/82d49e93-c0e3-470e-8a5d-4bf3cd1db7db.zip", "https://updater.yoyogames.com/api/download/pro/15d3bece-ebb8-49e9-b2ef-9a3eb8c0976a.zip", "https://updater.yoyogames.com/api/download/pro/7dfa06f9-ea44-4932-89fe-9efdaf0ba5c7.zip", "https://updater.yoyogames.com/api/download/pro/5fe561c7-a8b1-4cc3-9839-08268a1c6031.zip", "https://updater.yoyogames.com/api/download/pro/532013db-efb3-4227-81a4-36b6d8cb9029.zip", "https://updater.yoyogames.com/api/download/pro/7f485047-6575-476a-94f0-c27776664543.zip", "https://updater.yoyogames.com/api/download/pro/aa180c74-2b1c-4bc1-98b9-304394f8619d.zip", "https://updater.yoyogames.com/api/download/pro/82d49e93-c0e3-470e-8a5d-4bf3cd1db7db.zip" };
String[] ProPasswords = { "w8LU7n7qL/TTKYZ50Y+GJA==", "1a1kbg/He96W1kXu5MUtSw==", "cyUh9CJIX3fgyuugcqBgWw==", "yrMrZw1Nd5vgItLAMWWsWw==", "kp4xpA/K5cOuy9NefH6OiQ==", "j1eACYo4HFD8QgXLSc+WWA==", "CnIc2NJgxxf9CnvI2Jk1jg==", "AcyXSwl+I9HJXGW3lqr+wA==", "638Ow1jt7Fx1IzbZ91ZLUw==", "b56/tGBLlwj1aBS36ojAuw==", "UZnpjFq2a23rWg8OdTbOWw==", "pdpcCRrvm4NDK0Ak1V0KDw==", "csw6SBPb3FeJ+awgZVTJIA==", "QigzRUrPh6a1cruYfJIMSg==", "fk5N0e4Z4SNXwjaG3hTfbw==", "6knIcKZmICifwDFkPqnCiQ==", "DME9DhhFSmGQ4m+nSfXNew==", "r/XHptEBE+h2vU1aR9zZ6w==", "F/9CW15HDFGv9I/WLLBtJw==", "8lfa+wgkHFkJ9Eg6yXoB6w==", "gguQVlH7ZGIfbtKIY3YZbA==", "16I2d9EyM2j/zVyQmh3uxg==", "4O3W3Ih5MDgjEhSXlNSmtw==", "3COCVXB99MmOkp2CLddzmA==", "2ObB6N0sIVzBd76ysXC3Vg==", "4ZfC1NtXipOJPaF0m9UWHA==", "8xokrO5dadWdbTJkGmBF+w==", "RFR+3IEW+K9Q4SDndIaJGQ==", "QM3DGdmPRpwB7viZe85MUg==", "qF34ZrOIzWhOXBABarMAHg==", "GeAcP5ZmDHta/n7AO0vwYg==", "AR5cF7r65VTU8TThe6quaQ==", "cYc1VtX2k+oScURpEbyjRg==", "PJQAvameW9Mw9JY3FhW37A==", "yKJqh2+YvmwqXFThnJ6WtA==", "lzVJHoz+3J22cAKqS0kB1w==", "m7UQ8DLCMwnS+eOjgPkeYA==", "K25ONcZeWZ6Hj2QZhFiurQ==", "hQCOwIqppCXZ4TNlyEs9Ag==", "cYc1VtX2k+oScURpEbyjRg==", "PJQAvameW9Mw9JY3FhW37A==", "yKJqh2+YvmwqXFThnJ6WtA==", "lzVJHoz+3J22cAKqS0kB1w==", "m7UQ8DLCMwnS+eOjgPkeYA==", "K25ONcZeWZ6Hj2QZhFiurQ==", "hQCOwIqppCXZ4TNlyEs9Ag==" };
private string currentDownload = "";
String version;
String url;
String password;
String yoyoUrl;
String proUrl;
String proPassword;
private void startDownload(string URL,string path)
{
currentDownload = path;
WebClient wc = new WebClient();
wc.CachePolicy = new RequestCachePolicy(RequestCacheLevel.NoCacheNoStore);
wc.Dispose();
WebClient client = new WebClient();
client.Headers.Add("pragma", "no-cache");
client.DownloadProgressChanged += new DownloadProgressChangedEventHandler(client_DownloadProgressChanged);
client.DownloadFileCompleted += new AsyncCompletedEventHandler(client_DownloadFileCompleted);
client.DownloadFileAsync(new Uri(URL), path);
}
private void client_DownloadFileCompleted(object sender, AsyncCompletedEventArgs e)
{
if(currentDownload == "psvita.zip")
{
startDownload(proUrl, "pro.zip");
}
else if(currentDownload == "pro.zip")
{
startDownload(yoyoUrl, "gamemaker.zip");
}
else if(currentDownload == "gamemaker.zip")
{
DownloadProgress.Style = ProgressBarStyle.Marquee;
new Thread(() =>
{
Thread.CurrentThread.IsBackground = true;
Invoke((Action)delegate { Status.Text = "Extracting psvita.zip"; });
if (Directory.Exists(@"_psvita"))
{
Directory.Delete(@"_psvita", true);
}
using (ZipFile archive = new ZipFile(@"psvita.zip"))
{
archive.Password = password;
archive.Encryption = EncryptionAlgorithm.PkzipWeak;
archive.ExtractAll(@"_psvita");
}
Invoke((Action)delegate { Status.Text = "Extracting pro.zip"; });
if (Directory.Exists(@"_pro"))
{
Directory.Delete(@"_pro", true);
}
using (ZipFile archive = new ZipFile(@"pro.zip"))
{
archive.Password = proPassword;
archive.Encryption = EncryptionAlgorithm.PkzipWeak;
archive.ExtractAll(@"_pro");
}
Invoke((Action)delegate { Status.Text = "Extracting gamemaker.zip"; });
if (Directory.Exists(@"_gamemaker"))
{
Directory.Delete(@"_gamemaker", true);
}
using (ZipFile archive = new ZipFile((@"gamemaker.zip")))
{
archive.Password = "12#_p@o3w$ir_ADD-_$#";
archive.Encryption = EncryptionAlgorithm.PkzipWeak;
archive.ExtractAll(@"_gamemaker");
}
if (!Directory.Exists(@"versions"))
{
Directory.CreateDirectory(@"versions");
}
if (!Directory.Exists(@"versions\\" + version))
{
Directory.CreateDirectory(@"versions\\" + version);
}
if (!Directory.Exists(@"versions\\" + version + "\\Runner"))
{
Directory.CreateDirectory(@"versions\\" + version + "\\Runner");
}
if (!Directory.Exists(@"versions\\" + version + "\\Shaders"))
{
Directory.CreateDirectory(@"versions\\" + version + "\\Shaders");
}
if (!Directory.Exists(@"versions\\" + version + "\\YYC"))
{
Directory.CreateDirectory(@"versions\\" + version + "\\YYC");
}
try
{
File.Copy(@"_gamemaker\\BouncyCastle.Crypto.dll", @"versions\\" + version + "\\BouncyCastle.Crypto.dll", true);
File.Copy(@"_gamemaker\\spine-csharp.dll", @"versions\\" + version + "\\spine-csharp.dll", true);
File.Copy(@"_gamemaker\\SharpCompress.dll", @"versions\\" + version + "\\SharpCompress.dll", true);
File.Copy(@"_gamemaker\\Ionic.Zip.Reduced.dll", @"versions\\" + version + "\\Ionic.Zip.Reduced.dll", true);
File.Copy(@"_gamemaker\\Newtonsoft.Json.dll", @"versions\\" + version + "\\Ionic.Zip.Reduced.dll", true);
}
catch (Exception) { };
File.Copy(@"_gamemaker\\GMAssetCompiler.exe", @"versions\\" + version + "\\GMAssetCompiler.exe", true);
File.Copy(@"_gamemaker\\ffmpeg.exe", @"versions\\" + version + "\\ffmpeg.exe", true);
CopyDir(@"_gamemaker\\Shaders", @"versions\\" + version + "\\Shaders");
CopyDir(@"_psvita\\YYC", @"versions\\" + version + "\\YYC");
CopyDir(@"_pro\YYC\\include", @"versions\\" + version + "\\YYC\\include");
File.Copy(@"_psvita\\PSVita\\CG_PShaderCommon.shader", @"versions\\" + version + "\\Shaders\\CG_PShaderCommon.shader", true);
File.Copy(@"_psvita\\PSVita\\CG_VShaderCommon.shader", @"versions\\" + version + "\\Shaders\\CG_VShaderCommon.shader", true);
CopyDir(@"Runner", @"versions\\" + version + "\\Runner");
File.Copy(@"_psvita\\PSVita\\PSVitaRunner.self", @"versions\\" + version + "\\Runner\\eboot.bin", true);
Directory.Delete(@"_gamemaker", true);
Directory.Delete(@"_psvita", true);
Directory.Delete(@"_pro", true);
File.Delete("psvita.zip");
File.Delete("gamemaker.zip");
File.Delete("pro.zip");
Invoke((Action)delegate {
downloadList.Enabled = true;
downloadVersion.Enabled = true;
downloadList.Items.Remove(version);
installedList.Items.Add(version);
Status.Text = "Waiting";
DownloadProgress.Value = 0;
DownloadProgress.Style = ProgressBarStyle.Continuous;
ControlBox = true;
});
}).Start();
}
}
private void client_DownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e)
{
DownloadProgress.Value = e.ProgressPercentage;
Status.Text = "Downloading " + currentDownload + " " +e.ProgressPercentage + "%";
}
public String getOriginalUrl(string version)
{
return "https://updater.yoyogames.com/api/download/original?filename=Original-" + version + ".zip";
}
public string findUrl(string version, bool pro)
{
int index = 0;
foreach(string ver in Versions)
{
if(ver == version)
{
break;
}
index++;
}
if(pro)
{
String realUrl = "http://updatecdn.yoyogames.com/" + Path.GetFileName(ProUrls[index]);
return realUrl;
}
else
{
String realUrl = "http://updatecdn.yoyogames.com/" + Path.GetFileName(VitaUrls[index]);
return realUrl;
}
}
public string getPassword(string url, bool pro)
{
string zip = Path.GetFileName(url);
if (zip.Contains("Original"))
{
return "12#_p@o3w$ir_ADD-_$#";
}
int index = 0;
if (pro)
{
foreach (String URL in ProUrls)
{
if (Path.GetFileName(URL) == zip)
{
break;
}
index++;
}
}
else
{
foreach (String URL in VitaUrls)
{
if (Path.GetFileName(URL) == zip)
{
break;
}
index++;
}
}
if(pro)
{
return ProPasswords[index];
}
else
{
return Passwords[index];
}
}
public versionManager()
{
//Bypass Windows DPI Scaling (See issue #8 to see why its important)
Font = new Font(Font.Name, 8.25f * 96f / CreateGraphics().DpiX, Font.Style, Font.Unit, Font.GdiCharSet, Font.GdiVerticalFont);
InitializeComponent();
}
private void versionManager_Load(object sender, EventArgs e)
{
try
{
foreach(String Version in Versions)
{
downloadList.Items.Add(Version);
}
foreach (String dir in Directory.GetDirectories(@"versions"))
{
installedList.Items.Add(Path.GetFileName(dir));
downloadList.Items.Remove(Path.GetFileName(dir));
}
}
catch (Exception) { };
}
private void downloadVersion_Click(object sender, EventArgs e)
{
if(downloadList.SelectedIndex == -1){ return; }
downloadVersion.Enabled = false;
downloadList.Enabled = false;
ControlBox = false;
version = downloadList.SelectedItem.ToString();
url = findUrl(version, false);
password = getPassword(url,false);
proUrl = findUrl(version, true);
proPassword = getPassword(proUrl, true);
yoyoUrl = getOriginalUrl(version);
try
{
startDownload(url, "psvita.zip");
}
catch(Exception)
{
MessageBox.Show("Could not connect to yoyogames.com", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
downloadVersion.Enabled = true;
downloadList.Enabled = true;
ControlBox = true;
}
}
private void deleteVersion_Click(object sender, EventArgs e)
{
if (installedList.SelectedIndex == -1) { return; }
string toRemove = installedList.SelectedItem.ToString();
if(toRemove == "1.4.9999")
{
MessageBox.Show("Cannot delete builtin 1.4.9999 version!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
else
{
Directory.Delete(@"versions\\" + toRemove, true);
installedList.Items.Remove(toRemove);
downloadList.Items.Add(toRemove);
}
}
private void versionManager_FormClosing(object sender, FormClosingEventArgs e)
{
if(ControlBox == false)
{
e.Cancel = true;
}
Program.GM.Enabled = true;
Program.GM.reloadVersions();
}
}
}
//IDC that my code is shit:
#pragma warning disable IDE1006
#pragma warning disable IDE0017
using System;
using System.ComponentModel;
using System.Drawing;
using System.IO;
using Ionic.Zip;
using System.Net;
using System.Net.Cache;
using System.Windows.Forms;
using System.Threading;
namespace GayMaker
{
public partial class versionManager : Form
{
private void CopyDir(string source, string target)
{
if (!Directory.Exists(target)) Directory.CreateDirectory(target);
string[] sysEntries = Directory.GetFileSystemEntries(source);
foreach (string sysEntry in sysEntries)
{
string fileName = Path.GetFileName(sysEntry);
string targetPath = Path.Combine(target, fileName);
if (Directory.Exists(sysEntry))
CopyDir(sysEntry, targetPath);
else
{
File.Copy(sysEntry, targetPath, true);
}
}
}
String[] Versions = { "1.4.1464", "1.4.1468", "1.4.1469", "1.4.1470", "1.4.1474", "1.4.1495", "1.4.1496", "1.4.1499", "1.4.1514", "1.4.1522", "1.4.1542", "1.4.1556", "1.4.1565", "1.4.1567", "1.4.1598", "1.4.1629", "1.4.1657", "1.4.1675", "1.4.1683", "1.4.1690", "1.4.1711", "1.4.1747", "1.4.1749", "1.4.1757", "1.4.1760", "1.4.1763", "1.4.1767", "1.4.1772", "1.4.1773", "1.4.1788", "1.4.1804", "1.99.505", "1.99.525", "1.99.533", "1.99.548", "1.99.549", "1.99.550", "1.99.551" };
String[] VitaUrls = { "https://updater.yoyogames.com/api/download/psvita/71880e2e-e496-449f-9211-1a700f198335.zip", "https://updater.yoyogames.com/api/download/psvita/fb89b27d-7a56-4cdd-adbc-3b8e62ca2cc3.zip", "https://updater.yoyogames.com/api/download/psvita/da46f54f-5c00-4094-a26e-349035ae01a7.zip", "https://updater.yoyogames.com/api/download/psvita/c1761a9d-6420-44d0-835e-f3365e20a5ab.zip", "https://updater.yoyogames.com/api/download/psvita/aa7f0e02-6b9d-4d6f-8127-f4916d84c8fa.zip", "https://updater.yoyogames.com/api/download/psvita/8e7a116a-3518-482b-9d68-dc70aafa9772.zip", "https://updater.yoyogames.com/api/download/psvita/b5a773c3-8c81-4d50-937f-f2037dd6949a.zip", "https://updater.yoyogames.com/api/download/psvita/652004f6-4ba0-4779-93a9-3e8eacf31928.zip", "https://updater.yoyogames.com/api/download/psvita/e462256c-bed3-4301-9340-af428a41ba50.zip", "https://updater.yoyogames.com/api/download/psvita/59cca874-7bc7-426e-8535-434aa6dfc813.zip", "https://updater.yoyogames.com/api/download/psvita/4e51d1b5-3849-4cf4-86c6-d6b81bcf4e46.zip", "https://updater.yoyogames.com/api/download/psvita/53456f90-c66d-4b44-aa0d-db6e1d37e376.zip", "https://updater.yoyogames.com/api/download/psvita/bd1d4e64-5543-41ef-b0b6-94f3b5c377ac.zip", "https://updater.yoyogames.com/api/download/psvita/de15be40-b8e9-496a-aadb-46c3ea69e93c.zip", "https://updater.yoyogames.com/api/download/psvita/faf56e92-16f8-447b-a2a1-acbbbc31a659.zip", "https://updater.yoyogames.com/api/download/psvita/1a13f8d4-d9a6-43e4-b5cf-a2396fb1103c.zip", "https://updater.yoyogames.com/api/download/psvita/6dbeddb8-1468-4a2e-9c98-cc0117526c52.zip", "https://updater.yoyogames.com/api/download/psvita/18500239-c6cb-431f-9478-969bc5aa7e45.zip", "https://updater.yoyogames.com/api/download/psvita/9f4441e4-d72a-491c-9061-23db81308616.zip", "https://updater.yoyogames.com/api/download/psvita/640b0323-88f2-4e94-bb07-97034777a305.zip", "https://updater.yoyogames.com/api/download/psvita/52cfe6e4-9d4a-43a0-bfba-a38802b96be6.zip", "https://updater.yoyogames.com/api/download/psvita/501d070a-c53a-40a7-bf06-558161b77b30.zip", "https://updater.yoyogames.com/api/download/psvita/a7d57b1e-24dc-4e61-b402-9ec845cbb098.zip", "https://updater.yoyogames.com/api/download/psvita/dc390c15-b2de-494b-8031-651efee2020e.zip", "https://updater.yoyogames.com/api/download/psvita/213f252a-aa11-49fb-96e7-91b9242fad29.zip", "https://updater.yoyogames.com/api/download/psvita/0c23316a-f349-42f7-b267-59033632a77c.zip", "https://updater.yoyogames.com/api/download/psvita/58e19718-61a1-4be7-811b-b7558925d7ed.zip", "https://updater.yoyogames.com/api/download/psvita/95c61747-1ed2-4ec3-8ea0-037430417b34.zip", "https://updater.yoyogames.com/api/download/psvita/5fd1304c-42be-4d09-9359-4165a4d39591.zip", "https://updater.yoyogames.com/api/download/psvita/c9f28194-5994-459e-8218-b3bf45ddf1e0.zip", "https://updater.yoyogames.com/api/download/psvita/f8d08841-b6ae-4e34-a3d6-67407c4343b5.zip", "https://updater.yoyogames.com/api/download/psvita/09b42fab-6da7-4fe9-a60d-44e29fe6cf9a.zip", "https://updater.yoyogames.com/api/download/psvita/2dd4b46f-7a4e-4234-933c-1bcf0e34523e.zip", "https://updater.yoyogames.com/api/download/psvita/4b9f6329-4552-46d5-a401-e9f0d9c2a230.zip", "https://updater.yoyogames.com/api/download/psvita/77244b67-7e41-4f28-b83a-019f06739f9e.zip", "https://updater.yoyogames.com/api/download/psvita/b392e1d2-c431-4baa-9235-2dd1e95fc383.zip", "https://updater.yoyogames.com/api/download/psvita/afd82c60-daf5-4052-b785-a8327e8e509b.zip", "https://updater.yoyogames.com/api/download/psvita/a770d6eb-bf78-4ff6-8065-03ae79cda515.zip" };
String[] Passwords = { "YJYDyTRu//reGTDMRtvqeA==", "qF5w5XngIlsjfF+Lgjvddg==", "HKMg1V1AJRyp4+fIpZe43Q==", "0fWronXzSHo0N3vP1OhXkw==", "mcUqbOFUxmKN/kfz0uczhA==", "Jo27hTbHw/fwIn6FWVyIiw==", "d0buqe+qJ7PoJ/+pO8UO8g==", "Psz0UkA3muQV9s+sJXQyyw==", "g7X4CTCE2P7zjHQjlUJjhg==", "VnKXoy+yOI1qt3ozXFW+VA==", "Wg4noeglJDRfAvzdHFMPAg==", "qzH9EbGL+EiQWERbAj63Hg==", "2l9hlMtrgVsXssl6BwGaaQ==", "pu05nMHNyzUYry9kF7WFdw==", "jM6jCc+Pr3muL/r+MXrJGQ==", "LdxwOYgTuC3kkPBHscNWZQ==", "eqJM94iGbbBsIA7iMCbCzg==", "nus0kqTASRp4r+cZQz4dHA==", "gXxOQ/hMdAG5XDnmzwRJBA==", "B8Yn0JHxXkE+q8DfboNZsw==", "2ZoimLxEz/Na7zoZnmQjbg==", "ftW7sk7jsT3tv09qQiOg9A==", "jvEhtQpW6yqRL0HLrU/k5w==", "9GsaUhrUn69As/n0hjyrDg==", "Xc13EtzfcI0wBdB46T8bCg==", "8ItorzszZnkr+AMeqvKt/g==", "z7jo2sFobX4wjv9sbokX5g==", "bfsOB+ih0Voayb+xuD+hmg==", "O8e/g0v8bnmVaxP0Mj+lTQ==", "CoUKbUNjJhUhN2Nis2Ofng==", "mnRXlyAzJDLXCk9xi5frmA==", "f+cjma9wcRLTqDBd5mpAgQ==", "WieG/fzWg+zksBrzMH0n0A==", "khCX7Bp6xPt9NdbhVMXzKg==", "AyvTY0JjJ8FcH93GNsqaMQ==", "hncejwoHFaVYgT4iQ1pKgg==", "DLP9sUfmMgcZ+q0BIncr8A==", "Z1E5Ad1HzQe9EzTuA7fbjg==" };
String[] ProUrls = { "https://updater.yoyogames.com/api/download/pro/2aa95d44-cf9e-4a58-9d09-2a240bae2590.zip", "https://updater.yoyogames.com/api/download/pro/9c06dd3b-8105-4637-b720-93dbc7de7e7b.zip", "https://updater.yoyogames.com/api/download/pro/ea4c8359-2755-43b0-8c8c-21028d2e926f.zip", "https://updater.yoyogames.com/api/download/pro/34146826-64be-4ae2-b2ea-3d405f521bf4.zip", "https://updater.yoyogames.com/api/download/pro/7e1b4a27-c4cc-433a-a6cd-790c8370f69e.zip", "https://updater.yoyogames.com/api/download/pro/7ddfcb90-6d15-4593-9310-7effd86d5c5f.zip", "https://updater.yoyogames.com/api/download/pro/60809534-d886-4134-9b39-4f2a4b2d5417.zip", "https://updater.yoyogames.com/api/download/pro/7068d83c-5105-4e38-97cd-c8589ba995ac.zip", "https://updater.yoyogames.com/api/download/pro/e1c7104b-b79e-4f62-88b9-f5422b3a0062.zip", "https://updater.yoyogames.com/api/download/pro/8a2fadd8-9cbb-4c8b-b36d-34155a8b8366.zip", "https://updater.yoyogames.com/api/download/pro/422d570d-c0ba-46b1-90c6-96d4bb097198.zip", "https://updater.yoyogames.com/api/download/pro/3b8df5a4-61d3-42b2-8131-a7e3276a9d45.zip", "https://updater.yoyogames.com/api/download/pro/67808b11-d116-4f3b-9743-c3c56ca3fa11.zip", "https://updater.yoyogames.com/api/download/pro/0e138e3d-9f09-4a9e-9bb1-75de9dc35247.zip", "https://updater.yoyogames.com/api/download/pro/40d52eaf-d50e-46b0-b183-d45dea5fd1d3.zip", "https://updater.yoyogames.com/api/download/pro/015e9bdc-7e99-4815-a630-c2cb7fbad2bc.zip", "https://updater.yoyogames.com/api/download/pro/3c5ffb88-cc42-41e2-9365-2a3cd19f9f1c.zip", "https://updater.yoyogames.com/api/download/pro/e8a82731-30b9-4cbd-bb4a-23adb65918d7.zip", "https://updater.yoyogames.com/api/download/pro/951d162a-98a3-482b-b650-584c1b40638f.zip", "https://updater.yoyogames.com/api/download/pro/0acfc6df-06d8-4f58-9496-7a38c20c4efb.zip", "https://updater.yoyogames.com/api/download/pro/10ab3c1c-b1ee-4d80-90d2-0c189c508429.zip", "https://updater.yoyogames.com/api/download/pro/6df40635-9cf0-4ecb-9171-72ad3ecf96fe.zip", "https://updater.yoyogames.com/api/download/pro/86f8bf2a-8d70-4eb5-bd83-a2f2eb92bc7a.zip", "https://updater.yoyogames.com/api/download/pro/e703ba9b-b315-4b6a-b13b-5b0e2c816447.zip", "https://updater.yoyogames.com/api/download/pro/69966fb5-e022-4c9d-8c91-e5b82433fdbf.zip", "https://updater.yoyogames.com/api/download/pro/7ab65890-a469-41d4-b911-71b0ec18130c.zip", "https://updater.yoyogames.com/api/download/pro/1dcde91f-266a-4f83-b6aa-ae52706d11de.zip", "https://updater.yoyogames.com/api/download/pro/0f7d7ae9-c0ec-4518-867d-835b5657c301.zip", "https://updater.yoyogames.com/api/download/pro/4bf55408-2de9-426d-973c-27f8ffb25982.zip", "https://updater.yoyogames.com/api/download/pro/c132db45-6b5b-4dae-8a67-577bd8a3c77b.zip", "https://updater.yoyogames.com/api/download/pro/c7d823f5-9b53-4f23-8cfa-133814ae1d18.zip", "https://updater.yoyogames.com/api/download/pro/d7ebbb34-ee04-41b0-9d43-a751fd5c77e8.zip", "https://updater.yoyogames.com/api/download/pro/15d3bece-ebb8-49e9-b2ef-9a3eb8c0976a.zip", "https://updater.yoyogames.com/api/download/pro/7dfa06f9-ea44-4932-89fe-9efdaf0ba5c7.zip", "https://updater.yoyogames.com/api/download/pro/5fe561c7-a8b1-4cc3-9839-08268a1c6031.zip", "https://updater.yoyogames.com/api/download/pro/532013db-efb3-4227-81a4-36b6d8cb9029.zip", "https://updater.yoyogames.com/api/download/pro/7f485047-6575-476a-94f0-c27776664543.zip", "https://updater.yoyogames.com/api/download/pro/aa180c74-2b1c-4bc1-98b9-304394f8619d.zip", "https://updater.yoyogames.com/api/download/pro/82d49e93-c0e3-470e-8a5d-4bf3cd1db7db.zip", "https://updater.yoyogames.com/api/download/pro/15d3bece-ebb8-49e9-b2ef-9a3eb8c0976a.zip", "https://updater.yoyogames.com/api/download/pro/7dfa06f9-ea44-4932-89fe-9efdaf0ba5c7.zip", "https://updater.yoyogames.com/api/download/pro/5fe561c7-a8b1-4cc3-9839-08268a1c6031.zip", "https://updater.yoyogames.com/api/download/pro/532013db-efb3-4227-81a4-36b6d8cb9029.zip", "https://updater.yoyogames.com/api/download/pro/7f485047-6575-476a-94f0-c27776664543.zip", "https://updater.yoyogames.com/api/download/pro/aa180c74-2b1c-4bc1-98b9-304394f8619d.zip", "https://updater.yoyogames.com/api/download/pro/82d49e93-c0e3-470e-8a5d-4bf3cd1db7db.zip" };
String[] ProPasswords = { "w8LU7n7qL/TTKYZ50Y+GJA==", "1a1kbg/He96W1kXu5MUtSw==", "cyUh9CJIX3fgyuugcqBgWw==", "yrMrZw1Nd5vgItLAMWWsWw==", "kp4xpA/K5cOuy9NefH6OiQ==", "j1eACYo4HFD8QgXLSc+WWA==", "CnIc2NJgxxf9CnvI2Jk1jg==", "AcyXSwl+I9HJXGW3lqr+wA==", "638Ow1jt7Fx1IzbZ91ZLUw==", "b56/tGBLlwj1aBS36ojAuw==", "UZnpjFq2a23rWg8OdTbOWw==", "pdpcCRrvm4NDK0Ak1V0KDw==", "csw6SBPb3FeJ+awgZVTJIA==", "QigzRUrPh6a1cruYfJIMSg==", "fk5N0e4Z4SNXwjaG3hTfbw==", "6knIcKZmICifwDFkPqnCiQ==", "DME9DhhFSmGQ4m+nSfXNew==", "r/XHptEBE+h2vU1aR9zZ6w==", "F/9CW15HDFGv9I/WLLBtJw==", "8lfa+wgkHFkJ9Eg6yXoB6w==", "gguQVlH7ZGIfbtKIY3YZbA==", "16I2d9EyM2j/zVyQmh3uxg==", "4O3W3Ih5MDgjEhSXlNSmtw==", "3COCVXB99MmOkp2CLddzmA==", "2ObB6N0sIVzBd76ysXC3Vg==", "4ZfC1NtXipOJPaF0m9UWHA==", "8xokrO5dadWdbTJkGmBF+w==", "RFR+3IEW+K9Q4SDndIaJGQ==", "QM3DGdmPRpwB7viZe85MUg==", "qF34ZrOIzWhOXBABarMAHg==", "GeAcP5ZmDHta/n7AO0vwYg==", "AR5cF7r65VTU8TThe6quaQ==", "cYc1VtX2k+oScURpEbyjRg==", "PJQAvameW9Mw9JY3FhW37A==", "yKJqh2+YvmwqXFThnJ6WtA==", "lzVJHoz+3J22cAKqS0kB1w==", "m7UQ8DLCMwnS+eOjgPkeYA==", "K25ONcZeWZ6Hj2QZhFiurQ==", "hQCOwIqppCXZ4TNlyEs9Ag==", "cYc1VtX2k+oScURpEbyjRg==", "PJQAvameW9Mw9JY3FhW37A==", "yKJqh2+YvmwqXFThnJ6WtA==", "lzVJHoz+3J22cAKqS0kB1w==", "m7UQ8DLCMwnS+eOjgPkeYA==", "K25ONcZeWZ6Hj2QZhFiurQ==", "hQCOwIqppCXZ4TNlyEs9Ag==" };
private string currentDownload = "";
String version;
String url;
String password;
String yoyoUrl;
String proUrl;
String proPassword;
private void startDownload(string URL,string path)
{
currentDownload = path;
WebClient wc = new WebClient();
wc.CachePolicy = new RequestCachePolicy(RequestCacheLevel.NoCacheNoStore);
wc.Dispose();
WebClient client = new WebClient();
client.Headers.Add("pragma", "no-cache");
client.DownloadProgressChanged += new DownloadProgressChangedEventHandler(client_DownloadProgressChanged);
client.DownloadFileCompleted += new AsyncCompletedEventHandler(client_DownloadFileCompleted);
client.DownloadFileAsync(new Uri(URL), path);
}
private void client_DownloadFileCompleted(object sender, AsyncCompletedEventArgs e)
{
if(currentDownload == "psvita.zip")
{
startDownload(proUrl, "pro.zip");
}
else if(currentDownload == "pro.zip")
{
startDownload(yoyoUrl, "gamemaker.zip");
}
else if(currentDownload == "gamemaker.zip")
{
DownloadProgress.Style = ProgressBarStyle.Marquee;
new Thread(() =>
{
Thread.CurrentThread.IsBackground = true;
Invoke((Action)delegate { Status.Text = "Extracting psvita.zip"; });
if (Directory.Exists(@"_psvita"))
{
Directory.Delete(@"_psvita", true);
}
using (ZipFile archive = new ZipFile(@"psvita.zip"))
{
archive.Password = password;
archive.Encryption = EncryptionAlgorithm.PkzipWeak;
archive.ExtractAll(@"_psvita");
}
Invoke((Action)delegate { Status.Text = "Extracting pro.zip"; });
if (Directory.Exists(@"_pro"))
{
Directory.Delete(@"_pro", true);
}
using (ZipFile archive = new ZipFile(@"pro.zip"))
{
archive.Password = proPassword;
archive.Encryption = EncryptionAlgorithm.PkzipWeak;
archive.ExtractAll(@"_pro");
}
Invoke((Action)delegate { Status.Text = "Extracting gamemaker.zip"; });
if (Directory.Exists(@"_gamemaker"))
{
Directory.Delete(@"_gamemaker", true);
}
using (ZipFile archive = new ZipFile((@"gamemaker.zip")))
{
archive.Password = "12#_p@o3w$ir_ADD-_$#";
archive.Encryption = EncryptionAlgorithm.PkzipWeak;
archive.ExtractAll(@"_gamemaker");
}
if (!Directory.Exists(@"versions"))
{
Directory.CreateDirectory(@"versions");
}
if (!Directory.Exists(@"versions\\" + version))
{
Directory.CreateDirectory(@"versions\\" + version);
}
if (!Directory.Exists(@"versions\\" + version + "\\Runner"))
{
Directory.CreateDirectory(@"versions\\" + version + "\\Runner");
}
if (!Directory.Exists(@"versions\\" + version + "\\Shaders"))
{
Directory.CreateDirectory(@"versions\\" + version + "\\Shaders");
}
if (!Directory.Exists(@"versions\\" + version + "\\YYC"))
{
Directory.CreateDirectory(@"versions\\" + version + "\\YYC");
}
try
{
File.Copy(@"_gamemaker\\BouncyCastle.Crypto.dll", @"versions\\" + version + "\\BouncyCastle.Crypto.dll", true);
File.Copy(@"_gamemaker\\spine-csharp.dll", @"versions\\" + version + "\\spine-csharp.dll", true);
File.Copy(@"_gamemaker\\SharpCompress.dll", @"versions\\" + version + "\\SharpCompress.dll", true);
File.Copy(@"_gamemaker\\Ionic.Zip.Reduced.dll", @"versions\\" + version + "\\Ionic.Zip.Reduced.dll", true);
File.Copy(@"_gamemaker\\Newtonsoft.Json.dll", @"versions\\" + version + "\\Ionic.Zip.Reduced.dll", true);
}
catch (Exception) { };
File.Copy(@"_gamemaker\\GMAssetCompiler.exe", @"versions\\" + version + "\\GMAssetCompiler.exe", true);
File.Copy(@"_gamemaker\\ffmpeg.exe", @"versions\\" + version + "\\ffmpeg.exe", true);
CopyDir(@"_gamemaker\\Shaders", @"versions\\" + version + "\\Shaders");
CopyDir(@"_psvita\\YYC", @"versions\\" + version + "\\YYC");
CopyDir(@"_pro\YYC\\include", @"versions\\" + version + "\\YYC\\include");
File.Copy(@"_psvita\\PSVita\\CG_PShaderCommon.shader", @"versions\\" + version + "\\Shaders\\CG_PShaderCommon.shader", true);
File.Copy(@"_psvita\\PSVita\\CG_VShaderCommon.shader", @"versions\\" + version + "\\Shaders\\CG_VShaderCommon.shader", true);
CopyDir(@"Runner", @"versions\\" + version + "\\Runner");
File.Copy(@"_psvita\\PSVita\\PSVitaRunner.self", @"versions\\" + version + "\\Runner\\eboot.bin", true);
Directory.Delete(@"_gamemaker", true);
Directory.Delete(@"_psvita", true);
Directory.Delete(@"_pro", true);
File.Delete("psvita.zip");
File.Delete("gamemaker.zip");
File.Delete("pro.zip");
Invoke((Action)delegate {
downloadList.Enabled = true;
downloadVersion.Enabled = true;
downloadList.Items.Remove(version);
installedList.Items.Add(version);
Status.Text = "Waiting";
DownloadProgress.Value = 0;
DownloadProgress.Style = ProgressBarStyle.Continuous;
ControlBox = true;
});
}).Start();
}
}
private void client_DownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e)
{
DownloadProgress.Value = e.ProgressPercentage;
Status.Text = "Downloading " + currentDownload + " " +e.ProgressPercentage + "%";
}
public String getOriginalUrl(string version)
{
return "https://updater.yoyogames.com/api/download/original?filename=Original-" + version + ".zip";
}
public string findUrl(string version, bool pro)
{
int index = 0;
foreach(string ver in Versions)
{
if(ver == version)
{
break;
}
index++;
}
if(pro)
{
String realUrl = "http://updatecdn.yoyogames.com/" + Path.GetFileName(ProUrls[index]);
return realUrl;
}
else
{
String realUrl = "http://updatecdn.yoyogames.com/" + Path.GetFileName(VitaUrls[index]);
return realUrl;
}
}
public string getPassword(string url, bool pro)
{
string zip = Path.GetFileName(url);
if (zip.Contains("Original"))
{
return "12#_p@o3w$ir_ADD-_$#";
}
int index = 0;
if (pro)
{
foreach (String URL in ProUrls)
{
if (Path.GetFileName(URL) == zip)
{
break;
}
index++;
}
}
else
{
foreach (String URL in VitaUrls)
{
if (Path.GetFileName(URL) == zip)
{
break;
}
index++;
}
}
if(pro)
{
return ProPasswords[index];
}
else
{
return Passwords[index];
}
}
public versionManager()
{
//Bypass Windows DPI Scaling (See issue #8 to see why its important)
Font = new Font(Font.Name, 8.25f * 96f / CreateGraphics().DpiX, Font.Style, Font.Unit, Font.GdiCharSet, Font.GdiVerticalFont);
InitializeComponent();
}
private void versionManager_Load(object sender, EventArgs e)
{
try
{
foreach(String Version in Versions)
{
downloadList.Items.Add(Version);
}
foreach (String dir in Directory.GetDirectories(@"versions"))
{
installedList.Items.Add(Path.GetFileName(dir));
downloadList.Items.Remove(Path.GetFileName(dir));
}
}
catch (Exception) { };
}
private void downloadVersion_Click(object sender, EventArgs e)
{
if(downloadList.SelectedIndex == -1){ return; }
downloadVersion.Enabled = false;
downloadList.Enabled = false;
ControlBox = false;
version = downloadList.SelectedItem.ToString();
url = findUrl(version, false);
password = getPassword(url,false);
proUrl = findUrl(version, true);
proPassword = getPassword(proUrl, true);
yoyoUrl = getOriginalUrl(version);
try
{
startDownload(url, "psvita.zip");
}
catch(Exception)
{
MessageBox.Show("Could not connect to yoyogames.com", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
downloadVersion.Enabled = true;
downloadList.Enabled = true;
ControlBox = true;
}
}
private void deleteVersion_Click(object sender, EventArgs e)
{
if (installedList.SelectedIndex == -1) { return; }
string toRemove = installedList.SelectedItem.ToString();
if(toRemove == "1.4.9999")
{
MessageBox.Show("Cannot delete builtin 1.4.9999 version!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
else
{
Directory.Delete(@"versions\\" + toRemove, true);
installedList.Items.Remove(toRemove);
downloadList.Items.Add(toRemove);
}
}
private void versionManager_FormClosing(object sender, FormClosingEventArgs e)
{
if(ControlBox == false)
{
e.Cancel = true;
}
Program.GM.Enabled = true;
Program.GM.reloadVersions();
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -1,72 +1,72 @@
<?xml version="1.0" encoding="utf-8"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<!-- UAC Manifest Options
If you want to change the Windows User Account Control level replace the
requestedExecutionLevel node with one of the following.
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
Specifying requestedExecutionLevel element will disable file and registry virtualization.
Remove this element if your application requires this virtualization for backwards
compatibility.
-->
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!-- A list of the Windows versions that this application has been tested on
and is designed to work with. Uncomment the appropriate elements
and Windows will automatically select the most compatible environment. -->
<!-- Windows Vista -->
<!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />-->
<!-- Windows 7 -->
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />
<!-- Windows 8 -->
<!--<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />-->
<!-- Windows 8.1 -->
<!--<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />-->
<!-- Windows 10 -->
<!--<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />-->
</application>
</compatibility>
<!-- Lie to windows and say GayMaker is GPI-Aware so that windows wont rescale my shit.. -->
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
</windowsSettings>
</application>
<!-- Enable themes for Windows common controls and dialogs (Windows XP and later) -->
<!--
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
-->
</assembly>
<?xml version="1.0" encoding="utf-8"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<!-- UAC Manifest Options
If you want to change the Windows User Account Control level replace the
requestedExecutionLevel node with one of the following.
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
Specifying requestedExecutionLevel element will disable file and registry virtualization.
Remove this element if your application requires this virtualization for backwards
compatibility.
-->
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!-- A list of the Windows versions that this application has been tested on
and is designed to work with. Uncomment the appropriate elements
and Windows will automatically select the most compatible environment. -->
<!-- Windows Vista -->
<!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />-->
<!-- Windows 7 -->
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />
<!-- Windows 8 -->
<!--<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />-->
<!-- Windows 8.1 -->
<!--<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />-->
<!-- Windows 10 -->
<!--<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />-->
</application>
</compatibility>
<!-- Lie to windows and say GayMaker is GPI-Aware so that windows wont rescale my shit.. -->
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
</windowsSettings>
</application>
<!-- Enable themes for Windows common controls and dialogs (Windows XP and later) -->
<!--
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
-->
</assembly>

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="DotNetZip" version="1.12.0" targetFramework="net461" />
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="DotNetZip" version="1.12.0" targetFramework="net461" />
</packages>