Upload v1.7.4 src

This commit is contained in:
AtelierWindows 2019-06-28 21:57:11 +12:00
parent eb9a23c3c2
commit d562adf8c7
41 changed files with 42663 additions and 2 deletions

25
GayMaker.sln Normal file
View File

@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28010.2003
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GayMaker", "GayMaker\GayMaker.csproj", "{F189E983-481E-4740-81B7-13A415D68636}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F189E983-481E-4740-81B7-13A415D68636}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F189E983-481E-4740-81B7-13A415D68636}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F189E983-481E-4740-81B7-13A415D68636}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F189E983-481E-4740-81B7-13A415D68636}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {2B72F881-81B5-4BB4-AE0A-2DCB6609589D}
EndGlobalSection
EndGlobal

6
GayMaker/App.config Normal file
View File

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

66
GayMaker/GMAC.cs Normal file
View File

@ -0,0 +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);
}
}
}

724
GayMaker/GayMaker.Designer.cs generated Normal file
View File

@ -0,0 +1,724 @@
namespace GayMaker
{
partial class GayMaker
{
/// <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(GayMaker));
this.label1 = new System.Windows.Forms.Label();
this.ProjectPath = new System.Windows.Forms.TextBox();
this.BrowseProject = new System.Windows.Forms.Button();
this.label2 = new System.Windows.Forms.Label();
this.IconPath = new System.Windows.Forms.TextBox();
this.BrowseIcon = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
this.PicPath = new System.Windows.Forms.TextBox();
this.BrowsePic = new System.Windows.Forms.Button();
this.label5 = new System.Windows.Forms.Label();
this.GameSettings = new System.Windows.Forms.Panel();
this.YYCEnabled = new System.Windows.Forms.CheckBox();
this.label8 = new System.Windows.Forms.Label();
this.DownloadMoreRAM = new System.Windows.Forms.ComboBox();
this.label7 = new System.Windows.Forms.Label();
this.GMVersion = new System.Windows.Forms.ComboBox();
this.LeftGate = new System.Windows.Forms.CheckBox();
this.GdbCategory = new System.Windows.Forms.CheckBox();
this.pictureBox3 = new System.Windows.Forms.PictureBox();
this.GlobalGameSettings = new System.Windows.Forms.Label();
this.TitleIdBox = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.AppName = new System.Windows.Forms.TextBox();
this.title = new System.Windows.Forms.Label();
this.BrowseGate = new System.Windows.Forms.Button();
this.GatePath = new System.Windows.Forms.TextBox();
this.StartupLabel = new System.Windows.Forms.Label();
this.BrowsePath = new System.Windows.Forms.Button();
this.BgPath = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.Compiler = new System.Windows.Forms.PictureBox();
this.Prefs = new System.Windows.Forms.Label();
this.selectedHome = new System.Windows.Forms.RadioButton();
this.selectedLive = new System.Windows.Forms.RadioButton();
this.SelectedRun = new System.Windows.Forms.RadioButton();
this.CreateVPK = new System.Windows.Forms.Button();
this.panel1 = new System.Windows.Forms.Panel();
this.GmacOut = new System.Windows.Forms.TextBox();
this.Logo = new System.Windows.Forms.PictureBox();
this.HomePage = new System.Windows.Forms.Panel();
this.ShortNamePreview = new System.Windows.Forms.Label();
this.IconBG = new System.Windows.Forms.PictureBox();
this.Running = new System.Windows.Forms.Panel();
this.LiveArea = new System.Windows.Forms.Panel();
this.SFZ = new System.Windows.Forms.PictureBox();
this.GateBG = new System.Windows.Forms.PictureBox();
this.LABackground = new System.Windows.Forms.PictureBox();
this.EE1 = new System.Windows.Forms.PictureBox();
this.GameSettings.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.Compiler)).BeginInit();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.Logo)).BeginInit();
this.HomePage.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.IconBG)).BeginInit();
this.LiveArea.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.SFZ)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.GateBG)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.LABackground)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.EE1)).BeginInit();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(3, 15);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(93, 13);
this.label1.TabIndex = 1;
this.label1.Text = "Project File (.gmx):";
//
// ProjectPath
//
this.ProjectPath.Location = new System.Drawing.Point(6, 29);
this.ProjectPath.Name = "ProjectPath";
this.ProjectPath.ReadOnly = true;
this.ProjectPath.Size = new System.Drawing.Size(282, 20);
this.ProjectPath.TabIndex = 2;
this.ProjectPath.Text = "(none)";
//
// BrowseProject
//
this.BrowseProject.Location = new System.Drawing.Point(291, 29);
this.BrowseProject.Name = "BrowseProject";
this.BrowseProject.Size = new System.Drawing.Size(70, 23);
this.BrowseProject.TabIndex = 3;
this.BrowseProject.Text = "Browse";
this.BrowseProject.UseVisualStyleBackColor = true;
this.BrowseProject.Click += new System.EventHandler(this.BrowseProject_Click);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(3, 55);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(116, 13);
this.label2.TabIndex = 5;
this.label2.Text = "Icon0 (PNG, 128x128):";
//
// IconPath
//
this.IconPath.Location = new System.Drawing.Point(3, 71);
this.IconPath.Name = "IconPath";
this.IconPath.ReadOnly = true;
this.IconPath.Size = new System.Drawing.Size(282, 20);
this.IconPath.TabIndex = 6;
this.IconPath.Text = "img\\icon0.png";
//
// BrowseIcon
//
this.BrowseIcon.Location = new System.Drawing.Point(291, 68);
this.BrowseIcon.Name = "BrowseIcon";
this.BrowseIcon.Size = new System.Drawing.Size(70, 23);
this.BrowseIcon.TabIndex = 7;
this.BrowseIcon.Text = "Browse";
this.BrowseIcon.UseVisualStyleBackColor = true;
this.BrowseIcon.Click += new System.EventHandler(this.BrowseIcon_Click);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(4, 172);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(107, 13);
this.label3.TabIndex = 8;
this.label3.Text = "Pic0 (PNG, 960x544)";
//
// PicPath
//
this.PicPath.Location = new System.Drawing.Point(7, 186);
this.PicPath.Name = "PicPath";
this.PicPath.ReadOnly = true;
this.PicPath.Size = new System.Drawing.Size(278, 20);
this.PicPath.TabIndex = 9;
this.PicPath.Text = "img\\pic0.png";
//
// BrowsePic
//
this.BrowsePic.Location = new System.Drawing.Point(291, 186);
this.BrowsePic.Name = "BrowsePic";
this.BrowsePic.Size = new System.Drawing.Size(70, 23);
this.BrowsePic.TabIndex = 10;
this.BrowsePic.Text = "Browse";
this.BrowsePic.UseVisualStyleBackColor = true;
this.BrowsePic.Click += new System.EventHandler(this.BrowsePic_Click);
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(0, 9);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(48, 13);
this.label5.TabIndex = 12;
this.label5.Text = "Preview:";
//
// GameSettings
//
this.GameSettings.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.GameSettings.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.GameSettings.Controls.Add(this.YYCEnabled);
this.GameSettings.Controls.Add(this.label8);
this.GameSettings.Controls.Add(this.DownloadMoreRAM);
this.GameSettings.Controls.Add(this.label7);
this.GameSettings.Controls.Add(this.GMVersion);
this.GameSettings.Controls.Add(this.LeftGate);
this.GameSettings.Controls.Add(this.GdbCategory);
this.GameSettings.Controls.Add(this.pictureBox3);
this.GameSettings.Controls.Add(this.GlobalGameSettings);
this.GameSettings.Controls.Add(this.TitleIdBox);
this.GameSettings.Controls.Add(this.label6);
this.GameSettings.Controls.Add(this.AppName);
this.GameSettings.Controls.Add(this.title);
this.GameSettings.Controls.Add(this.BrowseGate);
this.GameSettings.Controls.Add(this.GatePath);
this.GameSettings.Controls.Add(this.StartupLabel);
this.GameSettings.Controls.Add(this.BrowsePath);
this.GameSettings.Controls.Add(this.BgPath);
this.GameSettings.Controls.Add(this.label4);
this.GameSettings.Controls.Add(this.PicPath);
this.GameSettings.Controls.Add(this.label1);
this.GameSettings.Controls.Add(this.BrowsePic);
this.GameSettings.Controls.Add(this.ProjectPath);
this.GameSettings.Controls.Add(this.BrowseProject);
this.GameSettings.Controls.Add(this.label3);
this.GameSettings.Controls.Add(this.label2);
this.GameSettings.Controls.Add(this.BrowseIcon);
this.GameSettings.Controls.Add(this.IconPath);
this.GameSettings.Location = new System.Drawing.Point(968, 25);
this.GameSettings.Name = "GameSettings";
this.GameSettings.Size = new System.Drawing.Size(368, 354);
this.GameSettings.TabIndex = 14;
//
// YYCEnabled
//
this.YYCEnabled.AutoSize = true;
this.YYCEnabled.Location = new System.Drawing.Point(257, 333);
this.YYCEnabled.Name = "YYCEnabled";
this.YYCEnabled.Size = new System.Drawing.Size(69, 17);
this.YYCEnabled.TabIndex = 29;
this.YYCEnabled.Text = "Use YYC";
this.YYCEnabled.UseVisualStyleBackColor = true;
this.YYCEnabled.CheckedChanged += new System.EventHandler(this.YYCEnabled_CheckedChanged);
//
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(257, 290);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(65, 13);
this.label8.TabIndex = 28;
this.label8.Text = "GM Version:";
//
// DownloadMoreRAM
//
this.DownloadMoreRAM.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.DownloadMoreRAM.FormattingEnabled = true;
this.DownloadMoreRAM.Items.AddRange(new object[] {
"None",
"+29MiB",
"+77MiB",
"+109MiB"});
this.DownloadMoreRAM.Location = new System.Drawing.Point(257, 226);
this.DownloadMoreRAM.Name = "DownloadMoreRAM";
this.DownloadMoreRAM.Size = new System.Drawing.Size(103, 21);
this.DownloadMoreRAM.TabIndex = 27;
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(248, 209);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(112, 13);
this.label7.TabIndex = 26;
this.label7.Text = "Download More RAM:";
//
// GMVersion
//
this.GMVersion.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.GMVersion.FormattingEnabled = true;
this.GMVersion.Items.AddRange(new object[] {
"1.4.9999"});
this.GMVersion.Location = new System.Drawing.Point(257, 306);
this.GMVersion.MaxDropDownItems = 100;
this.GMVersion.Name = "GMVersion";
this.GMVersion.Size = new System.Drawing.Size(103, 21);
this.GMVersion.TabIndex = 25;
this.GMVersion.SelectedIndexChanged += new System.EventHandler(this.GMVersion_SelectedIndexChanged);
//
// LeftGate
//
this.LeftGate.AutoSize = true;
this.LeftGate.Location = new System.Drawing.Point(257, 253);
this.LeftGate.Name = "LeftGate";
this.LeftGate.Size = new System.Drawing.Size(74, 17);
this.LeftGate.TabIndex = 24;
this.LeftGate.Text = "#LeftGate";
this.LeftGate.UseVisualStyleBackColor = true;
this.LeftGate.CheckedChanged += new System.EventHandler(this.LeftGate_CheckedChanged);
//
// GdbCategory
//
this.GdbCategory.AutoSize = true;
this.GdbCategory.Location = new System.Drawing.Point(257, 270);
this.GdbCategory.Name = "GdbCategory";
this.GdbCategory.Size = new System.Drawing.Size(63, 17);
this.GdbCategory.TabIndex = 23;
this.GdbCategory.Text = "No SFZ";
this.GdbCategory.UseVisualStyleBackColor = true;
this.GdbCategory.CheckedChanged += new System.EventHandler(this.GdbCategory_CheckedChanged);
//
// pictureBox3
//
this.pictureBox3.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pictureBox3.BackgroundImage")));
this.pictureBox3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
this.pictureBox3.Location = new System.Drawing.Point(7, 328);
this.pictureBox3.Name = "pictureBox3";
this.pictureBox3.Size = new System.Drawing.Size(17, 18);
this.pictureBox3.TabIndex = 22;
this.pictureBox3.TabStop = false;
//
// GlobalGameSettings
//
this.GlobalGameSettings.AutoSize = true;
this.GlobalGameSettings.ForeColor = System.Drawing.Color.Black;
this.GlobalGameSettings.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.GlobalGameSettings.Location = new System.Drawing.Point(27, 331);
this.GlobalGameSettings.Name = "GlobalGameSettings";
this.GlobalGameSettings.Size = new System.Drawing.Size(109, 13);
this.GlobalGameSettings.TabIndex = 21;
this.GlobalGameSettings.Text = "Global Game Settings";
this.GlobalGameSettings.Click += new System.EventHandler(this.GlobalGameSettings_DoubleClick);
this.GlobalGameSettings.MouseEnter += new System.EventHandler(this.GlobalGameSettings_Enter);
this.GlobalGameSettings.MouseLeave += new System.EventHandler(this.GlobalGameSettings_Leave);
//
// TitleIdBox
//
this.TitleIdBox.Location = new System.Drawing.Point(7, 227);
this.TitleIdBox.MaxLength = 9;
this.TitleIdBox.Name = "TitleIdBox";
this.TitleIdBox.Size = new System.Drawing.Size(244, 20);
this.TitleIdBox.TabIndex = 20;
this.TitleIdBox.Text = "GMSV00001";
this.TitleIdBox.TextChanged += new System.EventHandler(this.TitleIdBox_TextChanged);
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(4, 211);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(41, 13);
this.label6.TabIndex = 19;
this.label6.Text = "TitleID:";
//
// AppName
//
this.AppName.Location = new System.Drawing.Point(6, 268);
this.AppName.MaxLength = 40;
this.AppName.Multiline = true;
this.AppName.Name = "AppName";
this.AppName.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.AppName.Size = new System.Drawing.Size(245, 54);
this.AppName.TabIndex = 18;
this.AppName.Text = "GM:S";
this.AppName.TextChanged += new System.EventHandler(this.AppName_TextChanged);
//
// title
//
this.title.AutoSize = true;
this.title.Location = new System.Drawing.Point(4, 252);
this.title.Name = "title";
this.title.Size = new System.Drawing.Size(30, 13);
this.title.TabIndex = 17;
this.title.Text = "Title:";
//
// BrowseGate
//
this.BrowseGate.Location = new System.Drawing.Point(291, 146);
this.BrowseGate.Name = "BrowseGate";
this.BrowseGate.Size = new System.Drawing.Size(70, 23);
this.BrowseGate.TabIndex = 16;
this.BrowseGate.Text = "Browse";
this.BrowseGate.UseVisualStyleBackColor = true;
this.BrowseGate.Click += new System.EventHandler(this.BrowseGate_Click);
//
// GatePath
//
this.GatePath.Location = new System.Drawing.Point(6, 149);
this.GatePath.Name = "GatePath";
this.GatePath.ReadOnly = true;
this.GatePath.Size = new System.Drawing.Size(279, 20);
this.GatePath.TabIndex = 15;
this.GatePath.Text = "img\\startup.png";
//
// StartupLabel
//
this.StartupLabel.AutoSize = true;
this.StartupLabel.Location = new System.Drawing.Point(4, 133);
this.StartupLabel.Name = "StartupLabel";
this.StartupLabel.Size = new System.Drawing.Size(118, 13);
this.StartupLabel.TabIndex = 14;
this.StartupLabel.Text = "startup (PNG, 280x158)";
//
// BrowsePath
//
this.BrowsePath.Location = new System.Drawing.Point(291, 107);
this.BrowsePath.Name = "BrowsePath";
this.BrowsePath.Size = new System.Drawing.Size(70, 23);
this.BrowsePath.TabIndex = 13;
this.BrowsePath.Text = "Browse";
this.BrowsePath.UseVisualStyleBackColor = true;
this.BrowsePath.Click += new System.EventHandler(this.BrowsePath_Click);
//
// BgPath
//
this.BgPath.Location = new System.Drawing.Point(6, 110);
this.BgPath.Name = "BgPath";
this.BgPath.ReadOnly = true;
this.BgPath.Size = new System.Drawing.Size(279, 20);
this.BgPath.TabIndex = 12;
this.BgPath.Text = "img\\bg0.png";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(3, 94);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(108, 13);
this.label4.TabIndex = 11;
this.label4.Text = "Bg0 (PNG, 840x500):";
//
// Compiler
//
this.Compiler.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("Compiler.BackgroundImage")));
this.Compiler.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
this.Compiler.Image = ((System.Drawing.Image)(resources.GetObject("Compiler.Image")));
this.Compiler.Location = new System.Drawing.Point(1249, 4);
this.Compiler.Name = "Compiler";
this.Compiler.Size = new System.Drawing.Size(17, 18);
this.Compiler.TabIndex = 30;
this.Compiler.TabStop = false;
//
// Prefs
//
this.Prefs.AutoSize = true;
this.Prefs.Location = new System.Drawing.Point(1266, 7);
this.Prefs.Name = "Prefs";
this.Prefs.Size = new System.Drawing.Size(64, 13);
this.Prefs.TabIndex = 29;
this.Prefs.Text = "Preferences";
this.Prefs.Click += new System.EventHandler(this.Prefs_Click);
this.Prefs.MouseEnter += new System.EventHandler(this.Prefs_MouseEnter);
this.Prefs.MouseLeave += new System.EventHandler(this.Prefs_MouseLeave);
//
// selectedHome
//
this.selectedHome.AutoSize = true;
this.selectedHome.Checked = true;
this.selectedHome.Location = new System.Drawing.Point(54, 7);
this.selectedHome.Name = "selectedHome";
this.selectedHome.Size = new System.Drawing.Size(85, 17);
this.selectedHome.TabIndex = 15;
this.selectedHome.TabStop = true;
this.selectedHome.Text = "Homescreen";
this.selectedHome.UseVisualStyleBackColor = true;
this.selectedHome.CheckedChanged += new System.EventHandler(this.selectedHome_CheckedChanged);
//
// selectedLive
//
this.selectedLive.AutoSize = true;
this.selectedLive.Location = new System.Drawing.Point(145, 7);
this.selectedLive.Name = "selectedLive";
this.selectedLive.Size = new System.Drawing.Size(66, 17);
this.selectedLive.TabIndex = 16;
this.selectedLive.TabStop = true;
this.selectedLive.Text = "Livearea";
this.selectedLive.UseVisualStyleBackColor = true;
this.selectedLive.CheckedChanged += new System.EventHandler(this.selectedLive_CheckedChanged);
//
// SelectedRun
//
this.SelectedRun.AutoSize = true;
this.SelectedRun.Location = new System.Drawing.Point(217, 7);
this.SelectedRun.Name = "SelectedRun";
this.SelectedRun.Size = new System.Drawing.Size(79, 17);
this.SelectedRun.TabIndex = 17;
this.SelectedRun.TabStop = true;
this.SelectedRun.Text = "Bootscreen";
this.SelectedRun.UseVisualStyleBackColor = true;
this.SelectedRun.CheckedChanged += new System.EventHandler(this.SelectedRun_CheckedChanged);
//
// CreateVPK
//
this.CreateVPK.Enabled = false;
this.CreateVPK.Location = new System.Drawing.Point(1067, 544);
this.CreateVPK.Name = "CreateVPK";
this.CreateVPK.Size = new System.Drawing.Size(192, 23);
this.CreateVPK.TabIndex = 18;
this.CreateVPK.Text = "Make VPK";
this.CreateVPK.UseVisualStyleBackColor = true;
this.CreateVPK.Click += new System.EventHandler(this.CreateVPK_Click);
//
// panel1
//
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.panel1.Controls.Add(this.GmacOut);
this.panel1.Location = new System.Drawing.Point(3, 573);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1333, 107);
this.panel1.TabIndex = 21;
//
// GmacOut
//
this.GmacOut.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.GmacOut.Dock = System.Windows.Forms.DockStyle.Fill;
this.GmacOut.Location = new System.Drawing.Point(0, 0);
this.GmacOut.Multiline = true;
this.GmacOut.Name = "GmacOut";
this.GmacOut.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.GmacOut.Size = new System.Drawing.Size(1329, 103);
this.GmacOut.TabIndex = 0;
//
// Logo
//
this.Logo.BackgroundImage = global::GayMaker.Properties.Resources.Export;
this.Logo.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.Logo.Location = new System.Drawing.Point(1067, 385);
this.Logo.Name = "Logo";
this.Logo.Size = new System.Drawing.Size(192, 153);
this.Logo.TabIndex = 19;
this.Logo.TabStop = false;
this.Logo.DoubleClick += new System.EventHandler(this.Logo_DoubleClick);
//
// HomePage
//
this.HomePage.BackgroundImage = global::GayMaker.Properties.Resources.bg;
this.HomePage.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.HomePage.Controls.Add(this.ShortNamePreview);
this.HomePage.Controls.Add(this.IconBG);
this.HomePage.Location = new System.Drawing.Point(3, 25);
this.HomePage.Name = "HomePage";
this.HomePage.Size = new System.Drawing.Size(960, 544);
this.HomePage.TabIndex = 13;
//
// ShortNamePreview
//
this.ShortNamePreview.BackColor = System.Drawing.Color.Transparent;
this.ShortNamePreview.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.ShortNamePreview.ForeColor = System.Drawing.Color.AliceBlue;
this.ShortNamePreview.Location = new System.Drawing.Point(161, 194);
this.ShortNamePreview.Name = "ShortNamePreview";
this.ShortNamePreview.Size = new System.Drawing.Size(180, 60);
this.ShortNamePreview.TabIndex = 1;
this.ShortNamePreview.Text = "GM:S";
this.ShortNamePreview.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// IconBG
//
this.IconBG.BackColor = System.Drawing.Color.Transparent;
this.IconBG.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("IconBG.BackgroundImage")));
this.IconBG.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
this.IconBG.Image = ((System.Drawing.Image)(resources.GetObject("IconBG.Image")));
this.IconBG.Location = new System.Drawing.Point(186, 63);
this.IconBG.Name = "IconBG";
this.IconBG.Size = new System.Drawing.Size(128, 128);
this.IconBG.TabIndex = 0;
this.IconBG.TabStop = false;
this.IconBG.Click += new System.EventHandler(this.IconBG_Click);
//
// Running
//
this.Running.BackColor = System.Drawing.Color.Black;
this.Running.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("Running.BackgroundImage")));
this.Running.Location = new System.Drawing.Point(3, 25);
this.Running.Name = "Running";
this.Running.Size = new System.Drawing.Size(960, 544);
this.Running.TabIndex = 20;
//
// LiveArea
//
this.LiveArea.BackgroundImage = global::GayMaker.Properties.Resources.bg;
this.LiveArea.Controls.Add(this.SFZ);
this.LiveArea.Controls.Add(this.GateBG);
this.LiveArea.Controls.Add(this.LABackground);
this.LiveArea.Location = new System.Drawing.Point(3, 25);
this.LiveArea.Name = "LiveArea";
this.LiveArea.Size = new System.Drawing.Size(960, 544);
this.LiveArea.TabIndex = 2;
//
// SFZ
//
this.SFZ.BackColor = System.Drawing.Color.Transparent;
this.SFZ.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.SFZ.Image = global::GayMaker.Properties.Resources.Icons;
this.SFZ.Location = new System.Drawing.Point(327, 42);
this.SFZ.Name = "SFZ";
this.SFZ.Size = new System.Drawing.Size(306, 69);
this.SFZ.TabIndex = 1;
this.SFZ.TabStop = false;
//
// GateBG
//
this.GateBG.BackColor = System.Drawing.Color.Black;
this.GateBG.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("GateBG.BackgroundImage")));
this.GateBG.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
this.GateBG.Image = global::GayMaker.Properties.Resources.Gate;
this.GateBG.Location = new System.Drawing.Point(333, 194);
this.GateBG.Name = "GateBG";
this.GateBG.Size = new System.Drawing.Size(290, 166);
this.GateBG.TabIndex = 2;
this.GateBG.TabStop = false;
this.GateBG.Click += new System.EventHandler(this.GateBG_Click);
//
// LABackground
//
this.LABackground.BackColor = System.Drawing.Color.Black;
this.LABackground.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("LABackground.BackgroundImage")));
this.LABackground.Location = new System.Drawing.Point(60, 42);
this.LABackground.Name = "LABackground";
this.LABackground.Size = new System.Drawing.Size(840, 500);
this.LABackground.TabIndex = 0;
this.LABackground.TabStop = false;
//
// EE1
//
this.EE1.BackColor = System.Drawing.Color.Transparent;
this.EE1.Location = new System.Drawing.Point(1333, 681);
this.EE1.Name = "EE1";
this.EE1.Size = new System.Drawing.Size(10, 10);
this.EE1.TabIndex = 1;
this.EE1.TabStop = false;
this.EE1.Click += new System.EventHandler(this.EE1_Click);
//
// GayMaker
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(1344, 691);
this.Controls.Add(this.EE1);
this.Controls.Add(this.Compiler);
this.Controls.Add(this.panel1);
this.Controls.Add(this.Prefs);
this.Controls.Add(this.Logo);
this.Controls.Add(this.CreateVPK);
this.Controls.Add(this.SelectedRun);
this.Controls.Add(this.selectedLive);
this.Controls.Add(this.selectedHome);
this.Controls.Add(this.GameSettings);
this.Controls.Add(this.label5);
this.Controls.Add(this.LiveArea);
this.Controls.Add(this.HomePage);
this.Controls.Add(this.Running);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MaximumSize = new System.Drawing.Size(1360, 729);
this.MinimumSize = new System.Drawing.Size(1360, 726);
this.Name = "GayMaker";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = " GayMaker V";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.GayMaker_FormClosing);
this.Load += new System.EventHandler(this.GayMaker_Load);
this.GameSettings.ResumeLayout(false);
this.GameSettings.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.Compiler)).EndInit();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.Logo)).EndInit();
this.HomePage.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.IconBG)).EndInit();
this.LiveArea.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.SFZ)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.GateBG)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.LABackground)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.EE1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox ProjectPath;
private System.Windows.Forms.Button BrowseProject;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox IconPath;
private System.Windows.Forms.Button BrowseIcon;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox PicPath;
private System.Windows.Forms.Button BrowsePic;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Panel HomePage;
private System.Windows.Forms.PictureBox IconBG;
private System.Windows.Forms.Panel GameSettings;
private System.Windows.Forms.Label ShortNamePreview;
private System.Windows.Forms.RadioButton selectedHome;
private System.Windows.Forms.RadioButton selectedLive;
private System.Windows.Forms.RadioButton SelectedRun;
private System.Windows.Forms.TextBox BgPath;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Button BrowsePath;
private System.Windows.Forms.Button BrowseGate;
private System.Windows.Forms.TextBox GatePath;
private System.Windows.Forms.Label StartupLabel;
private System.Windows.Forms.TextBox AppName;
private System.Windows.Forms.Label title;
private System.Windows.Forms.TextBox TitleIdBox;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Button CreateVPK;
private System.Windows.Forms.PictureBox Logo;
private System.Windows.Forms.Panel LiveArea;
private System.Windows.Forms.PictureBox LABackground;
private System.Windows.Forms.PictureBox SFZ;
private System.Windows.Forms.PictureBox GateBG;
private System.Windows.Forms.Panel Running;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.TextBox GmacOut;
private System.Windows.Forms.PictureBox pictureBox3;
private System.Windows.Forms.Label GlobalGameSettings;
private System.Windows.Forms.CheckBox GdbCategory;
private System.Windows.Forms.CheckBox LeftGate;
private System.Windows.Forms.ComboBox GMVersion;
private System.Windows.Forms.ComboBox DownloadMoreRAM;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label Prefs;
private System.Windows.Forms.PictureBox Compiler;
private System.Windows.Forms.CheckBox YYCEnabled;
private System.Windows.Forms.PictureBox EE1;
}
}

1060
GayMaker/GayMaker.cs Normal file

File diff suppressed because it is too large Load Diff

158
GayMaker/GayMaker.csproj Normal file
View File

@ -0,0 +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" />
</Project>

10114
GayMaker/GayMaker.resx Normal file

File diff suppressed because it is too large Load Diff

218
GayMaker/GlobalGameSettings.Designer.cs generated Normal file
View File

@ -0,0 +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;
}
}

View File

@ -0,0 +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;
}
}
}

File diff suppressed because it is too large Load Diff

275
GayMaker/Preferences.Designer.cs generated Normal file
View File

@ -0,0 +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;
}
}

135
GayMaker/Preferences.cs Normal file
View File

@ -0,0 +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();
}
}
}

3179
GayMaker/Preferences.resx Normal file

File diff suppressed because it is too large Load Diff

21
GayMaker/Program.cs Normal file
View File

@ -0,0 +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);
}
}
}

View File

@ -0,0 +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")]

173
GayMaker/Properties/Resources.Designer.cs generated Normal file
View File

@ -0,0 +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));
}
}
}
}

View File

@ -0,0 +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>
</root>

30
GayMaker/Properties/Settings.Designer.cs generated Normal file
View File

@ -0,0 +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;
}
}
}
}

View File

@ -0,0 +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>

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

BIN
GayMaker/Resources/Gate.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
GayMaker/Resources/bg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

87
GayMaker/Resources/fnames Normal file
View File

@ -0,0 +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)

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -0,0 +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>

71
GayMaker/Update.Designer.cs generated Normal file
View File

@ -0,0 +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;
}
}

81
GayMaker/Update.cs Normal file
View File

@ -0,0 +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();
}
}
}

120
GayMaker/Update.resx Normal file
View File

@ -0,0 +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>
</root>

149
GayMaker/VersionManager.Designer.cs generated Normal file
View File

@ -0,0 +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;
}
}

375
GayMaker/VersionManager.cs Normal file
View File

@ -0,0 +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();
}
}
}

3179
GayMaker/VersionManager.resx Normal file

File diff suppressed because it is too large Load Diff

72
GayMaker/app.manifest Normal file
View File

@ -0,0 +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>

BIN
GayMaker/icon0.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 KiB

4
GayMaker/packages.config Normal file
View File

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

21
LICENSE Normal file
View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2018 Silica
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

164
README.md
View File

@ -1,2 +1,162 @@
# GayMaker
GameMaker Studio 1.4.xxxx > psvita export tool
# 1.7.3
Fixed a bug where if you never opened "Global Game Settings" in GameMaker
Then GayMaker would crash (IT WAS A STRANGE PARSER DIFFERNTAL xD)
See issue #9
Download: https://bitbucket.org/SilicaAndPina/gaymaker/downloads/GayMaker%201.7.3.zip
# 1.7.2
Fixed a bug where StandardError wasnt shown in output properly
No longer requires %SCE_PSP2_SDK_DIR% to be defined when building YYC.
Download: https://bitbucket.org/SilicaAndPina/gaymaker/downloads/GayMaker%201.7.2.zip
# 1.7.1
Fixed a bug where Errors from GMAssetCompiler wouldnt show in the output
Now displays GMAssetCompiler and YYC Compile errors in a messagebox.
Download: https://bitbucket.org/SilicaAndPina/gaymaker/downloads/GayMaker%201.7.1.zip
# 1.7
Added a "Preferences" option
Added the ability to disable Update Checks
Added the ability to not save last used settings
Added the ability to not convert PNG's to indexed color
Added the ability to use YYC! (Requires some efforts to do though)
Added a seecret easter egg (try to find it!)
Download: https://bitbucket.org/SilicaAndPina/gaymaker/downloads/GayMaker%201.7.zip
# 1.6
Added "Interpolate colors between pixels" to Global Game Settings
Added "Scaling options" (Full Scale) and (Keep Aspect Ratio) options to Global Game Settings
Added "Download More RAM" feature to allow you to allocate more memory to your application
Download: https://bitbucket.org/SilicaAndPina/gaymaker/downloads/GayMaker%201.6.zip
# 1.5.2
No-longer reliant on pngquant.exe (close #6)
Added Early-Access builds to the Version Manager
Download: https://bitbucket.org/SilicaAndPina/gaymaker/downloads/GayMaker%201.5.2.zip
# 1.5.1
Added version selection and version selector. - you can now use ANY version of GameMaker:Studio Since 1.4.1468.
Files are downloaded from yoyo's servers!
Download: https://bitbucket.org/SilicaAndPina/gaymaker/downloads/GayMaker%201.5.1.zip
# 1.5
Under "Global Game Settings" you can now simply press <ENTER> to apply settings, or <ESC> to cancel
Disabled Windows Automatic DPI Scaling (see issue #8 to understand why i did this)
Now using unmodified GMAssetCompiler. and simply ""Obtaining permission to execute"" (resolved #7)
Fixed issue #5
Download: https://bitbucket.org/SilicaAndPina/gaymaker/downloads/GayMaker%201.5.zip
# 1.4.9999
Fixes issue #4.
Download: https://bitbucket.org/SilicaAndPina/gaymaker/downloads/GayMaker%201.4.9999.zip
# 1.4
Inside "Global Game Settings we have:
Enable/Disable rear touchpad
Enable/Disable front touchscreen
Change the Texture Paging Size *default: 2048* (stick to power's of 2 or u might break shit)
Other changes:
Program will check for updates
Program will remember what images you last used (HKLU/Software/GayMaker)
This system software update improves system performance.
Download: https://bitbucket.org/SilicaAndPina/gaymaker/downloads/GayMaker%201.4.zip
# 1.3
Shader's can now be used, however you have to provide a copy of "psp2cgc.exe" yourself. - #3 can now be closed.
Download: https://bitbucket.org/SilicaAndPina/gaymaker/downloads/GayMaker%201.3.zip
# 1.2
UPDATED TO GAMEMAKER STUDIO 1.4.9999 - THANKS CELESTEBLUE FOR SOURCING THE EXPORT MODULE!!!
Download: https://bitbucket.org/SilicaAndPina/gaymaker/downloads/GayMaker%201.2.zip
# 1.1
Fixes Issue #1 and Issue #2
Download: https://bitbucket.org/SilicaAndPina/gaymaker/downloads/GayMaker%201.1.zip
# 1.0
FIRST RELEASE WEW
Download: https://bitbucket.org/SilicaAndPina/gaymaker/downloads/GayMaker.zip
# GayMaker
Homebrew GM:S Export tool
Run the program. and browse to a GameMaker Studio project file (.gmx).
you can also change the images, Title. and TitleID and then your game will be
"compiled" for PSVITA and saved as a VPK to whereever you choose to save it
Please show me any games you make with it! (though, please note i wont be too interested unless a girl dies)
# Errors
When the PSVita GameMaker Runner encounters an error. the error dialog is printed to stdout rather than opening a message box.
if its a critical error. the app will simply exit afterwards.. i recommend using a plugin to capture stdout for any serious development.
take a look at [ShipLog](https://github.com/CelesteBlue-dev/PSVita-RE-tools/tree/master/ShipLog2.0/release) or [psp2shell](https://github.com/Cpasjuste/psp2shell)
# Shaders
When you compile a project that uses Shaders for the first time. you'll be prompted to browse to 'psp2cgc.exe'
This file will then be placed into the GayMaker install folder and you wont have to do it again after that.
Shaders will compile into the GXP format. which will then work on the console itself.
For *reasons*, i will not provide a link to psp2cgc.exe
# Touchscreen
To use touchscreen features, you have to enable "Use Rear Touch" and "Use Front Touch" in *Global Game Settings*
Then you can use the mouse controls as touch inputs.
Once enabled the touchscreen is mapped as a Mouse Device,
so you can just use [Device Input](https://docs.yoyogames.com/source/dadiospice/002_reference/mouse,%20keyboard%20and%20other%20controls/device%20input/index.html)
Devices 0~4 are for the front touchscreen
and Devices 5~8 are for the rear touchscreen
*It acturally supports multiple touches at a time~*
# Controller Mapping
To Check PSVita Controls use the [GamePad](https://docs.yoyogames.com/source/dadiospice/002_reference/mouse,%20keyboard%20and%20other%20controls/gamepad%20input/index.html) commands
Here is what each control maps to:
gp_face1 = CROSS
gp_face2 = SQUARE
gp_face3 = CIRCLE
gp_face4 = TRIANGLE
gp_shoulderl = L
gp_shoulderr = R
gp_shoulderlb = UNUSED
gp_shoulderrb = UNUSED
gp_select = SELECT
gp_start = START
gp_stickl = UNUSED
gp_stickr = UNUSED
gp_padu = DPAD UP
gp_padd = DPAD DOWN
gp_padl = DPAD LEFT
gp_padr = DPAD RIGHT
gp_axislh = LEFT ANOLOUGE HORIZONTAL AXIES
gp_axislv = LEFT ANOLOUGE VERTICAL AXIES
gp_axisrh = RIGHT ANOLOUGE HORIZONTAL AXIES
gp_axisrv = RIGHT ANOLOUGE VERTICAL AXIES
# Homebrew Repo
This repository has some GameMaker: Studio Homebrew games / ports.
https://bitbucket.org/SilicaAndPina/gm-shb
# Credits
Thanks @nikita_krapivin for testing things, and for finding a capible game
Thanks to @CelesteBlue for patching some things
Thanks Radziu, Dots-tb, for uh existing?
Thanks "Wolfgang" for [PUBLICLY UPLOADING A GMS4VITA COMPILE LOG TO PASTEBIN - MUCH APRICIATED](https://pastebin.com/Api4EeRP)
Thanks To the devs of ~~"Siralin2"~~ DnSpy for indirectly making this possible ;)

1
latest.md Normal file
View File

@ -0,0 +1 @@
1.7.4~https://bitbucket.org/SilicaAndPina/gaymaker/downloads/GayMaker%201.7.4.zip

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff