This commit is contained in:
SilicaAndPina 2019-10-18 17:31:00 +13:00
parent 4f88d00fd2
commit c3ab4a98aa
93 changed files with 88673 additions and 676 deletions

BIN
DotsTheBee/DotsTheBee.cpp Normal file

Binary file not shown.

View File

@ -0,0 +1,169 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<VCProjectVersion>15.0</VCProjectVersion>
<ProjectGuid>{A37DD6C5-F166-496A-AC8A-4F70E42361F9}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>DotsTheBee</RootNamespace>
<WindowsTargetPlatformVersion>10.0.17763.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="Shared">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)GayMaker-Studio\bin\$(Configuration)\</OutDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)GayMaker-Studio\bin\$(Configuration)\</OutDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<PrecompiledHeader>Use</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;NDEBUG;DOTSTHEBEE_EXPORTS;_WINDOWS;_USRDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>Use</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;_DEBUG;DOTSTHEBEE_EXPORTS;_WINDOWS;_USRDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<PrecompiledHeader>Use</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>_DEBUG;DOTSTHEBEE_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<PrecompiledHeader>Use</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>NDEBUG;DOTSTHEBEE_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="elf.h" />
<ClInclude Include="stdafx.h" />
<ClInclude Include="targetver.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="dllmain.cpp" />
<ClCompile Include="DotsTheBee.cpp" />
<ClCompile Include="stdafx.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
</ClCompile>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>

View File

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hh;hpp;hxx;hm;inl;inc;ipp;xsd</Extensions>
</Filter>
<Filter Include="Resource Files">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="stdafx.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="targetver.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="elf.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="DotsTheBee.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="dllmain.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="stdafx.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
</Project>

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup />
</Project>

BIN
DotsTheBee/dllmain.cpp Normal file

Binary file not shown.

3753
DotsTheBee/elf.h Normal file

File diff suppressed because it is too large Load Diff

BIN
DotsTheBee/stdafx.cpp Normal file

Binary file not shown.

BIN
DotsTheBee/stdafx.h Normal file

Binary file not shown.

BIN
DotsTheBee/targetver.h Normal file

Binary file not shown.

54
GayMaker-Studio.sln Normal file
View File

@ -0,0 +1,54 @@

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-Studio", "GayMaker-Studio\GayMaker-Studio.csproj", "{A574F9F8-D3B2-4EF6-80DE-5D546C43B57D}"
ProjectSection(ProjectDependencies) = postProject
{A37DD6C5-F166-496A-AC8A-4F70E42361F9} = {A37DD6C5-F166-496A-AC8A-4F70E42361F9}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DotsTheBee", "DotsTheBee\DotsTheBee.vcxproj", "{A37DD6C5-F166-496A-AC8A-4F70E42361F9}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{A574F9F8-D3B2-4EF6-80DE-5D546C43B57D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A574F9F8-D3B2-4EF6-80DE-5D546C43B57D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A574F9F8-D3B2-4EF6-80DE-5D546C43B57D}.Debug|x64.ActiveCfg = Debug|Any CPU
{A574F9F8-D3B2-4EF6-80DE-5D546C43B57D}.Debug|x64.Build.0 = Debug|Any CPU
{A574F9F8-D3B2-4EF6-80DE-5D546C43B57D}.Debug|x86.ActiveCfg = Debug|Any CPU
{A574F9F8-D3B2-4EF6-80DE-5D546C43B57D}.Debug|x86.Build.0 = Debug|Any CPU
{A574F9F8-D3B2-4EF6-80DE-5D546C43B57D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A574F9F8-D3B2-4EF6-80DE-5D546C43B57D}.Release|Any CPU.Build.0 = Release|Any CPU
{A574F9F8-D3B2-4EF6-80DE-5D546C43B57D}.Release|x64.ActiveCfg = Release|Any CPU
{A574F9F8-D3B2-4EF6-80DE-5D546C43B57D}.Release|x64.Build.0 = Release|Any CPU
{A574F9F8-D3B2-4EF6-80DE-5D546C43B57D}.Release|x86.ActiveCfg = Release|Any CPU
{A574F9F8-D3B2-4EF6-80DE-5D546C43B57D}.Release|x86.Build.0 = Release|Any CPU
{A37DD6C5-F166-496A-AC8A-4F70E42361F9}.Debug|Any CPU.ActiveCfg = Debug|Win32
{A37DD6C5-F166-496A-AC8A-4F70E42361F9}.Debug|Any CPU.Build.0 = Debug|Win32
{A37DD6C5-F166-496A-AC8A-4F70E42361F9}.Debug|x64.ActiveCfg = Debug|x64
{A37DD6C5-F166-496A-AC8A-4F70E42361F9}.Debug|x64.Build.0 = Debug|x64
{A37DD6C5-F166-496A-AC8A-4F70E42361F9}.Debug|x86.ActiveCfg = Debug|Win32
{A37DD6C5-F166-496A-AC8A-4F70E42361F9}.Debug|x86.Build.0 = Debug|Win32
{A37DD6C5-F166-496A-AC8A-4F70E42361F9}.Release|Any CPU.ActiveCfg = Release|Win32
{A37DD6C5-F166-496A-AC8A-4F70E42361F9}.Release|Any CPU.Build.0 = Release|Win32
{A37DD6C5-F166-496A-AC8A-4F70E42361F9}.Release|x64.ActiveCfg = Release|x64
{A37DD6C5-F166-496A-AC8A-4F70E42361F9}.Release|x64.Build.0 = Release|x64
{A37DD6C5-F166-496A-AC8A-4F70E42361F9}.Release|x86.ActiveCfg = Release|Win32
{A37DD6C5-F166-496A-AC8A-4F70E42361F9}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {F5C9BDFB-D36B-4937-80EF-77A22E065856}
EndGlobalSection
EndGlobal

188
GayMaker-Studio/CDN.cs Normal file
View File

@ -0,0 +1,188 @@
using HtmlAgilityPack;
using Org.BouncyCastle.Crypto.Digests;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Cache;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace GMTools
{
class CDNUrls
{
//GMS14
public const String GMS14 = "http://store.yoyogames.com/downloads/gm-studio/update-studio.rss";
public const String GMS14EA = "http://store.yoyogames.com/downloads/gm-studio-ea/update-studio-ea.rss";
//GMS2
public const String GMS2 = "http://gms.yoyogames.com/Zeus-Runtime.rss";
public const String GMS2Beta = "http://gms.yoyogames.com/Zeus-Runtime-Beta.rss";
public static String FromIndex(int cdnIndex)
{
switch (cdnIndex)
{
case 1:
return CDNUrls.GMS14;
case 2:
return CDNUrls.GMS14EA;
case 3:
return CDNUrls.GMS2;
case 4:
return CDNUrls.GMS2Beta;
}
return "NF";
}
}
class CDN
{
private static string xmlData = "";
private static string bypassAuthentication(string url)
{
if (url.StartsWith("https://updater.yoyogames.com") && !url.Contains("original"))
{
return "http://updatecdn.yoyogames.com/" + Path.GetFileName(url);
}
else
{
return url;
}
}
private static string getOriginalUrl(string version)
{
if (version.StartsWith("1."))
{
return "https://updater.yoyogames.com/api/download/original?filename=Original-" + version + ".zip";
}
else if(version.StartsWith("2."))
{
var doc = new HtmlAgilityPack.HtmlDocument();
doc.LoadHtml(xmlData);
var versions = doc.DocumentNode.SelectNodes("/rss/channel/item/enclosure");
foreach (HtmlNode ver in versions)
{
string verName = ver.GetAttributeValue("sparkle:version", "0.0.0.0");
if (verName == version)
{
return ver.GetAttributeValue("url", "http://example.com/").ToString();
}
}
}
return "NF";
}
public static void UseCDN(String CDN)
{
try
{
WebClient wc = new WebClient();
wc.CachePolicy = new RequestCachePolicy(RequestCacheLevel.NoCacheNoStore);
xmlData = wc.DownloadString(CDN);
}
catch (Exception)
{
MessageBox.Show("Could not connect to: " + CDN, "Connection Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
public static String GetModuleForVersion(String Version, String Module)
{
Module = Module.ToLower();
if (Module == "original")
return getOriginalUrl(Version);
var doc = new HtmlAgilityPack.HtmlDocument();
doc.LoadHtml(xmlData);
var versions = doc.DocumentNode.SelectNodes("/rss/channel/item/enclosure");
foreach (HtmlNode version in versions)
{
string verName = version.GetAttributeValue("sparkle:version", "0.0.0.0");
if (verName == Version)
{
var modules = version.Elements("module");
foreach (var module in modules)
{
string moduleName = module.GetAttributeValue("name", "Original").ToLower();
string moduleUrl = module.GetAttributeValue("url", "http://127.0.0.1");
if (moduleName == Module)
{
return bypassAuthentication(moduleUrl);
}
}
}
}
return "NF"; // Not Found
}
public static String[] GetVersions(String Filter = "")
{
var doc = new HtmlAgilityPack.HtmlDocument();
doc.LoadHtml(xmlData);
var versions = doc.DocumentNode.SelectNodes("/rss/channel/item/enclosure");
List<string> verList = new List<string>();
foreach (HtmlNode version in versions)
{
string versionName = version.GetAttributeValue("sparkle:version", "0.0.0.0");
if (Filter == "")
{
verList.Add(versionName);
}
else
{
if(GetModuleForVersion(versionName,Filter) != "NF")
{
verList.Add(versionName);
}
}
}
return verList.ToArray();
}
public static String GetPassword(String ZipName)
{
if (ZipName.ToLower().StartsWith("original") || ZipName.ToLower().StartsWith("gmstudio"))
{
return "12#_p@o3w$ir_ADD-_$#";
}
MD5Digest md5Digest = new MD5Digest();
byte[] array = new byte[16];
byte[] bytes = Encoding.UTF8.GetBytes("MRJA" + Path.GetFileName(ZipName) + "PHMD");
md5Digest.Reset();
md5Digest.BlockUpdate(bytes, 0, bytes.Length);
md5Digest.Finish();
md5Digest.DoFinal(array, 0);
string password = Convert.ToBase64String(array);
return password;
}
}
}

View File

@ -0,0 +1,77 @@
namespace GayMaker_Studio
{
partial class DownloadingUpdate
{
/// <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.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.DownloadProgress.Location = new System.Drawing.Point(15, 44);
this.DownloadProgress.Name = "DownloadProgress";
this.DownloadProgress.Size = new System.Drawing.Size(419, 23);
this.DownloadProgress.TabIndex = 0;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(94, 13);
this.label1.TabIndex = 1;
this.label1.Text = "Starting Download";
//
// DownloadingUpdate
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(443, 95);
this.ControlBox = false;
this.Controls.Add(this.label1);
this.Controls.Add(this.DownloadProgress);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "DownloadingUpdate";
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.Text = "Downloading Update";
this.Load += new System.EventHandler(this.DownloadingUpdate_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.ProgressBar DownloadProgress;
private System.Windows.Forms.Label label1;
}
}

View File

@ -0,0 +1,82 @@
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_Studio
{
public partial class DownloadingUpdate : Form
{
public DownloadingUpdate()
{
//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-studio/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...";
Application.DoEvents();
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);
}
}
archive.Dispose();
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 DownloadingUpdate_Load(object sender, EventArgs e)
{
startDownload();
}
}
}

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>

View File

@ -0,0 +1,30 @@

using System;
using System.Diagnostics;
using System.IO;
using System.Runtime.InteropServices;
namespace ELF
{
class Tools
{
[DllImport("DotsTheBee.dll", SetLastError = true, CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)]
public static extern int SceVerDown([MarshalAs(UnmanagedType.LPStr)]string ElfPath, UInt32 version);
public static void MakeFself(string elf, string self)
{
Process makefself = new Process();
makefself.StartInfo.FileName = @"make_fself\\make_fself.exe";
makefself.StartInfo.Arguments = elf + " " + self;
makefself.StartInfo.UseShellExecute = false;
makefself.StartInfo.RedirectStandardOutput = true;
makefself.StartInfo.RedirectStandardError = true;
makefself.StartInfo.CreateNoWindow = true;
makefself.Start();
makefself.WaitForExit();
makefself.Dispose();
File.Delete(elf);
}
}
}

66
GayMaker-Studio/GMAC.cs Normal file
View File

@ -0,0 +1,66 @@
using System;
using System.Runtime.InteropServices;
namespace GayMaker_Studio
{
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);
}
}
}

View File

@ -0,0 +1,150 @@
/*
* In GMS2 they made the GMAssetCompiler verify your license file
* It uses RSA to do it
* ... and then they added the option to specify your own keys
* good fucking job
*/
using Org.BouncyCastle.Crypto.Encodings;
using Org.BouncyCastle.Crypto.Engines;
using Org.BouncyCastle.Crypto.Parameters;
using Org.BouncyCastle.Math;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Xml;
using System.Xml.Linq;
namespace GMLicense
{
class Keys
{
public const String Modulus = "AEFD4A9B137D5EC3D80B11094948770D342E87CBF81E418A54FB61BBCDB8D40F241E242822C50327E20003EE57CCA877BF35A2A55A0EB06537F369B722C9DAAB943F33593CC458A7055C0D80CAE9112FD0F4BBC53AD1FEE67C83DDED354216F30EA7126200DE83FAEB7A9880647BFE16B9A0406C7B90D20315F011CCBB85070B";
public const String PublicExponent = "03";
public const String PrivateExponent = "74A8DC6762539482900760B0DB85A4B3781F0532A5698106E3524127DE7B380A1814181AC1D8ACC5415557F43A88704FD4CE6C6E3C09CAEE254CF124C1DBE71BF2B1BD2C550A95AEC64E1859444BD879815A820CD22A66E50C6B0658C475FEB83DB423101295BE269315353DFD2B5515A827C4C43C7FF28EDB13ECDA76EF125B";
public const String Prime1 = "E1E58992501733C45719035DBC615326809E41B49D46A838A1EAAD0807B8866D4206DAEB7DE63BE374D73F9A560393BF9B1884B8CDFEDE9D6BCD0B245CDCA677";
public const String Prime2 = "C64F0E046D1D445C84CDE59D2815F9530E4EB6FD624BBC5647F8A76006D89271701202DE6717AADD9A03890912B76AB6A24C148D52D2078F61852360AC41C50D";
public const String Exponent1 = "969906618ABA2282E4BB5793D2EB8CC455BED67868D9C57B169C735AAFD0599E2C0491F253EED297A33A2A66E402627FBCBB0325DEA9E9BE47DE076D933DC44F";
public const String Exponent2 = "8434B402F368D83DADDE9913700EA6375EDF24A8EC327D8EDAA5C4EAAF3B0C4BA00C01E99A0FC73E66AD06060C7A47246C32B85E3736AFB4EBAE1795C82BD8B3";
public const String Coefficent = "2659d9ec51d4886df62574301fbce9b18d8479b36f33e8961ba6179395bb73dcf019c641c4efb4d88f10fdf2351117744fe65a1a9b7a45e63dfc9ce135bec994";
public static RsaKeyParameters GetPublicKey()
{
return new RsaKeyParameters(false, new BigInteger(Modulus, 16), new BigInteger(PublicExponent, 16));
}
public static RsaPrivateCrtKeyParameters GetPrivateKey()
{
return new RsaPrivateCrtKeyParameters(new BigInteger(Modulus, 16), new BigInteger(PublicExponent, 16), new BigInteger(PrivateExponent, 16), new BigInteger(Prime1, 16), new BigInteger(Prime2, 16), new BigInteger(Exponent1, 16), new BigInteger(Exponent2, 16), new BigInteger(Coefficent, 16));
}
}
class Crypto
{
public static String SignData(RsaPrivateCrtKeyParameters PrivateKey, String ToBeSigned)
{
byte[] Data = Encoding.UTF8.GetBytes(ToBeSigned);
byte[] sha1Hash = SHA1.Create().ComputeHash(Data);
Pkcs1Encoding pkcs1Encoding = new Pkcs1Encoding(new RsaEngine());
pkcs1Encoding.Init(true, PrivateKey);
int inputBlockSize = pkcs1Encoding.GetInputBlockSize();
byte[] EncryptedData = pkcs1Encoding.ProcessBlock(sha1Hash, 0, sha1Hash.Length);
var signedString = Convert.ToBase64String(EncryptedData);
return signedString;
}
}
class LicenseFormat
{
private static Dictionary<string, string> Parse_Plist(string string_36)
{
StringBuilder stringBuilder = new StringBuilder();
using (StringReader stringReader = new StringReader(string_36))
{
string text;
while ((text = stringReader.ReadLine()) != null)
{
if (!text.Contains("DOCTYPE") || !text.Contains("DTD"))
{
stringBuilder.Append(text);
}
}
}
string s = stringBuilder.ToString();
Dictionary<string, string> dictionary = new Dictionary<string, string>();
XmlReaderSettings xmlReaderSettings = new XmlReaderSettings();
xmlReaderSettings.IgnoreComments = true;
xmlReaderSettings.ProhibitDtd = true;
using (MemoryStream memoryStream = new MemoryStream(Encoding.UTF8.GetBytes(s)))
{
using (XmlReader xmlReader = XmlReader.Create(memoryStream, xmlReaderSettings))
{
XmlDocument xmlDocument = new XmlDocument();
xmlDocument.XmlResolver = null;
xmlDocument.Load(xmlReader);
XmlNode xmlNode = xmlDocument.SelectSingleNode("plist/dict");
for (int i = 0; i < xmlNode.ChildNodes.Count; i++)
{
if (xmlNode.ChildNodes[i].Name == "key")
{
dictionary.Add(xmlNode.ChildNodes[i].InnerText, xmlNode.ChildNodes[i + 1].InnerText);
i++;
}
}
}
}
return dictionary;
}
private static string createLicenseString(string plist)
{
Dictionary<string, string> PlistDict = Parse_Plist(plist);
List<string> PlistEntryList = PlistDict.Keys.ToList<string>();
PlistEntryList.Sort();
StringBuilder stringBuilder = new StringBuilder();
foreach (string PlistEntry in PlistEntryList)
{
string value = PlistDict[PlistEntry];
if (string.Compare(PlistEntry, "Signature", true) != 0)
{
stringBuilder.Append(value);
}
}
return stringBuilder.ToString();
}
public static String CreateLicense(String AllowedPlatforms, RsaPrivateCrtKeyParameters PrivateKey)
{
String PlistFile = new XElement("plist",
new XElement("dict",
new XElement("key", "Signature"),
new XElement("data", "---SIGNATURE GOES HERE---"),
new XElement("key", "public_key"), //Thanks yoyo 4 backdoor lol
new XElement("string", Keys.Modulus),
new XElement("key", "components"),
new XElement("string", AllowedPlatforms),
new XElement("key", "expiry_date"),
new XElement("string", DateTime.UtcNow.AddDays(3).ToString("yyyy-mm-dd HH:mm:ss UTC")),
new XElement("key", "id"),
new XElement("string", "1337"),
new XElement("key", "email"),
new XElement("string", "girls@dying.moe"))).ToString();
//Sign license with private key
string licenseString = createLicenseString(PlistFile);
string signature = Crypto.SignData(PrivateKey, licenseString);
return PlistFile.Replace("---SIGNATURE GOES HERE---",signature);
}
}
}

191
GayMaker-Studio/GameSettings.Designer.cs generated Normal file
View File

@ -0,0 +1,191 @@
namespace GayMaker_Studio
{
partial class GameSettings
{
/// <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(GameSettings));
this.label1 = new System.Windows.Forms.Label();
this.panel1 = new System.Windows.Forms.Panel();
this.TexturePageSize = new System.Windows.Forms.ComboBox();
this.label3 = new System.Windows.Forms.Label();
this.DisplayCursor = new System.Windows.Forms.CheckBox();
this.Interporlate = new System.Windows.Forms.CheckBox();
this.FullScale = new System.Windows.Forms.RadioButton();
this.KeepAspect = new System.Windows.Forms.RadioButton();
this.label2 = new System.Windows.Forms.Label();
this.Save = new System.Windows.Forms.Button();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(112, 13);
this.label1.TabIndex = 0;
this.label1.Text = "Global Game Settings:";
//
// panel1
//
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.panel1.Controls.Add(this.TexturePageSize);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.DisplayCursor);
this.panel1.Controls.Add(this.Interporlate);
this.panel1.Controls.Add(this.FullScale);
this.panel1.Controls.Add(this.KeepAspect);
this.panel1.Controls.Add(this.label2);
this.panel1.Location = new System.Drawing.Point(12, 25);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(238, 167);
this.panel1.TabIndex = 1;
//
// 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",
"16384"});
this.TexturePageSize.Location = new System.Drawing.Point(6, 74);
this.TexturePageSize.Name = "TexturePageSize";
this.TexturePageSize.Size = new System.Drawing.Size(94, 21);
this.TexturePageSize.TabIndex = 6;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(3, 58);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(97, 13);
this.label3.TabIndex = 5;
this.label3.Text = "Texture Page Size:";
//
// DisplayCursor
//
this.DisplayCursor.AutoSize = true;
this.DisplayCursor.Location = new System.Drawing.Point(3, 38);
this.DisplayCursor.Name = "DisplayCursor";
this.DisplayCursor.Size = new System.Drawing.Size(201, 17);
this.DisplayCursor.TabIndex = 4;
this.DisplayCursor.Text = "Display cursor when touchpad active";
this.DisplayCursor.UseVisualStyleBackColor = true;
//
// Interporlate
//
this.Interporlate.AutoSize = true;
this.Interporlate.Location = new System.Drawing.Point(3, 15);
this.Interporlate.Name = "Interporlate";
this.Interporlate.Size = new System.Drawing.Size(183, 17);
this.Interporlate.TabIndex = 3;
this.Interporlate.Text = "Interporlate colors between pixels";
this.Interporlate.UseVisualStyleBackColor = true;
//
// FullScale
//
this.FullScale.AutoSize = true;
this.FullScale.Location = new System.Drawing.Point(3, 143);
this.FullScale.Name = "FullScale";
this.FullScale.Size = new System.Drawing.Size(71, 17);
this.FullScale.TabIndex = 2;
this.FullScale.TabStop = true;
this.FullScale.Text = "Full Scale";
this.FullScale.UseVisualStyleBackColor = true;
//
// KeepAspect
//
this.KeepAspect.AutoSize = true;
this.KeepAspect.Location = new System.Drawing.Point(3, 120);
this.KeepAspect.Name = "KeepAspect";
this.KeepAspect.Size = new System.Drawing.Size(114, 17);
this.KeepAspect.TabIndex = 1;
this.KeepAspect.TabStop = true;
this.KeepAspect.Text = "Keep Aspect Ratio";
this.KeepAspect.UseVisualStyleBackColor = true;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(3, 104);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(84, 13);
this.label2.TabIndex = 0;
this.label2.Text = "Scaling Options:";
//
// Save
//
this.Save.Location = new System.Drawing.Point(12, 198);
this.Save.Name = "Save";
this.Save.Size = new System.Drawing.Size(238, 23);
this.Save.TabIndex = 2;
this.Save.Text = "Save Changes";
this.Save.UseVisualStyleBackColor = true;
this.Save.Click += new System.EventHandler(this.Save_Click);
//
// GameSettings
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(262, 230);
this.Controls.Add(this.Save);
this.Controls.Add(this.panel1);
this.Controls.Add(this.label1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.Name = "GameSettings";
this.Text = "Global Game Settings";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.GameSettings_FormClosing);
this.Load += new System.EventHandler(this.GameSettings_Load);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.ComboBox TexturePageSize;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.CheckBox DisplayCursor;
private System.Windows.Forms.CheckBox Interporlate;
private System.Windows.Forms.RadioButton FullScale;
private System.Windows.Forms.RadioButton KeepAspect;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button Save;
}
}

View File

@ -0,0 +1,147 @@
using System;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
using System.Xml;
namespace GayMaker_Studio
{
public partial class GameSettings : Form
{
String ProjectPath;
XmlDocument DefaultConfig = new XmlDocument();
public GameSettings()
{
//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 GameSettings_Load(object sender, EventArgs e)
{
Program.GMS.Enabled = false;
ProjectPath = Path.GetDirectoryName(Program.GMS.GetProjectPath());
Console.WriteLine(ProjectPath);
DefaultConfig.Load(ProjectPath + "\\Configs\\Default.config.gmx");
XmlNode TP = DefaultConfig.GetElementsByTagName("option_ps4_texture_page")[0];
XmlNode IT = DefaultConfig.GetElementsByTagName("option_ps4_interpolate")[0];
XmlNode SC = DefaultConfig.GetElementsByTagName("option_ps4_scale")[0];
XmlNode DC = DefaultConfig.GetElementsByTagName("option_ps4_displaycursor")[0];
try
{
//If global game settings was never opened then its true/false for some reason
DisplayCursor.Checked = bool.Parse(DC.InnerText);
Interporlate.Checked = bool.Parse(IT.InnerText);
}
catch
{
//Otherwise its -1 / 0 (GM IS WEIRD)
if (int.Parse(DC.InnerText) == 0)
{
DisplayCursor.Checked = false;
}
else
{
DisplayCursor.Checked = true;
}
if (int.Parse(IT.InnerText) == 0)
{
Interporlate.Checked = false;
}
else
{
Interporlate.Checked = true;
}
if (int.Parse(SC.InnerText) == 0)
{
FullScale.Checked = true;
KeepAspect.Checked = false;
}
else
{
FullScale.Checked = false;
KeepAspect.Checked = true;
}
};
TexturePageSize.Text = int.Parse(TP.InnerText).ToString();
}
private void Save_Click(object sender, EventArgs e)
{
try
{
if (DisplayCursor.Checked)
{
XmlNode DC = DefaultConfig.GetElementsByTagName("option_ps4_displaycursor")[0];
DC.InnerText = "-1";
}
else
{
XmlNode DC = DefaultConfig.GetElementsByTagName("option_ps4_displaycursor")[0];
DC.InnerText = "0";
}
if (Interporlate.Checked)
{
XmlNode IT = DefaultConfig.GetElementsByTagName("option_ps4_interpolate")[0];
IT.InnerText = "-1";
}
else
{
XmlNode IT = DefaultConfig.GetElementsByTagName("option_ps4_interpolate")[0];
IT.InnerText = "0";
}
if (KeepAspect.Checked)
{
XmlNode SC = DefaultConfig.GetElementsByTagName("option_ps4_scale")[0];
SC.InnerText = "-1";
}
else
{
XmlNode SC = DefaultConfig.GetElementsByTagName("option_ps4_scale")[0];
SC.InnerText = "0";
}
XmlNode TP = DefaultConfig.GetElementsByTagName("option_ps4_texture_page")[0];
TP.InnerText = TexturePageSize.Text;
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.GMS.Enabled = true;
Close();
}
private void GameSettings_FormClosing(object sender, FormClosingEventArgs e)
{
Program.GMS.Enabled = true;
}
}
}

View File

@ -0,0 +1,337 @@
<?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.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAEAAAAAAAEAIABtMQAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAEAAAABAAgGAAAAXHKoZgAAMTRJ
REFUeNrtvXl0VFea4Pm7b4lNsUhoQQIhJBYBEjtmsQEveEmcmd6zndld7sp0ujq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pN/LOAfAWfI1QMIgghgHmMDfwAOA98FXgReAzzAPyCzAYU7gIwB3D5cwJ8CF8n1+ZuA
nwFXx3/+CLnsgCCIAL5CJi7EcbtZRq4CcBu5vP/AuAg+A9xyOQoigK+eKnKz8u4EXnJlwHkqxx8yFfjr
ybxft3GhjQE0Av8OWC/XtjAH5n115kISwL3kZuF9YyGcWOGW8ZHbvq1IBHD38/h48O+U61q4gdj4E+C/
J5epEQHchejAHwF/Q27WnSDcCB7gX5Fbr8EUAdxduIEfk+vzL5NrWbhJfMD/BPwzcjeUecV8zQIEyJn7
vwH8cg0Lt0gQ+J/JLev+H5lH2YH5KIAy4C/IGVvq64Uvi1Jy27rHye3uLAL4GlID/G/A80iZs/DlUwn8
m3EJvDUfPtB8CpJGcltvfU+CX/gKqQH+D2CfCODrw8QcvyB81awiN7h8rwjgziM5fuFOsB74P4EtIoA7
g+T4hTvNPeMSuGuvv7tVAJLjF74u7Bm/DleIAG4PIXK76fwludSMINxpHiU3MFhzt73xuy0N6AH+a+C/
JNcFSEz4mbrBf9/M7804iUipWecYObf48y/rOb6ur+fcpvf8Zb4nZ/y6eBD4l+RuTvG7JaD+fxt46exd
p639AAAAAElFTkSuQmCC
</value>
</data>
</root>

View File

@ -0,0 +1,139 @@
<?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>{A574F9F8-D3B2-4EF6-80DE-5D546C43B57D}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>GayMaker_Studio</RootNamespace>
<AssemblyName>GayMaker-Studio</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>
<ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>icon0.ico</ApplicationIcon>
</PropertyGroup>
<PropertyGroup>
<StartupObject />
</PropertyGroup>
<ItemGroup>
<Reference Include="BouncyCastle.Crypto, Version=1.8.4.0, Culture=neutral, PublicKeyToken=0e99375e54769942">
<HintPath>..\packages\BouncyCastle.1.8.4\lib\BouncyCastle.Crypto.dll</HintPath>
</Reference>
<Reference Include="DotNetZip, Version=1.13.3.0, Culture=neutral, PublicKeyToken=6583c7c814667745, processorArchitecture=MSIL">
<HintPath>..\packages\DotNetZip.1.13.3\lib\net40\DotNetZip.dll</HintPath>
</Reference>
<Reference Include="HtmlAgilityPack, Version=1.9.2.0, Culture=neutral, PublicKeyToken=bd319b19eaf3b43a, processorArchitecture=MSIL">
<HintPath>..\packages\HtmlAgilityPack.1.9.2\lib\Net45\HtmlAgilityPack.dll</HintPath>
</Reference>
<Reference Include="LibOrbisPkg">
<HintPath>..\Packages\LibOrbisPkg.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="CDN.cs" />
<Compile Include="DownloadingUpdate.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="DownloadingUpdate.Designer.cs">
<DependentUpon>DownloadingUpdate.cs</DependentUpon>
</Compile>
<Compile Include="ElfTools.cs" />
<Compile Include="GameSettings.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="GameSettings.Designer.cs">
<DependentUpon>GameSettings.cs</DependentUpon>
</Compile>
<Compile Include="GayMakerStudio.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="GayMakerStudio.Designer.cs">
<DependentUpon>GayMakerStudio.cs</DependentUpon>
</Compile>
<Compile Include="GMAC.cs" />
<Compile Include="GMLicense.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="VersionManager.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="VersionManager.Designer.cs">
<DependentUpon>VersionManager.cs</DependentUpon>
</Compile>
<EmbeddedResource Include="DownloadingUpdate.resx">
<DependentUpon>DownloadingUpdate.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="GameSettings.resx">
<DependentUpon>GameSettings.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="GayMakerStudio.resx">
<DependentUpon>GayMakerStudio.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>
</Compile>
<EmbeddedResource Include="VersionManager.resx">
<DependentUpon>VersionManager.cs</DependentUpon>
</EmbeddedResource>
<None Include="app.manifest" />
<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>
<Content Include="icon0.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

483
GayMaker-Studio/GayMakerStudio.Designer.cs generated Normal file
View File

@ -0,0 +1,483 @@
namespace GayMaker_Studio
{
partial class GayMakerStudio
{
/// <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(GayMakerStudio));
this.homeScreen = new System.Windows.Forms.RadioButton();
this.startupScreen = new System.Windows.Forms.RadioButton();
this.IconPreview = new System.Windows.Forms.PictureBox();
this.Title = new System.Windows.Forms.Label();
this.homePreview = new System.Windows.Forms.Panel();
this.IconPreview2 = new System.Windows.Forms.PictureBox();
this.label1 = new System.Windows.Forms.Label();
this.GameSettings = new System.Windows.Forms.Panel();
this.label8 = new System.Windows.Forms.Label();
this.VersionSelect = new System.Windows.Forms.ComboBox();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.GlobalGameSettings = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.titleName = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.titleID = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.contentID = new System.Windows.Forms.TextBox();
this.browsePic = new System.Windows.Forms.Button();
this.picPath = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.browseIcon = new System.Windows.Forms.Button();
this.iconPath = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.browseProject = new System.Windows.Forms.Button();
this.projectPath = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.Logo = new System.Windows.Forms.PictureBox();
this.CreatePKG = new System.Windows.Forms.Button();
this.panel1 = new System.Windows.Forms.Panel();
this.GmacOut = new System.Windows.Forms.TextBox();
this.StartupPreview = new System.Windows.Forms.Panel();
((System.ComponentModel.ISupportInitialize)(this.IconPreview)).BeginInit();
this.homePreview.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.IconPreview2)).BeginInit();
this.GameSettings.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.Logo)).BeginInit();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// homeScreen
//
this.homeScreen.AutoSize = true;
this.homeScreen.Location = new System.Drawing.Point(69, 4);
this.homeScreen.Name = "homeScreen";
this.homeScreen.Size = new System.Drawing.Size(53, 17);
this.homeScreen.TabIndex = 0;
this.homeScreen.TabStop = true;
this.homeScreen.Text = "Home";
this.homeScreen.UseVisualStyleBackColor = true;
this.homeScreen.CheckedChanged += new System.EventHandler(this.homeScreen_CheckedChanged);
//
// startupScreen
//
this.startupScreen.AutoSize = true;
this.startupScreen.Location = new System.Drawing.Point(128, 4);
this.startupScreen.Name = "startupScreen";
this.startupScreen.Size = new System.Drawing.Size(59, 17);
this.startupScreen.TabIndex = 1;
this.startupScreen.TabStop = true;
this.startupScreen.Text = "Startup";
this.startupScreen.UseVisualStyleBackColor = true;
this.startupScreen.CheckedChanged += new System.EventHandler(this.startupScreen_CheckedChanged);
//
// IconPreview
//
this.IconPreview.BackColor = System.Drawing.Color.Transparent;
this.IconPreview.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("IconPreview.BackgroundImage")));
this.IconPreview.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.IconPreview.Location = new System.Drawing.Point(144, 105);
this.IconPreview.Name = "IconPreview";
this.IconPreview.Size = new System.Drawing.Size(165, 166);
this.IconPreview.TabIndex = 3;
this.IconPreview.TabStop = false;
this.IconPreview.Click += new System.EventHandler(this.IconPreview_Click);
//
// Title
//
this.Title.BackColor = System.Drawing.Color.Transparent;
this.Title.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.Title.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Title.ForeColor = System.Drawing.Color.White;
this.Title.Location = new System.Drawing.Point(312, 278);
this.Title.Name = "Title";
this.Title.Size = new System.Drawing.Size(292, 23);
this.Title.TabIndex = 4;
this.Title.Text = "GameMaker: Studio";
//
// homePreview
//
this.homePreview.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("homePreview.BackgroundImage")));
this.homePreview.Controls.Add(this.IconPreview2);
this.homePreview.Controls.Add(this.IconPreview);
this.homePreview.Controls.Add(this.Title);
this.homePreview.Location = new System.Drawing.Point(3, 25);
this.homePreview.Name = "homePreview";
this.homePreview.Size = new System.Drawing.Size(960, 544);
this.homePreview.TabIndex = 5;
//
// IconPreview2
//
this.IconPreview2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("IconPreview2.BackgroundImage")));
this.IconPreview2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.IconPreview2.Location = new System.Drawing.Point(316, 104);
this.IconPreview2.Name = "IconPreview2";
this.IconPreview2.Size = new System.Drawing.Size(100, 102);
this.IconPreview2.TabIndex = 5;
this.IconPreview2.TabStop = false;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 4);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(48, 13);
this.label1.TabIndex = 6;
this.label1.Text = "Preview:";
//
// GameSettings
//
this.GameSettings.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.GameSettings.Controls.Add(this.label8);
this.GameSettings.Controls.Add(this.VersionSelect);
this.GameSettings.Controls.Add(this.pictureBox1);
this.GameSettings.Controls.Add(this.GlobalGameSettings);
this.GameSettings.Controls.Add(this.label7);
this.GameSettings.Controls.Add(this.titleName);
this.GameSettings.Controls.Add(this.label6);
this.GameSettings.Controls.Add(this.titleID);
this.GameSettings.Controls.Add(this.label5);
this.GameSettings.Controls.Add(this.contentID);
this.GameSettings.Controls.Add(this.browsePic);
this.GameSettings.Controls.Add(this.picPath);
this.GameSettings.Controls.Add(this.label4);
this.GameSettings.Controls.Add(this.browseIcon);
this.GameSettings.Controls.Add(this.iconPath);
this.GameSettings.Controls.Add(this.label3);
this.GameSettings.Controls.Add(this.browseProject);
this.GameSettings.Controls.Add(this.projectPath);
this.GameSettings.Controls.Add(this.label2);
this.GameSettings.Location = new System.Drawing.Point(968, 25);
this.GameSettings.Name = "GameSettings";
this.GameSettings.Size = new System.Drawing.Size(368, 301);
this.GameSettings.TabIndex = 7;
//
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(182, 276);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(65, 13);
this.label8.TabIndex = 18;
this.label8.Text = "GM Version:";
//
// VersionSelect
//
this.VersionSelect.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.VersionSelect.FormattingEnabled = true;
this.VersionSelect.Items.AddRange(new object[] {
"1.4.9999"});
this.VersionSelect.Location = new System.Drawing.Point(253, 270);
this.VersionSelect.Name = "VersionSelect";
this.VersionSelect.Size = new System.Drawing.Size(103, 21);
this.VersionSelect.TabIndex = 17;
this.VersionSelect.SelectedIndexChanged += new System.EventHandler(this.VersionSelect_SelectedIndexChanged);
//
// pictureBox1
//
this.pictureBox1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pictureBox1.BackgroundImage")));
this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.pictureBox1.Location = new System.Drawing.Point(6, 272);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(17, 18);
this.pictureBox1.TabIndex = 16;
this.pictureBox1.TabStop = false;
//
// GlobalGameSettings
//
this.GlobalGameSettings.AutoSize = true;
this.GlobalGameSettings.Enabled = false;
this.GlobalGameSettings.Location = new System.Drawing.Point(29, 276);
this.GlobalGameSettings.Name = "GlobalGameSettings";
this.GlobalGameSettings.Size = new System.Drawing.Size(109, 13);
this.GlobalGameSettings.TabIndex = 15;
this.GlobalGameSettings.Text = "Global Game Settings";
this.GlobalGameSettings.DoubleClick += new System.EventHandler(this.GlobalGameSettings_DoubleClick);
this.GlobalGameSettings.MouseEnter += new System.EventHandler(this.GlobalGameSettings_MouseEnter);
this.GlobalGameSettings.MouseLeave += new System.EventHandler(this.GlobalGameSettings_MouseLeave);
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(3, 170);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(30, 13);
this.label7.TabIndex = 14;
this.label7.Text = "Title:";
//
// titleName
//
this.titleName.Location = new System.Drawing.Point(6, 186);
this.titleName.MaxLength = 40;
this.titleName.Multiline = true;
this.titleName.Name = "titleName";
this.titleName.Size = new System.Drawing.Size(355, 78);
this.titleName.TabIndex = 13;
this.titleName.Text = "GameMaker: Studio";
this.titleName.TextChanged += new System.EventHandler(this.titleName_TextChanged);
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(262, 134);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(44, 13);
this.label6.TabIndex = 12;
this.label6.Text = "Title ID:";
//
// titleID
//
this.titleID.Location = new System.Drawing.Point(262, 147);
this.titleID.Name = "titleID";
this.titleID.ReadOnly = true;
this.titleID.Size = new System.Drawing.Size(100, 20);
this.titleID.TabIndex = 11;
this.titleID.Text = "GMSP00001";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(3, 131);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(61, 13);
this.label5.TabIndex = 10;
this.label5.Text = "Content ID:";
//
// contentID
//
this.contentID.Location = new System.Drawing.Point(3, 147);
this.contentID.MaxLength = 36;
this.contentID.Name = "contentID";
this.contentID.Size = new System.Drawing.Size(253, 20);
this.contentID.TabIndex = 9;
this.contentID.Text = "IV0000-GMSP00001_00-GAMEMAKERSTUDIO0";
this.contentID.TextChanged += new System.EventHandler(this.contentID_TextChanged);
//
// browsePic
//
this.browsePic.Location = new System.Drawing.Point(280, 108);
this.browsePic.Name = "browsePic";
this.browsePic.Size = new System.Drawing.Size(75, 23);
this.browsePic.TabIndex = 8;
this.browsePic.Text = "Browse";
this.browsePic.UseVisualStyleBackColor = true;
this.browsePic.Click += new System.EventHandler(this.browsePic_Click);
//
// picPath
//
this.picPath.Location = new System.Drawing.Point(6, 108);
this.picPath.Name = "picPath";
this.picPath.ReadOnly = true;
this.picPath.Size = new System.Drawing.Size(268, 20);
this.picPath.TabIndex = 7;
this.picPath.Text = "img\\pic1.png";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(3, 92);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(140, 13);
this.label4.TabIndex = 6;
this.label4.Text = "Pic1.png (PNG 1920x1080):";
//
// browseIcon
//
this.browseIcon.Location = new System.Drawing.Point(280, 66);
this.browseIcon.Name = "browseIcon";
this.browseIcon.Size = new System.Drawing.Size(75, 23);
this.browseIcon.TabIndex = 5;
this.browseIcon.Text = "Browse";
this.browseIcon.UseVisualStyleBackColor = true;
this.browseIcon.Click += new System.EventHandler(this.browseIcon_Click);
//
// iconPath
//
this.iconPath.Location = new System.Drawing.Point(6, 69);
this.iconPath.Name = "iconPath";
this.iconPath.ReadOnly = true;
this.iconPath.Size = new System.Drawing.Size(268, 20);
this.iconPath.TabIndex = 4;
this.iconPath.Text = "img\\icon0.png";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(3, 53);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(134, 13);
this.label3.TabIndex = 3;
this.label3.Text = "Icon0.png (PNG 512x512):";
//
// browseProject
//
this.browseProject.Location = new System.Drawing.Point(280, 28);
this.browseProject.Name = "browseProject";
this.browseProject.Size = new System.Drawing.Size(75, 23);
this.browseProject.TabIndex = 2;
this.browseProject.Text = "Browse";
this.browseProject.UseVisualStyleBackColor = true;
this.browseProject.Click += new System.EventHandler(this.browseProject_Click);
//
// projectPath
//
this.projectPath.Location = new System.Drawing.Point(6, 30);
this.projectPath.Name = "projectPath";
this.projectPath.ReadOnly = true;
this.projectPath.Size = new System.Drawing.Size(268, 20);
this.projectPath.TabIndex = 1;
this.projectPath.Text = "(none)";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(3, 14);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(123, 13);
this.label2.TabIndex = 0;
this.label2.Text = "Project File (.gmx / .yyp):";
//
// Logo
//
this.Logo.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("Logo.BackgroundImage")));
this.Logo.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.Logo.Location = new System.Drawing.Point(1022, 332);
this.Logo.Name = "Logo";
this.Logo.Size = new System.Drawing.Size(257, 206);
this.Logo.TabIndex = 8;
this.Logo.TabStop = false;
//
// CreatePKG
//
this.CreatePKG.Enabled = false;
this.CreatePKG.Location = new System.Drawing.Point(1022, 544);
this.CreatePKG.Name = "CreatePKG";
this.CreatePKG.Size = new System.Drawing.Size(257, 23);
this.CreatePKG.TabIndex = 9;
this.CreatePKG.Text = "Make PKG";
this.CreatePKG.UseVisualStyleBackColor = true;
this.CreatePKG.Click += new System.EventHandler(this.CreatePKG_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 = 10;
//
// GmacOut
//
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.ReadOnly = true;
this.GmacOut.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.GmacOut.Size = new System.Drawing.Size(1329, 103);
this.GmacOut.TabIndex = 0;
//
// StartupPreview
//
this.StartupPreview.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("StartupPreview.BackgroundImage")));
this.StartupPreview.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.StartupPreview.Location = new System.Drawing.Point(3, 25);
this.StartupPreview.Name = "StartupPreview";
this.StartupPreview.Size = new System.Drawing.Size(960, 544);
this.StartupPreview.TabIndex = 6;
//
// GayMakerStudio
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(1344, 691);
this.Controls.Add(this.panel1);
this.Controls.Add(this.CreatePKG);
this.Controls.Add(this.Logo);
this.Controls.Add(this.GameSettings);
this.Controls.Add(this.label1);
this.Controls.Add(this.startupScreen);
this.Controls.Add(this.homeScreen);
this.Controls.Add(this.homePreview);
this.Controls.Add(this.StartupPreview);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.Name = "GayMakerStudio";
this.Text = "GayMaker: Studio v";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.GayMakerStudio_FormClosing);
this.Load += new System.EventHandler(this.GayMakerStudio_Load);
((System.ComponentModel.ISupportInitialize)(this.IconPreview)).EndInit();
this.homePreview.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.IconPreview2)).EndInit();
this.GameSettings.ResumeLayout(false);
this.GameSettings.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.Logo)).EndInit();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.RadioButton homeScreen;
private System.Windows.Forms.RadioButton startupScreen;
private System.Windows.Forms.PictureBox IconPreview;
private System.Windows.Forms.Label Title;
private System.Windows.Forms.Panel homePreview;
private System.Windows.Forms.PictureBox IconPreview2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Panel GameSettings;
private System.Windows.Forms.PictureBox Logo;
private System.Windows.Forms.Button CreatePKG;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.TextBox GmacOut;
private System.Windows.Forms.Button browseProject;
private System.Windows.Forms.TextBox projectPath;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button browseIcon;
private System.Windows.Forms.TextBox iconPath;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.TextBox titleName;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.TextBox titleID;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox contentID;
private System.Windows.Forms.Button browsePic;
private System.Windows.Forms.TextBox picPath;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Panel StartupPreview;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Label GlobalGameSettings;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.ComboBox VersionSelect;
}
}

View File

@ -0,0 +1,773 @@
using LibOrbisPkg.GP4;
using LibOrbisPkg.PKG;
using System;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Net;
using System.Net.Cache;
using System.Reflection;
using System.Text;
using System.Threading;
using System.Windows.Forms;
using System.Xml;
namespace GayMaker_Studio
{
public partial class GayMakerStudio : Form
{
public String CurrentVerison = "1.1";
bool HasShaders = false;
public GayMakerStudio()
{
//Bypass Windows DPI Scaling
Font = new Font(Font.Name, 8.25f * 96f / CreateGraphics().DpiX, Font.Style, Font.Unit, Font.GdiCharSet, Font.GdiVerticalFont);
InitializeComponent();
}
public String GetProjectPath() //For GlobalGameSettings
{
return projectPath.Text;
}
private bool isValidContentId(string contentId)
{
if(contentId.Length == 36)
if (Char.IsLetter(contentId[0]))
if (Char.IsUpper(contentId[0]))
if (Char.IsLetter(contentId[1]))
if (Char.IsUpper(contentId[1]))
if (Char.IsNumber(contentId[2]))
if (Char.IsNumber(contentId[3]))
if (Char.IsNumber(contentId[4]))
if (Char.IsNumber(contentId[5]))
if (contentId[6] == '-')
if (Char.IsLetter(contentId[7]))
if (Char.IsUpper(contentId[7]))
if (Char.IsLetter(contentId[8]))
if (Char.IsUpper(contentId[8]))
if (Char.IsLetter(contentId[9]))
if (Char.IsUpper(contentId[9]))
if (Char.IsLetter(contentId[10]))
if (Char.IsUpper(contentId[10]))
if (Char.IsNumber(contentId[11]))
if (Char.IsNumber(contentId[12]))
if (Char.IsNumber(contentId[13]))
if (Char.IsNumber(contentId[14]))
if (Char.IsNumber(contentId[15]))
if (contentId[16] == '_')
if (Char.IsNumber(contentId[17]))
if (Char.IsNumber(contentId[18]))
if (contentId[19] == '-')
if ((Char.IsNumber(contentId[20])) || (Char.IsLetter(contentId[20]) && Char.IsUpper(contentId[20])))
if ((Char.IsNumber(contentId[21])) || (Char.IsLetter(contentId[21]) && Char.IsUpper(contentId[21])))
if ((Char.IsNumber(contentId[22])) || (Char.IsLetter(contentId[22]) && Char.IsUpper(contentId[22])))
if ((Char.IsNumber(contentId[23])) || (Char.IsLetter(contentId[23]) && Char.IsUpper(contentId[23])))
if ((Char.IsNumber(contentId[24])) || (Char.IsLetter(contentId[24]) && Char.IsUpper(contentId[24])))
if ((Char.IsNumber(contentId[25])) || (Char.IsLetter(contentId[25]) && Char.IsUpper(contentId[25])))
if ((Char.IsNumber(contentId[26])) || (Char.IsLetter(contentId[26]) && Char.IsUpper(contentId[26])))
if ((Char.IsNumber(contentId[27])) || (Char.IsLetter(contentId[27]) && Char.IsUpper(contentId[27])))
if ((Char.IsNumber(contentId[28])) || (Char.IsLetter(contentId[28]) && Char.IsUpper(contentId[28])))
if ((Char.IsNumber(contentId[29])) || (Char.IsLetter(contentId[29]) && Char.IsUpper(contentId[29])))
if ((Char.IsNumber(contentId[30])) || (Char.IsLetter(contentId[30]) && Char.IsUpper(contentId[30])))
if ((Char.IsNumber(contentId[31])) || (Char.IsLetter(contentId[31]) && Char.IsUpper(contentId[31])))
if ((Char.IsNumber(contentId[32])) || (Char.IsLetter(contentId[32]) && Char.IsUpper(contentId[32])))
if ((Char.IsNumber(contentId[33])) || (Char.IsLetter(contentId[33]) && Char.IsUpper(contentId[33])))
if ((Char.IsNumber(contentId[34])) || (Char.IsLetter(contentId[34]) && Char.IsUpper(contentId[34])))
if ((Char.IsNumber(contentId[35])) || (Char.IsLetter(contentId[35]) && Char.IsUpper(contentId[35])))
return true;
return false;
}
private bool canMakePkg()
{
if (File.Exists(projectPath.Text))
if (isValidContentId(contentID.Text))
return true;
return false;
}
private void reloadIcons()
{
IconPreview.BackgroundImage.Dispose();
IconPreview2.BackgroundImage.Dispose();
StartupPreview.BackgroundImage.Dispose();
Image IBG = new Bitmap(iconPath.Text);
IconPreview.BackgroundImage = IBG;
IconPreview2.BackgroundImage = IBG;
Image PBG = new Bitmap(picPath.Text);
StartupPreview.BackgroundImage = PBG;
}
private void GayMakerStudio_FormClosing(object sender, FormClosingEventArgs e)
{
try
{
Microsoft.Win32.RegistryKey key;
key = Microsoft.Win32.Registry.CurrentUser.CreateSubKey(@"Software\GayMakerStudio");
key.SetValue("project", projectPath.Text);
key.SetValue("icon0", iconPath.Text);
key.SetValue("pic1", picPath.Text);
key.SetValue("title", titleName.Text);
key.SetValue("contentID", contentID.Text);
key.SetValue("version", VersionSelect.SelectedIndex);
key.Close();
}
catch (Exception)
{
MessageBox.Show("Failed to save settings to registry.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
private void CheckForUpdates()
{
WebClient wc = new WebClient();
wc.CachePolicy = new RequestCachePolicy(RequestCacheLevel.NoCacheNoStore);
String UpdateString = wc.DownloadString("https://bitbucket.org/SilicaAndPina/gaymaker-studio/raw/master/latest.md");
String[] Data = UpdateString.Split('~');
if (Data[0] != CurrentVerison)
{
DialogResult yesOrNo = MessageBox.Show("An update to GayMaker: Studio was found, Version: " + Data[0] + "\nWant to download it?\n\nThis system software update improves system performance.", "UPDATE FOUND!", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (yesOrNo == DialogResult.Yes)
{
DownloadingUpdate updateForm = new DownloadingUpdate();
this.Hide();
updateForm.ShowDialog();
this.Close();
this.Dispose();
}
}
}
private void GayMakerStudio_Load(object sender, EventArgs e)
{
this.Text += CurrentVerison;
ReloadVersions();
String OldEXEPath = Path.ChangeExtension(Assembly.GetExecutingAssembly().Location,".old");
if(File.Exists(OldEXEPath))
{
File.Delete(OldEXEPath);
}
try
{
CheckForUpdates();
}
catch (Exception) { };
try
{
Microsoft.Win32.RegistryKey key;
key = Microsoft.Win32.Registry.CurrentUser.CreateSubKey(@"Software\GayMakerStudio");
projectPath.Text = key.GetValue("project").ToString();
iconPath.Text = key.GetValue("icon0").ToString();
picPath.Text = key.GetValue("pic1").ToString();
titleName.Text = key.GetValue("title").ToString();
contentID.Text = key.GetValue("contentID").ToString();
int VerIndex = 0;
int.TryParse(key.GetValue("version").ToString(), out VerIndex);
VersionSelect.SelectedIndex = VerIndex;
homeScreen.Checked = true;
startupScreen.Checked = false;
homePreview.Visible = true;
StartupPreview.Visible = false;
key.Close();
reloadIcons();
}
catch (Exception) { };
if (!File.Exists(iconPath.Text))
{
iconPath.Text = "img\\icon0.png";
}
if (!File.Exists(picPath.Text))
{
picPath.Text = "img\\pic1.png";
}
if (!File.Exists(projectPath.Text))
{
projectPath.Text = "(none)";
}
else
{
GlobalGameSettings.Enabled = true;
}
CreatePKG.Enabled = canMakePkg();
}
private void titleName_TextChanged(object sender, EventArgs e)
{
homeScreen.Checked = true;
Title.Text = titleName.Text;
}
private void homeScreen_CheckedChanged(object sender, EventArgs e)
{
homePreview.Visible = true;
StartupPreview.Visible = false;
}
private void startupScreen_CheckedChanged(object sender, EventArgs e)
{
homePreview.Visible = false ;
StartupPreview.Visible = true;
}
private void contentID_TextChanged(object sender, EventArgs e)
{
if(isValidContentId(contentID.Text))
{
titleID.Text = contentID.Text.Substring(7, 9);
}
else
{
titleID.Text = "(INVALID)";
}
CreatePKG.Enabled = canMakePkg();
}
private void browseProject_Click(object sender, EventArgs e)
{
OpenFileDialog openFileDialog1 = new OpenFileDialog();
openFileDialog1.Filter = "GameMaker Studio Project Files|*.project.gmx;*.yyp|GameMaker Studio 1.x Project Files|*.project.gmx|GameMaker Studio 2.x Project Files|*.yyp";
openFileDialog1.Title = "Select a GameMaker Studio Project File";
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
titleName.Text = "GameMaker: Studio";
iconPath.Text = "img\\icon0.png";
picPath.Text = "img\\pic1.png";
contentID.Text = "IV0000-GMSP00001_00-GAMEMAKERSTUDIO0";
projectPath.Text = openFileDialog1.FileName;
CreatePKG.Enabled = true;
GlobalGameSettings.Enabled = true;
reloadIcons();
}
}
private void browseIcon_Click(object sender, EventArgs e)
{
OpenFileDialog openFileDialog1 = new OpenFileDialog();
openFileDialog1.Filter = "Portable Network Graphics|*.PNG";
openFileDialog1.Title = "Select a PNG File";
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
Image img = new Bitmap(openFileDialog1.FileName);
if (img.Height == 512 && img.Width == 512)
{
IconPreview.BackgroundImage.Dispose();
IconPreview2.BackgroundImage.Dispose();
IconPreview.BackgroundImage = img;
IconPreview2.BackgroundImage = img;
homeScreen.Checked = true;
iconPath.Text = openFileDialog1.FileName;
}
else
{
img.Dispose(); //fix issue #2
MessageBox.Show("Image is not 512x512!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}
private void browsePic_Click(object sender, EventArgs e)
{
OpenFileDialog openFileDialog1 = new OpenFileDialog();
openFileDialog1.Filter = "Portable Network Graphics|*.PNG";
openFileDialog1.Title = "Select a PNG File";
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
Image img = new Bitmap(openFileDialog1.FileName);
if (img.Height == 1080 && img.Width == 1920)
{
StartupPreview.BackgroundImage.Dispose();
StartupPreview.BackgroundImage = img;
startupScreen.Checked = true;
picPath.Text = openFileDialog1.FileName;
}
else
{
img.Dispose(); //fix issue #2
MessageBox.Show("Image is not 1920x1080 !", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}
private void IconPreview_Click(object sender, EventArgs e)
{
startupScreen.Checked = true;
}
private void GlobalGameSettings_MouseEnter(object sender, EventArgs e)
{
GlobalGameSettings.ForeColor = Color.Blue;
GlobalGameSettings.Font = new Font(label1.Font.Name, label1.Font.SizeInPoints, FontStyle.Underline);
this.Cursor = Cursors.Hand;
}
private void GlobalGameSettings_MouseLeave(object sender, EventArgs e)
{
GlobalGameSettings.ForeColor = Color.Black;
GlobalGameSettings.Font = new Font(label1.Font.Name, label1.Font.SizeInPoints, FontStyle.Regular);
this.Cursor = Cursors.Arrow;
}
private void GlobalGameSettings_DoubleClick(object sender, EventArgs e)
{
GameSettings GlobalGames = new GameSettings();
GlobalGames.ShowDialog();
}
private void CopyDir(string source, string target)
{
GmacOut.AppendText("Copying Directory:\n \"" + source + "\"\n-> \"" + target + "\"\n");
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
{
GmacOut.AppendText("Copying \"" + fileName + "\"\n");
File.Copy(sysEntry, targetPath, true);
}
}
}
private void Make24Bit(string Src, string Dst)
{
GmacOut.AppendText("Making " + Src + " 24 bit color depth!");
Bitmap orig = new Bitmap(Src);
if ((orig.PixelFormat != PixelFormat.Format24bppRgb))
{
Bitmap clone = orig.Clone(new Rectangle(0, 0, orig.Width, orig.Height), PixelFormat.Format24bppRgb);
clone.Save(@Dst);
clone.Dispose();
GmacOut.AppendText(" Done!\n");
}
else
{
GmacOut.AppendText(" No need!\n");
File.Copy(Src, Dst);
}
orig.Dispose();
}
private bool CompileProject(string Src, string Dst)
{
string GMVer = VersionSelect.SelectedItem.ToString();
String TexturePageSize = "1028";
if (GMVer.StartsWith("1."))
{
XmlDocument DefaultConfig = new XmlDocument();
DefaultConfig.Load(Path.GetDirectoryName(projectPath.Text) + "\\Configs\\Default.config.gmx");
TexturePageSize = DefaultConfig.GetElementsByTagName("option_ps4_texture_page")[0].InnerText;
}
string versionBit = GMVer.Split('.')[2];
if(GMVer.StartsWith("2."))
{
GmacOut.AppendText("Creating license.plist...\n");
String LicenseFile = GMLicense.LicenseFormat.CreateLicense("ps4", GMLicense.Keys.GetPrivateKey());
if (!Directory.Exists(Dst+"\\GameMakerLicense"))
{
Directory.CreateDirectory(Dst + "\\GameMakerLicense");
}
File.WriteAllText(Dst + "\\GameMakerLicense\\licence.plist",LicenseFile);
GmacOut.AppendText("Written license file to: " + Dst + "\\GameMakerLicense\\license.plist\n");
}
string args;
if (HasShaders && GMVer.StartsWith("1."))
{
args = "/c /m=ps4 /config=\"Default\" /tgt=4294967296 /obob=True /obpp=False /obru=True /obes=False /i=3 /j=4 /cvm /tp=" + TexturePageSize + " /mv=1 /iv=0 /rv=0 /bv=" + versionBit + " /sh=False /ps4sdk=\"" + Directory.GetCurrentDirectory() + "\\ps4sdk\" /gn=\"" + titleName.Text + "\" /o=\"" + Dst + "\" \"" + Src + "\"";
}
else if(GMVer.StartsWith("1."))
{
args = "/c /m=ps4 /config=\"Default\" /tgt=4294967296 /obob=True /obpp=False /obru=True /obes=False /i=3 /j=4 /cvm /tp=" + TexturePageSize + " /mv=1 /iv=0 /rv=0 /bv=" + versionBit + " /sh=False /gn=\"" + titleName.Text + "\" /o=\"" + Dst + "\" \"" + Src + "\"";
}
else if(HasShaders && GMVer.StartsWith("2."))
{
args = "/c /zpex /zpuf=\""+Dst + "\\GameMakerLicense\" /baseproject=\"" +Directory.GetCurrentDirectory()+"\\versions\\"+GMVer+ "\\BaseProject\\BaseProject.yyp\" /m=PS4 /config=\"default\" /tgt=4294967296 /obob=True /obpp=False /obru=True /obes=False /i=3 /j=4 /cvm /mv=1 /iv=0 /rv=0 /bv=0 /sh=False /ps4sdk=\"" + Directory.GetCurrentDirectory() + "\\ps4sdk\" /gn=\"" + titleName.Text + "\" /o=\"" + Dst + "\" \"" + Src + "\"";
}
else
{
args = "/c /zpex /zpuf=\"" + Dst + "\\GameMakerLicense\" /baseproject=\"" + Directory.GetCurrentDirectory() + "\\versions\\" + GMVer + "\\BaseProject\\BaseProject.yyp\" /m=PS4 /config=\"default\" /tgt=4294967296 /obob=True /obpp=False /obru=True /obes=False /i=3 /j=4 /cvm /mv=1 /iv=0 /rv=0 /bv=0 /sh=False /gn=\"" + titleName.Text + "\" /o=\"" + Dst + "\" \"" + Src + "\"";
}
GmacOut.AppendText("-- GMASSETCOMPILER BEGIN --\n");
GmacOut.AppendText("GMAssetCompiler.exe " + args + "\n");
Process gmac = new Process();
if (GMVer == "1.4.9999")
{
gmac.StartInfo.FileName = "GMAssetCompiler.exe";
}
else
{
gmac.StartInfo.FileName = "versions\\" + GMVer + "\\GMAssetCompiler.exe";
gmac.StartInfo.WorkingDirectory = "versions\\" + GMVer;
}
gmac.StartInfo.Arguments = args;
gmac.StartInfo.UseShellExecute = false;
gmac.StartInfo.CreateNoWindow = true;
gmac.StartInfo.RedirectStandardOutput = true;
gmac.StartInfo.RedirectStandardError = true;
gmac.ErrorDataReceived += new DataReceivedEventHandler(gmacWrite);
gmac.OutputDataReceived += new DataReceivedEventHandler(gmacWrite);
GMAC.GetPermissionToExecute();
gmac.Start();
gmac.BeginOutputReadLine();
gmac.BeginErrorReadLine();
while (!gmac.HasExited)
{
Application.DoEvents();
}
if (gmac.ExitCode != 0)
{
MessageBox.Show("GMAssetCompiler.exe Error Code: " + gmac.ExitCode.ToString(), "GMAC Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
Directory.Delete(Dst, true);
return false;
}
gmac.Dispose();
GmacOut.AppendText("-- GMASSETCOMPILER FINISHED! --\n");
if (GMVer.StartsWith("2."))
{
GmacOut.AppendText("Removing license.plist...");
File.Delete(Dst + "\\GameMakerLicense\\license.plist");
Directory.Delete(Dst + "\\GameMakerLicense", true);
GmacOut.AppendText("OK!\n");
}
GmacOut.AppendText("Renaming to game.win...");
foreach (String file in Directory.GetFiles(Dst))
{
if (file.EndsWith(".win"))
{
File.Move(file, Dst + "\\game.win");
}
if (file.EndsWith(".yydebug"))
{
File.Delete(file);
}
}
GmacOut.AppendText("OK!\n");
return true;
}
void gmacWrite(object sender, DataReceivedEventArgs e)
{
Trace.WriteLine(e.Data);
this.BeginInvoke(new MethodInvoker(() =>
{
GmacOut.AppendText(e.Data + "\n");
}));
}
private void AddFile(Gp4Project proj, string targetPath, string origPath)
{
var f = origPath;
var fileEntry = new Gp4File
{
OrigPath = f,
TargetPath = targetPath + Path.GetFileName(origPath)
};
proj.files.Items.Add(fileEntry);
}
private void AddFileTree(Gp4Project proj, Dir parent, string path)
{
var newDir = proj.AddDir(parent, Path.GetFileName(path));
foreach (var d in Directory.EnumerateDirectories(path))
{
AddFileTree(proj, newDir, d);
}
var targetPath = newDir.Path;
foreach (var f in Directory.EnumerateFiles(path))
{
AddFile(proj, targetPath, f);
}
}
private void CreatePKG_Click(object sender, EventArgs e)
{
string GMVer = VersionSelect.SelectedItem.ToString();
if(Path.GetExtension(projectPath.Text).ToLower() == ".yyp" && GMVer.StartsWith("1."))
{
MessageBox.Show("Cannot build GMS2 Project using GMS1.4", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
else if(Path.GetExtension(projectPath.Text).ToLower() == ".gmx" && GMVer.StartsWith("2."))
{
MessageBox.Show("Cannot build GMS1.4 Project using GMS2", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
string tempdir = "";
SaveFileDialog saveFileDialog1 = new SaveFileDialog();
saveFileDialog1.Filter = "PS4 Packages|*.PKG";
saveFileDialog1.Title = "Save PKG File";
saveFileDialog1.FileName = contentID.Text;
CreatePKG.Enabled = false;
if(GMVer.StartsWith("1."))
HasShaders = File.ReadAllText(projectPath.Text).Contains("</shaders>"); //Too lazy to parse XML properly.
else if(GMVer.StartsWith("2."))
HasShaders = File.ReadAllText(projectPath.Text).Contains("GMShader"); //Too lazy to parse XML properly.
if (HasShaders)
{
if (!Directory.Exists(@"ps4sdk"))
{
DialogResult msgResult = MessageBox.Show("It's been detected that you are using Shaders in your GM Project\nHowever no copy of the PS4 Shader Compiler (orbis-wave-psslc.exe) was found.\nBrowse to orbis-wave-psslc.exe?", "Shader Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation);
if (msgResult == DialogResult.Yes)
{
OpenFileDialog openFileDialog = new OpenFileDialog();
openFileDialog.Filter = "orbis-wave-psslc.exe|orbis-wave-psslc.exe";
openFileDialog.Title = "Browse to PS4 Shader Compiler.";
if (openFileDialog.ShowDialog() == DialogResult.OK)
{
if (!Directory.Exists(@"ps4sdk"))
{
GmacOut.AppendText("Creating PS4SDK Directory Structure\n");
Directory.CreateDirectory("ps4sdk");
Directory.CreateDirectory("ps4sdk/host_tools");
Directory.CreateDirectory("ps4sdk/host_tools/bin");
}
File.Copy(openFileDialog.FileName, @"ps4sdk/host_tools/bin/orbis-wave-psslc.exe");
}
else
{
CreatePKG.Enabled = true;
return;
}
}
else
{
CreatePKG.Enabled = true;
return;
}
}
}
if (saveFileDialog1.ShowDialog() == DialogResult.OK)
{
tempdir = Path.GetDirectoryName(saveFileDialog1.FileName) + "\\_temp";
if (Directory.Exists(tempdir))
{
Directory.Delete(tempdir, true);
}
Directory.CreateDirectory(tempdir);
if (GMVer == "1.4.9999")
{
CopyDir(@"Runner", tempdir);
}
else
{
CopyDir("versions\\" + GMVer + "\\Runner", tempdir);
}
Make24Bit(iconPath.Text, tempdir + "\\sce_sys\\icon0.png");
Make24Bit(picPath.Text, tempdir + "\\sce_sys\\pic1.png");
if (!CompileProject(projectPath.Text, tempdir + "\\games"))
{
Directory.Delete(tempdir, true);
CreatePKG.Enabled = true;
return;
}
}
else
{
CreatePKG.Enabled = true;
return;
}
FileStream fd = File.Open(tempdir + "\\sce_sys\\param.sfo", FileMode.OpenOrCreate, FileAccess.ReadWrite);
GmacOut.AppendText("Writing " + titleName.Text + " to TITLE of param.sfo\n");
fd.Seek(0x350, SeekOrigin.Begin);
foreach (Byte by in ASCIIEncoding.ASCII.GetBytes(titleName.Text))
{
fd.WriteByte(by);
}
GmacOut.AppendText("Writing " + titleID.Text + " to TITLE_ID of param.sfo\n");
fd.Seek(0x3D0, SeekOrigin.Begin);
foreach (Byte by in ASCIIEncoding.ASCII.GetBytes(titleID.Text))
{
fd.WriteByte(by);
}
GmacOut.AppendText("Writing " + contentID.Text + " to CONTENT_ID of param.sfo!\n");
fd.Seek(0x284, SeekOrigin.Begin);
foreach (Byte by in ASCIIEncoding.ASCII.GetBytes(contentID.Text))
{
fd.WriteByte(by);
}
fd.Close();
GmacOut.AppendText("Creating GP4 ...");
Gp4Project proj = Gp4Project.Create(VolumeType.pkg_ps4_app);
Dir root = null;
foreach (var file in Directory.GetFileSystemEntries(tempdir))
{
if (File.Exists(file))
{
AddFile(proj, "", file);
}
else if (Directory.Exists(file))
{
AddFileTree(proj, root, file);
}
}
proj.volume.Package.ContentId = contentID.Text;
proj.volume.Package.Passcode = "00000000000000000000000000000000";
GmacOut.AppendText("OK!\n");
if (File.Exists(saveFileDialog1.FileName))
{
File.Delete(saveFileDialog1.FileName);
}
GmacOut.AppendText("Building PKG ...");
Thread thr = new Thread(() =>
{
PkgBuilder pkg = new PkgBuilder(PkgProperties.FromGp4(proj, ""));
pkg.Write(saveFileDialog1.FileName);
});
thr.Start();
while (thr.IsAlive)
{
Application.DoEvents();
}
GmacOut.AppendText("OK!\n");
GmacOut.AppendText("Deleting " + tempdir + " ...");
Directory.Delete(tempdir, true);
GmacOut.AppendText("OK!\n");
GmacOut.AppendText("Done!\n");
CreatePKG.Enabled = true;
MessageBox.Show("PKG Created!", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
public void ReloadVersions()
{
VersionSelect.Items.Clear();
VersionSelect.Items.Add("1.4.9999");
try
{
foreach (String version in Directory.GetDirectories(@"versions"))
{
VersionSelect.Items.Add(Path.GetFileName(version));
}
}
catch (Exception) { };
VersionSelect.Items.Add("Manager");
VersionSelect.SelectedIndex = 0;
}
private void VersionSelect_SelectedIndexChanged(object sender, EventArgs e)
{
//1.4.9999 comes built in
if(VersionSelect.Text.StartsWith("1."))
{
GameSettings.Enabled = true;
}
else
{
GlobalGameSettings.Enabled = false;
}
if (VersionSelect.SelectedItem.ToString() == "Manager")
{
VersionSelect.SelectedIndex -= 1;
this.Enabled = false;
VersionManager VM = new VersionManager();
VM.Show();
VM.FormClosing += VM_FormClosing;
}
}
private void VM_FormClosing(object sender, FormClosingEventArgs e)
{
this.Enabled = true;
ReloadVersions();
this.Focus();
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace GayMaker_Studio
{
static class Program
{
public static GayMakerStudio GMS;
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
GMS = new GayMakerStudio();
Application.Run(GMS);
}
}
}

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-Studio")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("GayMaker-Studio")]
[assembly: AssemblyCopyright("Copyright © 2019")]
[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("a574f9f8-d3b2-4ef6-80de-5d546c43b57d")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -0,0 +1,71 @@
//------------------------------------------------------------------------------
// <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_Studio.Properties
{
/// <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", "4.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 ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("GayMaker_Studio.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;
}
}
}
}

View File

@ -0,0 +1,117 @@
<?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.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: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" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</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" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

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_Studio.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>

150
GayMaker-Studio/VersionManager.Designer.cs generated Normal file
View File

@ -0,0 +1,150 @@
namespace GayMaker_Studio
{
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.label1 = new System.Windows.Forms.Label();
this.DownloadList = new System.Windows.Forms.ListBox();
this.DownloadProgress = new System.Windows.Forms.ProgressBar();
this.StatusText = new System.Windows.Forms.Label();
this.DownloadButton = new System.Windows.Forms.Button();
this.label2 = new System.Windows.Forms.Label();
this.DownloadedList = new System.Windows.Forms.ListBox();
this.DeleteVersion = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(109, 13);
this.label1.TabIndex = 0;
this.label1.Text = "Available Downloads:";
//
// 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(461, 186);
this.DownloadList.TabIndex = 1;
//
// DownloadProgress
//
this.DownloadProgress.Location = new System.Drawing.Point(12, 262);
this.DownloadProgress.Name = "DownloadProgress";
this.DownloadProgress.Size = new System.Drawing.Size(461, 23);
this.DownloadProgress.TabIndex = 2;
//
// StatusText
//
this.StatusText.AutoSize = true;
this.StatusText.Location = new System.Drawing.Point(9, 246);
this.StatusText.Name = "StatusText";
this.StatusText.Size = new System.Drawing.Size(52, 13);
this.StatusText.TabIndex = 3;
this.StatusText.Text = "Waiting...";
//
// DownloadButton
//
this.DownloadButton.Location = new System.Drawing.Point(12, 220);
this.DownloadButton.Name = "DownloadButton";
this.DownloadButton.Size = new System.Drawing.Size(461, 23);
this.DownloadButton.TabIndex = 4;
this.DownloadButton.Text = "Download This Version";
this.DownloadButton.UseVisualStyleBackColor = true;
this.DownloadButton.Click += new System.EventHandler(this.DownloadButton_Click);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(12, 288);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(110, 13);
this.label2.TabIndex = 5;
this.label2.Text = "Allready Downloaded:";
//
// DownloadedList
//
this.DownloadedList.FormattingEnabled = true;
this.DownloadedList.Items.AddRange(new object[] {
"1.4.9999"});
this.DownloadedList.Location = new System.Drawing.Point(12, 304);
this.DownloadedList.Name = "DownloadedList";
this.DownloadedList.Size = new System.Drawing.Size(461, 199);
this.DownloadedList.TabIndex = 6;
//
// DeleteVersion
//
this.DeleteVersion.Location = new System.Drawing.Point(12, 509);
this.DeleteVersion.Name = "DeleteVersion";
this.DeleteVersion.Size = new System.Drawing.Size(461, 23);
this.DeleteVersion.TabIndex = 7;
this.DeleteVersion.Text = "Delete This Version";
this.DeleteVersion.UseVisualStyleBackColor = true;
this.DeleteVersion.Click += new System.EventHandler(this.DeleteVersion_Click);
//
// VersionManager
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(485, 544);
this.Controls.Add(this.DeleteVersion);
this.Controls.Add(this.DownloadedList);
this.Controls.Add(this.label2);
this.Controls.Add(this.DownloadButton);
this.Controls.Add(this.StatusText);
this.Controls.Add(this.DownloadProgress);
this.Controls.Add(this.DownloadList);
this.Controls.Add(this.label1);
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.Load += new System.EventHandler(this.VersionManager_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ListBox DownloadList;
private System.Windows.Forms.ProgressBar DownloadProgress;
private System.Windows.Forms.Label StatusText;
private System.Windows.Forms.Button DownloadButton;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.ListBox DownloadedList;
private System.Windows.Forms.Button DeleteVersion;
}
}

View File

@ -0,0 +1,358 @@
using GMTools;
using Ionic.Zip;
using System;
using System.Drawing;
using System.IO;
using System.Net;
using System.Net.Cache;
using System.Threading;
using System.Windows.Forms;
namespace GayMaker_Studio
{
public partial class VersionManager : Form
{
//private const int NUMBER_OF_CDN_URLS = 4; //Uncomment for GMS2
private const int NUMBER_OF_CDN_URLS = 2;
private string currentDownload = "";
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);
}
}
}
private string getUrlFileName(string url)
{
string filename = Path.GetFileName(new Uri(url).LocalPath);
if (!Path.HasExtension(filename))
filename = Path.ChangeExtension(filename, ".zip");
return filename;
}
public VersionManager()
{
//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 VersionManager_Load(object sender, EventArgs e)
{
this.Owner = Program.GMS;
for (int cdnIndex = 1; cdnIndex <= NUMBER_OF_CDN_URLS; cdnIndex++)
{
Thread downloadThread = new Thread(() =>
{
CDN.UseCDN(CDNUrls.FromIndex(cdnIndex));
});
downloadThread.Start();
while (downloadThread.IsAlive)
Application.DoEvents();
foreach (String Version in CDN.GetVersions("ps4"))
{
if (Version != "1.4.9999" || DownloadList.Items.Contains(Version))
DownloadList.Items.Add(Version);
}
}
foreach (String dir in Directory.GetDirectories(@"versions"))
{
DownloadedList.Items.Add(Path.GetFileName(dir));
DownloadList.Items.Remove(Path.GetFileName(dir));
}
}
private void startDownload(string URL, string path)
{
currentDownload = getUrlFileName(URL);
DownloadProgress.Value = 0;
DownloadProgress.Style = ProgressBarStyle.Continuous;
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.DownloadFileAsync(new Uri(URL), path);
while (client.IsBusy)
Application.DoEvents();
StatusText.Text = "Waiting...";
DownloadProgress.Value = 0;
DownloadProgress.Style = ProgressBarStyle.Continuous;
}
private void extractFile(string zipfile, string path, string password = "")
{
DownloadProgress.Style = ProgressBarStyle.Marquee;
Thread extractThread = new Thread(() =>
{
if (Directory.Exists(path))
{
while (true)
{
try
{
Directory.Delete(path, true);
}
catch (Exception) { };
break;
}
}
Thread.CurrentThread.IsBackground = true;
Invoke((Action)delegate { StatusText.Text = "Extracting: " + Path.GetFileName(zipfile); });
using (ZipFile archive = new ZipFile(zipfile))
{
archive.Password = password;
archive.Encryption = EncryptionAlgorithm.PkzipWeak;
archive.ExtractAll(path);
}
});
extractThread.Start();
while (extractThread.IsAlive)
Application.DoEvents();
StatusText.Text = "Waiting...";
DownloadProgress.Value = 0;
DownloadProgress.Style = ProgressBarStyle.Continuous;
File.Delete(zipfile);
}
private void client_DownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e)
{
DownloadProgress.Value = e.ProgressPercentage;
StatusText.Text = "Downloading: "+ currentDownload + " " + e.ProgressPercentage + "% (" + e.BytesReceived + "b / " + e.TotalBytesToReceive + "b)";
}
private void DownloadButton_Click(object sender, EventArgs e)
{
if (DownloadList.SelectedIndex <= -1) { return; }
DownloadList.Enabled = false;
DownloadButton.Enabled = false;
ControlBox = false;
string version = DownloadList.SelectedItem.ToString();
for (int cdnIndex = 1; cdnIndex <= NUMBER_OF_CDN_URLS; cdnIndex++)
{
Thread downloadThread = new Thread(() =>
{
CDN.UseCDN(CDNUrls.FromIndex(cdnIndex));
});
downloadThread.Start();
while (downloadThread.IsAlive)
Application.DoEvents();
string ps4Url = CDN.GetModuleForVersion(version, "ps4");
if (ps4Url != "NF")
{
string ps4Filename = getUrlFileName(ps4Url);
string ps4Password = CDN.GetPassword(ps4Filename);
string gamemakerUrl = CDN.GetModuleForVersion(version, "original");
string gamemakerFilename = getUrlFileName(gamemakerUrl);
string gamemakerPassword = CDN.GetPassword(gamemakerFilename);
startDownload(ps4Url, ps4Filename);
extractFile(ps4Filename, @"_ps4", ps4Password);
startDownload(gamemakerUrl, gamemakerFilename);
extractFile(gamemakerFilename, @"_gamemaker", gamemakerPassword);
DownloadProgress.Style = ProgressBarStyle.Marquee;
StatusText.Text = "Copying Files...";
Application.DoEvents();
Thread copyThread = new Thread(() =>
{
Directory.CreateDirectory(@"versions\\" + version + "\\Runner");
Directory.CreateDirectory(@"versions\\" + version + "\\Shaders");
if (version.StartsWith("1."))
{
try
{
File.Copy(@"_gamemaker\\GMAssetCompiler.exe", @"versions\\" + version + "\\GMAssetCompiler.exe", true);
File.Copy(@"_gamemaker\\ffmpeg.exe", @"versions\\" + version + "\\ffmpeg.exe", true);
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 + "\\Newtonsoft.Json.dll", true);
}
catch (Exception) { };
}
else if(version.StartsWith("2."))
{
try
{
File.Copy(@"_gamemaker\\bin\\GMAssetCompiler.exe", @"versions\\" + version + "\\GMAssetCompiler.exe", true);
File.Copy(@"_gamemaker\\bin\\ffmpeg.exe", @"versions\\" + version + "\\ffmpeg.exe", true);
File.Copy(@"_gamemaker\\bin\\Newtonsoft.Json.dll", @"versions\\" + version + "\\Newtonsoft.Json.dll", true);
File.Copy(@"_gamemaker\\bin\\BouncyCastle.Crypto.dll", @"versions\\" + version + "\\BouncyCastle.Crypto.dll", true);
File.Copy(@"_gamemaker\\bin\\spine-csharp.dll", @"versions\\" + version + "\\spine-csharp.dll", true);
File.Copy(@"_gamemaker\\bin\\SharpCompress.dll", @"versions\\" + version + "\\SharpCompress.dll", true);
File.Copy(@"_gamemaker\\bin\\Ionic.Zip.Reduced.dll", @"versions\\" + version + "\\Ionic.Zip.Reduced.dll", true);
}
catch (Exception) { };
}
CopyDir(@"Runner", @"versions\\" + version + "\\Runner");
if(version.StartsWith("1."))
{
CopyDir(@"_gamemaker\\Shaders", @"versions\\" + version + "\\Shaders");
}
else if(version.StartsWith("2."))
{
CopyDir(@"_gamemaker\\bin\Shaders", @"versions\\" + version + "\\Shaders");
CopyDir(@"_gamemaker\\BaseProject", @"versions\\" + version + "\\BaseProject");
CopyDir(@"_ps4\\BaseProject", @"versions\\" + version + "\\BaseProject");
}
File.Delete(@"versions\\" + version + "\\Runner\\eboot.bin");
try
{
File.Copy(@"_ps4\\PS4\\PSSL_PShaderCommon.shader", @"versions\\" + version + "\\Shaders\\PSSL_PShaderCommon.shade", true);
File.Copy(@"_ps4\\PS4\\PSSL_VShaderCommon.shader", @"versions\\" + version + "\\Shaders\\PSSL_VShaderCommon.shader", true);
File.Copy(@"_ps4\\PS4\\HLSL_to_PSSL.h", @"versions\\" + version + "\\Shaders\\HLSL_to_PSSL.h", true);
}
catch (Exception){ };
});
copyThread.Start();
while (copyThread.IsAlive)
Application.DoEvents();
if(version.StartsWith("2.") || version == "1.4.9999")
{
DownloadProgress.Style = ProgressBarStyle.Marquee;
StatusText.Text = "Applying SceVerDown Magic (by dots_tb)...";
Application.DoEvents();
ELF.Tools.SceVerDown(@"_ps4\\PS4\\PS4Runner.elf", 0x05008001);
}
DownloadProgress.Style = ProgressBarStyle.Marquee;
StatusText.Text = "Running Make FSELF (by flat_z)...";
Application.DoEvents();
ELF.Tools.MakeFself(@"_ps4\\PS4\\PS4Runner.elf", @"versions\\" + version + "\\Runner\\eboot.bin");
DownloadProgress.Style = ProgressBarStyle.Marquee;
StatusText.Text = "Deleting Unused Files...";
Application.DoEvents();
Thread deleteThread = new Thread(() =>
{
while(true)
{
try
{
Directory.Delete(@"_ps4", true);
Directory.Delete(@"_gamemaker", true);
}
catch (Exception) { };
break;
}
});
deleteThread.Start();
while (deleteThread.IsAlive)
Application.DoEvents();
DownloadProgress.Style = ProgressBarStyle.Continuous;
DownloadProgress.Value = 0;
StatusText.Text = "Waiting...";
DownloadedList.Items.Add(version);
DownloadList.Items.Remove(version);
DownloadList.Enabled = true;
DownloadButton.Enabled = true;
ControlBox = true;
}
}
}
private void DeleteVersion_Click(object sender, EventArgs e)
{
if (DownloadedList.SelectedIndex == -1) { return; }
string toRemove = DownloadedList.SelectedItem.ToString();
if (toRemove == "1.4.9999")
{
MessageBox.Show("Cannot delete builtin 1.4.9999 version!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
else
{
if (Directory.Exists(@"versions\\" + toRemove))
{
while (true)
{
try
{
Directory.Delete(@"versions\\" + toRemove, true);
}
catch (Exception) { };
break;
}
}
DownloadedList.Items.Remove(toRemove);
DownloadList.Items.Add(toRemove);
}
}
}
}

View File

@ -0,0 +1,337 @@
<?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.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAEAAAAAAAEAIABtMQAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAEAAAABAAgGAAAAXHKoZgAAMTRJ
REFUeNrtvXl0VFea4Pm7b4lNsUhoQQIhJBYBEjtmsQEveEmcmd6zndld7sp0ujqrO2c51TM9M6fPzDlV
Z/6YmqnuOXN6eqazKitr6vT0dOXJxbszbSd2GjA2q8F2ogUhgRZAElojFHvEe2/+CEVYCG2ADUb6fueE
jbZY3nvf7917v+/eCwuPYuD3gHOzj+eeey4Tj8dtZwLJZNL67ne/m7qV5x1/jAKvAf8MWAWYC/AcCbcJ
Qw7B144Q8BTwGNANHAHeB44Cl4GMHCJBBDD/8QJrxh8vAF0TZPCxyEAQASwc3ED9+OOPRAaCCEBkIDIQ
RAAiA5GBIAIQRAaCCEAQGQgiAGEuMngPSS2KAOQQiAxEBiIAQWQgMhABCCIDkYEIQBAZiAxEAILIQGQg
AhAEkYEIQBBEBiIAQRAZiAAEYY4y+BBZz0AEICxoGbwgMhABCCIDkYEIQBAZiAxEAIIgMhABCILIQAQg
CCIDEYAgiAxEAIIgMhABCILIQAQgCCIDEYAgiAxEAIIgMhABCMItyqAT2XhVBCAsWBlM3Hh1wcpABCCI
DKaWwQHgXWB0Pn94Tc6/IFwng5eA/xvYPt8/sAhAEKaXgUsEIAiCCEAQBBGAIAgiAEEQRACCIIgABEEQ
AQiCIAIQBEEEIAiCCEAQBBGAIAgiAEEQRACCIIgABEEQAQiCIAIQBEEEIAiCCEAQBBGAIAgiAEEQRACC
IIgABEEQAQiCIAIQBEEEIAiCCEAQBBGAIAgiAEEQRACCIIgABEEQAQiCIAIQBEEEIAgiAEEQRACCIIgA
BEEQAQiCIAIQBEEEIAiCCEAAx3HkIAjzAmMhxq/P57NN0wSwpvkdNV2gW5ZFUVGRo5S67mcej8fxeDzo
uo7jOMTjcbnCBBHA14zYT37yk3N1dXUPANnJQ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8VuUlCgiACmMeMAUeAncD/APwc+BW5
dODv5fAIIoD5L4A/B94Y/9oLrCM3PVjmAggigAVACfA2cHnSeZBiIEEEMM+xgVpgB/AKXxQF2RP+LQgi
gHmMAzxObirwqfHvLQOWyKERbjdSB3BnBBAilwZ8HWgA9iJrBQp3AGkB3F708WPuAPcAi8mNB+iASw6P
IAKYv2SBd4EucpN/LOAfAWfI1QMIgghgHmMDfwAOA98FXgReAzzAPyCzAYU7gIwB3D5cwJ8CF8n1+ZuA
nwFXx3/+CLnsgCCIAL5CJi7EcbtZRq4CcBu5vP/AuAg+A9xyOQoigK+eKnKz8u4EXnJlwHkqxx8yFfjr
ybxft3GhjQE0Av8OWC/XtjAH5n115kISwL3kZuF9YyGcWOGW8ZHbvq1IBHD38/h48O+U61q4gdj4E+C/
J5epEQHchejAHwF/Q27WnSDcCB7gX5Fbr8EUAdxduIEfk+vzL5NrWbhJfMD/BPwzcjeUecV8zQIEyJn7
vwH8cg0Lt0gQ+J/JLev+H5lH2YH5KIAy4C/IGVvq64Uvi1Jy27rHye3uLAL4GlID/G/A80iZs/DlUwn8
m3EJvDUfPtB8CpJGcltvfU+CX/gKqQH+D2CfCODrw8QcvyB81awiN7h8rwjgziM5fuFOsB74P4EtIoA7
g+T4hTvNPeMSuGuvv7tVAJLjF74u7Bm/DleIAG4PIXK76fwludSMINxpHiU3MFhzt73xuy0N6AH+a+C/
JNcFSEz4mbrBf9/M7804iUipWecYObf48y/rOb6ur+fcpvf8Zb4nZ/y6eBD4l+RuTvG7JaD+fxt46exd
p639AAAAAElFTkSuQmCC
</value>
</data>
</root>

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-Studio/icon0.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="BouncyCastle" version="1.8.4" targetFramework="net461" />
<package id="DotNetZip" version="1.13.3" targetFramework="net461" />
<package id="HtmlAgilityPack" version="1.9.2" targetFramework="net461" />
</packages>

674
LICENSE
View File

@ -1,674 +0,0 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.

167
LICENSE.md Normal file
View File

@ -0,0 +1,167 @@
This software uses the LibOrbisPkg library. Copyright 2018, 2019 Maxton
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.
"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.

Binary file not shown.

30
Packages/BouncyCastle.1.8.4/README.md vendored Normal file
View File

@ -0,0 +1,30 @@
# The Bouncy Castle Crypto Package For C Sharp
The Bouncy Castle Crypto package is a C\# implementation of cryptographic algorithms and protocols, it was developed by the Legion of the Bouncy Castle, a registered Australian Charity, with a little help! The Legion, and the latest goings on with this package, can be found at [http://www.bouncycastle.org](http://www.bouncycastle.org). In addition to providing basic cryptography algorithms, the package also provides support for CMS, TSP, X.509 certificate generation and a variety of other standards such as OpenPGP.
The Legion also gratefully acknowledges the contributions made to this package by others (see [here](http://www.bouncycastle.org/csharp/contributors.html) for the current list). If you would like to contribute to our efforts please feel free to get in touch with us or visit our [donations page](https://www.bouncycastle.org/donate), sponsor some specific work, or purchase a support contract through [Crypto Workshop](http://www.cryptoworkshop.com).
Except where otherwise stated, this software is distributed under a license based on the MIT X Consortium license. To view the license, [see here](http://www.bouncycastle.org/licence.html). The OpenPGP library also includes a modified BZIP2 library which is licensed under the [Apache Software License, Version 2.0](http://www.apache.org/licenses/).
**Note**: this source tree is not the FIPS version of the APIs - if you are interested in our FIPS version please contact us directly at [office@bouncycastle.org](mailto:office@bouncycastle.org).
## Mailing Lists
For those who are interested, there are 2 mailing lists for participation in this project. To subscribe use the links below and include the word subscribe in the message body. (To unsubscribe, replace **subscribe** with **unsubscribe** in the message body)
* [announce-crypto-csharp-request@bouncycastle.org](mailto:announce-crypto-csharp-request@bouncycastle.org)
This mailing list is for new release announcements only, general subscribers cannot post to it.
* [dev-crypto-csharp-request@bouncycastle.org](mailto:dev-crypto-csharp-request@bouncycastle.org)
This mailing list is for discussion of development of the package. This includes bugs, comments, requests for enhancements, questions about use or operation.
**NOTE:**You need to be subscribed to send mail to the above mailing list.
## Feedback
If you want to provide feedback directly to the members of **The Legion** then please use [feedback-crypto@bouncycastle.org](mailto:feedback-crypto@bouncycastle.org), if you want to help this project survive please consider [donating](https://www.bouncycastle.org/donate).
For bug reporting/requests you can report issues here on github, via feedback-crypto if required, and we also have a [Jira issue tracker](http://www.bouncycastle.org/jira). We will accept pull requests based on this repository as well.
## Finally
Enjoy!

Binary file not shown.

BIN
Packages/DotNetZip.1.13.3/.signature.p7s vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,996 @@
{
"runtimeTarget": {
"name": ".NETStandard,Version=v2.0/",
"signature": "736d1c99e55ff4bbcec0fbaa1ab3cc51b8f9be8d"
},
"compilationOptions": {},
"targets": {
".NETStandard,Version=v2.0": {},
".NETStandard,Version=v2.0/": {
"HtmlAgilityPack/1.9.2": {
"dependencies": {
"NETStandard.Library": "2.0.3",
"System.Net.Http": "4.3.2",
"System.Xml.XPath": "4.3.0",
"System.Xml.XPath.XmlDocument": "4.3.0",
"System.Xml.XmlDocument": "4.3.0"
},
"runtime": {
"HtmlAgilityPack.dll": {}
}
},
"Microsoft.NETCore.Platforms/1.1.0": {},
"Microsoft.NETCore.Targets/1.1.0": {},
"NETStandard.Library/2.0.3": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0"
}
},
"runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl/4.3.0": {},
"runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl/4.3.0": {},
"runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl/4.3.0": {},
"runtime.native.System/4.3.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0"
}
},
"runtime.native.System.Net.Http/4.3.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0"
}
},
"runtime.native.System.Security.Cryptography.Apple/4.3.0": {
"dependencies": {
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": "4.3.0"
}
},
"runtime.native.System.Security.Cryptography.OpenSsl/4.3.0": {
"dependencies": {
"runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0",
"runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0",
"runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0",
"runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0",
"runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0",
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0",
"runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0",
"runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0",
"runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0",
"runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0"
}
},
"runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl/4.3.0": {},
"runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl/4.3.0": {},
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple/4.3.0": {},
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl/4.3.0": {},
"runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl/4.3.0": {},
"runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl/4.3.0": {},
"runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl/4.3.0": {},
"runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl/4.3.0": {},
"System.Collections/4.3.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Runtime": "4.3.0"
}
},
"System.Collections.Concurrent/4.3.0": {
"dependencies": {
"System.Collections": "4.3.0",
"System.Diagnostics.Debug": "4.3.0",
"System.Diagnostics.Tracing": "4.3.0",
"System.Globalization": "4.3.0",
"System.Reflection": "4.3.0",
"System.Resources.ResourceManager": "4.3.0",
"System.Runtime": "4.3.0",
"System.Runtime.Extensions": "4.3.0",
"System.Threading": "4.3.0",
"System.Threading.Tasks": "4.3.0"
},
"runtime": {
"lib/netstandard1.3/System.Collections.Concurrent.dll": {
"assemblyVersion": "4.0.13.0",
"fileVersion": "4.6.24705.1"
}
}
},
"System.Diagnostics.Debug/4.3.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Runtime": "4.3.0"
}
},
"System.Diagnostics.DiagnosticSource/4.3.0": {
"dependencies": {
"System.Collections": "4.3.0",
"System.Diagnostics.Tracing": "4.3.0",
"System.Reflection": "4.3.0",
"System.Runtime": "4.3.0",
"System.Threading": "4.3.0"
},
"runtime": {
"lib/netstandard1.3/System.Diagnostics.DiagnosticSource.dll": {
"assemblyVersion": "4.0.1.0",
"fileVersion": "4.6.24705.1"
}
}
},
"System.Diagnostics.Tracing/4.3.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Runtime": "4.3.0"
}
},
"System.Globalization/4.3.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Runtime": "4.3.0"
}
},
"System.Globalization.Calendars/4.3.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Globalization": "4.3.0",
"System.Runtime": "4.3.0"
}
},
"System.Globalization.Extensions/4.3.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"System.Globalization": "4.3.0",
"System.Resources.ResourceManager": "4.3.0",
"System.Runtime": "4.3.0",
"System.Runtime.Extensions": "4.3.0",
"System.Runtime.InteropServices": "4.3.0"
}
},
"System.IO/4.3.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Runtime": "4.3.0",
"System.Text.Encoding": "4.3.0",
"System.Threading.Tasks": "4.3.0"
}
},
"System.IO.FileSystem/4.3.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.IO": "4.3.0",
"System.IO.FileSystem.Primitives": "4.3.0",
"System.Runtime": "4.3.0",
"System.Runtime.Handles": "4.3.0",
"System.Text.Encoding": "4.3.0",
"System.Threading.Tasks": "4.3.0"
}
},
"System.IO.FileSystem.Primitives/4.3.0": {
"dependencies": {
"System.Runtime": "4.3.0"
},
"runtime": {
"lib/netstandard1.3/System.IO.FileSystem.Primitives.dll": {
"assemblyVersion": "4.0.2.0",
"fileVersion": "4.6.24705.1"
}
}
},
"System.Linq/4.3.0": {
"dependencies": {
"System.Collections": "4.3.0",
"System.Diagnostics.Debug": "4.3.0",
"System.Resources.ResourceManager": "4.3.0",
"System.Runtime": "4.3.0",
"System.Runtime.Extensions": "4.3.0"
},
"runtime": {
"lib/netstandard1.6/System.Linq.dll": {
"assemblyVersion": "4.1.1.0",
"fileVersion": "4.6.24705.1"
}
}
},
"System.Net.Http/4.3.2": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"System.Collections": "4.3.0",
"System.Diagnostics.Debug": "4.3.0",
"System.Diagnostics.DiagnosticSource": "4.3.0",
"System.Diagnostics.Tracing": "4.3.0",
"System.Globalization": "4.3.0",
"System.Globalization.Extensions": "4.3.0",
"System.IO": "4.3.0",
"System.IO.FileSystem": "4.3.0",
"System.Net.Primitives": "4.3.0",
"System.Resources.ResourceManager": "4.3.0",
"System.Runtime": "4.3.0",
"System.Runtime.Extensions": "4.3.0",
"System.Runtime.Handles": "4.3.0",
"System.Runtime.InteropServices": "4.3.0",
"System.Security.Cryptography.Algorithms": "4.3.0",
"System.Security.Cryptography.Encoding": "4.3.0",
"System.Security.Cryptography.OpenSsl": "4.3.0",
"System.Security.Cryptography.Primitives": "4.3.0",
"System.Security.Cryptography.X509Certificates": "4.3.0",
"System.Text.Encoding": "4.3.0",
"System.Threading": "4.3.0",
"System.Threading.Tasks": "4.3.0",
"runtime.native.System": "4.3.0",
"runtime.native.System.Net.Http": "4.3.0",
"runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0"
}
},
"System.Net.Primitives/4.3.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Runtime": "4.3.0",
"System.Runtime.Handles": "4.3.0"
}
},
"System.Reflection/4.3.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.IO": "4.3.0",
"System.Reflection.Primitives": "4.3.0",
"System.Runtime": "4.3.0"
}
},
"System.Reflection.Primitives/4.3.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Runtime": "4.3.0"
}
},
"System.Resources.ResourceManager/4.3.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Globalization": "4.3.0",
"System.Reflection": "4.3.0",
"System.Runtime": "4.3.0"
}
},
"System.Runtime/4.3.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0"
}
},
"System.Runtime.Extensions/4.3.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Runtime": "4.3.0"
}
},
"System.Runtime.Handles/4.3.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Runtime": "4.3.0"
}
},
"System.Runtime.InteropServices/4.3.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Reflection": "4.3.0",
"System.Reflection.Primitives": "4.3.0",
"System.Runtime": "4.3.0",
"System.Runtime.Handles": "4.3.0"
}
},
"System.Runtime.Numerics/4.3.0": {
"dependencies": {
"System.Globalization": "4.3.0",
"System.Resources.ResourceManager": "4.3.0",
"System.Runtime": "4.3.0",
"System.Runtime.Extensions": "4.3.0"
},
"runtime": {
"lib/netstandard1.3/System.Runtime.Numerics.dll": {
"assemblyVersion": "4.0.2.0",
"fileVersion": "4.6.24705.1"
}
}
},
"System.Security.Cryptography.Algorithms/4.3.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"System.Collections": "4.3.0",
"System.IO": "4.3.0",
"System.Resources.ResourceManager": "4.3.0",
"System.Runtime": "4.3.0",
"System.Runtime.Extensions": "4.3.0",
"System.Runtime.Handles": "4.3.0",
"System.Runtime.InteropServices": "4.3.0",
"System.Runtime.Numerics": "4.3.0",
"System.Security.Cryptography.Encoding": "4.3.0",
"System.Security.Cryptography.Primitives": "4.3.0",
"System.Text.Encoding": "4.3.0",
"runtime.native.System.Security.Cryptography.Apple": "4.3.0",
"runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0"
}
},
"System.Security.Cryptography.Cng/4.3.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"System.IO": "4.3.0",
"System.Resources.ResourceManager": "4.3.0",
"System.Runtime": "4.3.0",
"System.Runtime.Extensions": "4.3.0",
"System.Runtime.Handles": "4.3.0",
"System.Runtime.InteropServices": "4.3.0",
"System.Security.Cryptography.Algorithms": "4.3.0",
"System.Security.Cryptography.Encoding": "4.3.0",
"System.Security.Cryptography.Primitives": "4.3.0",
"System.Text.Encoding": "4.3.0"
}
},
"System.Security.Cryptography.Csp/4.3.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"System.IO": "4.3.0",
"System.Reflection": "4.3.0",
"System.Resources.ResourceManager": "4.3.0",
"System.Runtime": "4.3.0",
"System.Runtime.Extensions": "4.3.0",
"System.Runtime.Handles": "4.3.0",
"System.Runtime.InteropServices": "4.3.0",
"System.Security.Cryptography.Algorithms": "4.3.0",
"System.Security.Cryptography.Encoding": "4.3.0",
"System.Security.Cryptography.Primitives": "4.3.0",
"System.Text.Encoding": "4.3.0",
"System.Threading": "4.3.0"
}
},
"System.Security.Cryptography.Encoding/4.3.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"System.Collections": "4.3.0",
"System.Collections.Concurrent": "4.3.0",
"System.Linq": "4.3.0",
"System.Resources.ResourceManager": "4.3.0",
"System.Runtime": "4.3.0",
"System.Runtime.Extensions": "4.3.0",
"System.Runtime.Handles": "4.3.0",
"System.Runtime.InteropServices": "4.3.0",
"System.Security.Cryptography.Primitives": "4.3.0",
"System.Text.Encoding": "4.3.0",
"runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0"
}
},
"System.Security.Cryptography.OpenSsl/4.3.0": {
"dependencies": {
"System.Collections": "4.3.0",
"System.IO": "4.3.0",
"System.Resources.ResourceManager": "4.3.0",
"System.Runtime": "4.3.0",
"System.Runtime.Extensions": "4.3.0",
"System.Runtime.Handles": "4.3.0",
"System.Runtime.InteropServices": "4.3.0",
"System.Runtime.Numerics": "4.3.0",
"System.Security.Cryptography.Algorithms": "4.3.0",
"System.Security.Cryptography.Encoding": "4.3.0",
"System.Security.Cryptography.Primitives": "4.3.0",
"System.Text.Encoding": "4.3.0",
"runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0"
},
"runtime": {
"lib/netstandard1.6/System.Security.Cryptography.OpenSsl.dll": {
"assemblyVersion": "4.0.0.0",
"fileVersion": "1.0.24212.1"
}
}
},
"System.Security.Cryptography.Primitives/4.3.0": {
"dependencies": {
"System.Diagnostics.Debug": "4.3.0",
"System.Globalization": "4.3.0",
"System.IO": "4.3.0",
"System.Resources.ResourceManager": "4.3.0",
"System.Runtime": "4.3.0",
"System.Threading": "4.3.0",
"System.Threading.Tasks": "4.3.0"
},
"runtime": {
"lib/netstandard1.3/System.Security.Cryptography.Primitives.dll": {
"assemblyVersion": "4.0.1.0",
"fileVersion": "4.6.24705.1"
}
}
},
"System.Security.Cryptography.X509Certificates/4.3.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"System.Collections": "4.3.0",
"System.Diagnostics.Debug": "4.3.0",
"System.Globalization": "4.3.0",
"System.Globalization.Calendars": "4.3.0",
"System.IO": "4.3.0",
"System.IO.FileSystem": "4.3.0",
"System.IO.FileSystem.Primitives": "4.3.0",
"System.Resources.ResourceManager": "4.3.0",
"System.Runtime": "4.3.0",
"System.Runtime.Extensions": "4.3.0",
"System.Runtime.Handles": "4.3.0",
"System.Runtime.InteropServices": "4.3.0",
"System.Runtime.Numerics": "4.3.0",
"System.Security.Cryptography.Algorithms": "4.3.0",
"System.Security.Cryptography.Cng": "4.3.0",
"System.Security.Cryptography.Csp": "4.3.0",
"System.Security.Cryptography.Encoding": "4.3.0",
"System.Security.Cryptography.OpenSsl": "4.3.0",
"System.Security.Cryptography.Primitives": "4.3.0",
"System.Text.Encoding": "4.3.0",
"System.Threading": "4.3.0",
"runtime.native.System": "4.3.0",
"runtime.native.System.Net.Http": "4.3.0",
"runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0"
}
},
"System.Text.Encoding/4.3.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Runtime": "4.3.0"
}
},
"System.Text.Encoding.Extensions/4.3.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Runtime": "4.3.0",
"System.Text.Encoding": "4.3.0"
}
},
"System.Text.RegularExpressions/4.3.0": {
"dependencies": {
"System.Collections": "4.3.0",
"System.Globalization": "4.3.0",
"System.Resources.ResourceManager": "4.3.0",
"System.Runtime": "4.3.0",
"System.Runtime.Extensions": "4.3.0",
"System.Threading": "4.3.0"
},
"runtime": {
"lib/netstandard1.6/System.Text.RegularExpressions.dll": {
"assemblyVersion": "4.1.1.0",
"fileVersion": "4.6.24705.1"
}
}
},
"System.Threading/4.3.0": {
"dependencies": {
"System.Runtime": "4.3.0",
"System.Threading.Tasks": "4.3.0"
},
"runtime": {
"lib/netstandard1.3/System.Threading.dll": {
"assemblyVersion": "4.0.12.0",
"fileVersion": "4.6.24705.1"
}
}
},
"System.Threading.Tasks/4.3.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Runtime": "4.3.0"
}
},
"System.Threading.Tasks.Extensions/4.3.0": {
"dependencies": {
"System.Collections": "4.3.0",
"System.Runtime": "4.3.0",
"System.Threading.Tasks": "4.3.0"
},
"runtime": {
"lib/netstandard1.0/System.Threading.Tasks.Extensions.dll": {
"assemblyVersion": "4.1.0.0",
"fileVersion": "4.6.24705.1"
}
}
},
"System.Xml.ReaderWriter/4.3.0": {
"dependencies": {
"System.Collections": "4.3.0",
"System.Diagnostics.Debug": "4.3.0",
"System.Globalization": "4.3.0",
"System.IO": "4.3.0",
"System.IO.FileSystem": "4.3.0",
"System.IO.FileSystem.Primitives": "4.3.0",
"System.Resources.ResourceManager": "4.3.0",
"System.Runtime": "4.3.0",
"System.Runtime.Extensions": "4.3.0",
"System.Runtime.InteropServices": "4.3.0",
"System.Text.Encoding": "4.3.0",
"System.Text.Encoding.Extensions": "4.3.0",
"System.Text.RegularExpressions": "4.3.0",
"System.Threading.Tasks": "4.3.0",
"System.Threading.Tasks.Extensions": "4.3.0"
},
"runtime": {
"lib/netstandard1.3/System.Xml.ReaderWriter.dll": {
"assemblyVersion": "4.1.0.0",
"fileVersion": "4.6.24705.1"
}
}
},
"System.Xml.XmlDocument/4.3.0": {
"dependencies": {
"System.Collections": "4.3.0",
"System.Diagnostics.Debug": "4.3.0",
"System.Globalization": "4.3.0",
"System.IO": "4.3.0",
"System.Resources.ResourceManager": "4.3.0",
"System.Runtime": "4.3.0",
"System.Runtime.Extensions": "4.3.0",
"System.Text.Encoding": "4.3.0",
"System.Threading": "4.3.0",
"System.Xml.ReaderWriter": "4.3.0"
},
"runtime": {
"lib/netstandard1.3/System.Xml.XmlDocument.dll": {
"assemblyVersion": "4.0.2.0",
"fileVersion": "4.6.24705.1"
}
}
},
"System.Xml.XPath/4.3.0": {
"dependencies": {
"System.Collections": "4.3.0",
"System.Diagnostics.Debug": "4.3.0",
"System.Globalization": "4.3.0",
"System.IO": "4.3.0",
"System.Resources.ResourceManager": "4.3.0",
"System.Runtime": "4.3.0",
"System.Runtime.Extensions": "4.3.0",
"System.Threading": "4.3.0",
"System.Xml.ReaderWriter": "4.3.0"
},
"runtime": {
"lib/netstandard1.3/System.Xml.XPath.dll": {
"assemblyVersion": "4.0.2.0",
"fileVersion": "4.6.24705.1"
}
}
},
"System.Xml.XPath.XmlDocument/4.3.0": {
"dependencies": {
"System.Collections": "4.3.0",
"System.Globalization": "4.3.0",
"System.IO": "4.3.0",
"System.Resources.ResourceManager": "4.3.0",
"System.Runtime": "4.3.0",
"System.Runtime.Extensions": "4.3.0",
"System.Threading": "4.3.0",
"System.Xml.ReaderWriter": "4.3.0",
"System.Xml.XPath": "4.3.0",
"System.Xml.XmlDocument": "4.3.0"
},
"runtime": {
"lib/netstandard1.3/System.Xml.XPath.XmlDocument.dll": {
"assemblyVersion": "4.0.2.0",
"fileVersion": "4.6.24705.1"
}
}
}
}
},
"libraries": {
"HtmlAgilityPack/1.9.2": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"Microsoft.NETCore.Platforms/1.1.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==",
"path": "microsoft.netcore.platforms/1.1.0",
"hashPath": "microsoft.netcore.platforms.1.1.0.nupkg.sha512"
},
"Microsoft.NETCore.Targets/1.1.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-aOZA3BWfz9RXjpzt0sRJJMjAscAUm3Hoa4UWAfceV9UTYxgwZ1lZt5nO2myFf+/jetYQo4uTP7zS8sJY67BBxg==",
"path": "microsoft.netcore.targets/1.1.0",
"hashPath": "microsoft.netcore.targets.1.1.0.nupkg.sha512"
},
"NETStandard.Library/2.0.3": {
"type": "package",
"serviceable": true,
"sha512": "sha512-st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==",
"path": "netstandard.library/2.0.3",
"hashPath": "netstandard.library.2.0.3.nupkg.sha512"
},
"runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-HdSSp5MnJSsg08KMfZThpuLPJpPwE5hBXvHwoKWosyHHfe8Mh5WKT0ylEOf6yNzX6Ngjxe4Whkafh5q7Ymac4Q==",
"path": "runtime.debian.8-x64.runtime.native.system.security.cryptography.openssl/4.3.0",
"hashPath": "runtime.debian.8-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512"
},
"runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-+yH1a49wJMy8Zt4yx5RhJrxO/DBDByAiCzNwiETI+1S4mPdCu0OY4djdciC7Vssk0l22wQaDLrXxXkp+3+7bVA==",
"path": "runtime.fedora.23-x64.runtime.native.system.security.cryptography.openssl/4.3.0",
"hashPath": "runtime.fedora.23-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512"
},
"runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-c3YNH1GQJbfIPJeCnr4avseugSqPrxwIqzthYyZDN6EuOyNOzq+y2KSUfRcXauya1sF4foESTgwM5e1A8arAKw==",
"path": "runtime.fedora.24-x64.runtime.native.system.security.cryptography.openssl/4.3.0",
"hashPath": "runtime.fedora.24-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512"
},
"runtime.native.System/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-c/qWt2LieNZIj1jGnVNsE2Kl23Ya2aSTBuXMD6V7k9KWr6l16Tqdwq+hJScEpWER9753NWC8h96PaVNY5Ld7Jw==",
"path": "runtime.native.system/4.3.0",
"hashPath": "runtime.native.system.4.3.0.nupkg.sha512"
},
"runtime.native.System.Net.Http/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-ZVuZJqnnegJhd2k/PtAbbIcZ3aZeITq3sj06oKfMBSfphW3HDmk/t4ObvbOk/JA/swGR0LNqMksAh/f7gpTROg==",
"path": "runtime.native.system.net.http/4.3.0",
"hashPath": "runtime.native.system.net.http.4.3.0.nupkg.sha512"
},
"runtime.native.System.Security.Cryptography.Apple/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-DloMk88juo0OuOWr56QG7MNchmafTLYWvABy36izkrLI5VledI0rq28KGs1i9wbpeT9NPQrx/wTf8U2vazqQ3Q==",
"path": "runtime.native.system.security.cryptography.apple/4.3.0",
"hashPath": "runtime.native.system.security.cryptography.apple.4.3.0.nupkg.sha512"
},
"runtime.native.System.Security.Cryptography.OpenSsl/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-NS1U+700m4KFRHR5o4vo9DSlTmlCKu/u7dtE5sUHVIPB+xpXxYQvgBgA6wEIeCz6Yfn0Z52/72WYsToCEPJnrw==",
"path": "runtime.native.system.security.cryptography.openssl/4.3.0",
"hashPath": "runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512"
},
"runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-b3pthNgxxFcD+Pc0WSEoC0+md3MyhRS6aCEeenvNE3Fdw1HyJ18ZhRFVJJzIeR/O/jpxPboB805Ho0T3Ul7w8A==",
"path": "runtime.opensuse.13.2-x64.runtime.native.system.security.cryptography.openssl/4.3.0",
"hashPath": "runtime.opensuse.13.2-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512"
},
"runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-KeLz4HClKf+nFS7p/6Fi/CqyLXh81FpiGzcmuS8DGi9lUqSnZ6Es23/gv2O+1XVGfrbNmviF7CckBpavkBoIFQ==",
"path": "runtime.opensuse.42.1-x64.runtime.native.system.security.cryptography.openssl/4.3.0",
"hashPath": "runtime.opensuse.42.1-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512"
},
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-kVXCuMTrTlxq4XOOMAysuNwsXWpYeboGddNGpIgNSZmv1b6r/s/DPk0fYMB7Q5Qo4bY68o48jt4T4y5BVecbCQ==",
"path": "runtime.osx.10.10-x64.runtime.native.system.security.cryptography.apple/4.3.0",
"hashPath": "runtime.osx.10.10-x64.runtime.native.system.security.cryptography.apple.4.3.0.nupkg.sha512"
},
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-X7IdhILzr4ROXd8mI1BUCQMSHSQwelUlBjF1JyTKCjXaOGn2fB4EKBxQbCK2VjO3WaWIdlXZL3W6TiIVnrhX4g==",
"path": "runtime.osx.10.10-x64.runtime.native.system.security.cryptography.openssl/4.3.0",
"hashPath": "runtime.osx.10.10-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512"
},
"runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-nyFNiCk/r+VOiIqreLix8yN+q3Wga9+SE8BCgkf+2BwEKiNx6DyvFjCgkfV743/grxv8jHJ8gUK4XEQw7yzRYg==",
"path": "runtime.rhel.7-x64.runtime.native.system.security.cryptography.openssl/4.3.0",
"hashPath": "runtime.rhel.7-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512"
},
"runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-ytoewC6wGorL7KoCAvRfsgoJPJbNq+64k2SqW6JcOAebWsFUvCCYgfzQMrnpvPiEl4OrblUlhF2ji+Q1+SVLrQ==",
"path": "runtime.ubuntu.14.04-x64.runtime.native.system.security.cryptography.openssl/4.3.0",
"hashPath": "runtime.ubuntu.14.04-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512"
},
"runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-I8bKw2I8k58Wx7fMKQJn2R8lamboCAiHfHeV/pS65ScKWMMI0+wJkLYlEKvgW1D/XvSl/221clBoR2q9QNNM7A==",
"path": "runtime.ubuntu.16.04-x64.runtime.native.system.security.cryptography.openssl/4.3.0",
"hashPath": "runtime.ubuntu.16.04-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512"
},
"runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-VB5cn/7OzUfzdnC8tqAIMQciVLiq2epm2NrAm1E9OjNRyG4lVhfR61SMcLizejzQP8R8Uf/0l5qOIbUEi+RdEg==",
"path": "runtime.ubuntu.16.10-x64.runtime.native.system.security.cryptography.openssl/4.3.0",
"hashPath": "runtime.ubuntu.16.10-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512"
},
"System.Collections/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-3Dcj85/TBdVpL5Zr+gEEBUuFe2icOnLalmEh9hfck1PTYbbyWuZgh4fmm2ysCLTrqLQw6t3TgTyJ+VLp+Qb+Lw==",
"path": "system.collections/4.3.0",
"hashPath": "system.collections.4.3.0.nupkg.sha512"
},
"System.Collections.Concurrent/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-ztl69Xp0Y/UXCL+3v3tEU+lIy+bvjKNUmopn1wep/a291pVPK7dxBd6T7WnlQqRog+d1a/hSsgRsmFnIBKTPLQ==",
"path": "system.collections.concurrent/4.3.0",
"hashPath": "system.collections.concurrent.4.3.0.nupkg.sha512"
},
"System.Diagnostics.Debug/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-ZUhUOdqmaG5Jk3Xdb8xi5kIyQYAA4PnTNlHx1mu9ZY3qv4ELIdKbnL/akbGaKi2RnNUWaZsAs31rvzFdewTj2g==",
"path": "system.diagnostics.debug/4.3.0",
"hashPath": "system.diagnostics.debug.4.3.0.nupkg.sha512"
},
"System.Diagnostics.DiagnosticSource/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-tD6kosZnTAGdrEa0tZSuFyunMbt/5KYDnHdndJYGqZoNy00XVXyACd5d6KnE1YgYv3ne2CjtAfNXo/fwEhnKUA==",
"path": "system.diagnostics.diagnosticsource/4.3.0",
"hashPath": "system.diagnostics.diagnosticsource.4.3.0.nupkg.sha512"
},
"System.Diagnostics.Tracing/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-rswfv0f/Cqkh78rA5S8eN8Neocz234+emGCtTF3lxPY96F+mmmUen6tbn0glN6PMvlKQb9bPAY5e9u7fgPTkKw==",
"path": "system.diagnostics.tracing/4.3.0",
"hashPath": "system.diagnostics.tracing.4.3.0.nupkg.sha512"
},
"System.Globalization/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-kYdVd2f2PAdFGblzFswE4hkNANJBKRmsfa2X5LG2AcWE1c7/4t0pYae1L8vfZ5xvE2nK/R9JprtToA61OSHWIg==",
"path": "system.globalization/4.3.0",
"hashPath": "system.globalization.4.3.0.nupkg.sha512"
},
"System.Globalization.Calendars/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-GUlBtdOWT4LTV3I+9/PJW+56AnnChTaOqqTLFtdmype/L500M2LIyXgmtd9X2P2VOkmJd5c67H5SaC2QcL1bFA==",
"path": "system.globalization.calendars/4.3.0",
"hashPath": "system.globalization.calendars.4.3.0.nupkg.sha512"
},
"System.Globalization.Extensions/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-FhKmdR6MPG+pxow6wGtNAWdZh7noIOpdD5TwQ3CprzgIE1bBBoim0vbR1+AWsWjQmU7zXHgQo4TWSP6lCeiWcQ==",
"path": "system.globalization.extensions/4.3.0",
"hashPath": "system.globalization.extensions.4.3.0.nupkg.sha512"
},
"System.IO/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-3qjaHvxQPDpSOYICjUoTsmoq5u6QJAFRUITgeT/4gqkF1bajbSmb1kwSxEA8AHlofqgcKJcM8udgieRNhaJ5Cg==",
"path": "system.io/4.3.0",
"hashPath": "system.io.4.3.0.nupkg.sha512"
},
"System.IO.FileSystem/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-3wEMARTnuio+ulnvi+hkRNROYwa1kylvYahhcLk4HSoVdl+xxTFVeVlYOfLwrDPImGls0mDqbMhrza8qnWPTdA==",
"path": "system.io.filesystem/4.3.0",
"hashPath": "system.io.filesystem.4.3.0.nupkg.sha512"
},
"System.IO.FileSystem.Primitives/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-6QOb2XFLch7bEc4lIcJH49nJN2HV+OC3fHDgsLVsBVBk3Y4hFAnOBGzJ2lUu7CyDDFo9IBWkSsnbkT6IBwwiMw==",
"path": "system.io.filesystem.primitives/4.3.0",
"hashPath": "system.io.filesystem.primitives.4.3.0.nupkg.sha512"
},
"System.Linq/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-5DbqIUpsDp0dFftytzuMmc0oeMdQwjcP/EWxsksIz/w1TcFRkZ3yKKz0PqiYFMmEwPSWw+qNVqD7PJ889JzHbw==",
"path": "system.linq/4.3.0",
"hashPath": "system.linq.4.3.0.nupkg.sha512"
},
"System.Net.Http/4.3.2": {
"type": "package",
"serviceable": true,
"sha512": "sha512-y7hv0o0weI0j0mvEcBOdt1F3CAADiWlcw3e54m8TfYiRmBPDIsHElx8QUPDlY4x6yWXKPGN0Z2TuXCTPgkm5WQ==",
"path": "system.net.http/4.3.2",
"hashPath": "system.net.http.4.3.2.nupkg.sha512"
},
"System.Net.Primitives/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-qOu+hDwFwoZPbzPvwut2qATe3ygjeQBDQj91xlsaqGFQUI5i4ZnZb8yyQuLGpDGivEPIt8EJkd1BVzVoP31FXA==",
"path": "system.net.primitives/4.3.0",
"hashPath": "system.net.primitives.4.3.0.nupkg.sha512"
},
"System.Reflection/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-KMiAFoW7MfJGa9nDFNcfu+FpEdiHpWgTcS2HdMpDvt9saK3y/G4GwprPyzqjFH9NTaGPQeWNHU+iDlDILj96aQ==",
"path": "system.reflection/4.3.0",
"hashPath": "system.reflection.4.3.0.nupkg.sha512"
},
"System.Reflection.Primitives/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-5RXItQz5As4xN2/YUDxdpsEkMhvw3e6aNveFXUn4Hl/udNTCNhnKp8lT9fnc3MhvGKh1baak5CovpuQUXHAlIA==",
"path": "system.reflection.primitives/4.3.0",
"hashPath": "system.reflection.primitives.4.3.0.nupkg.sha512"
},
"System.Resources.ResourceManager/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-/zrcPkkWdZmI4F92gL/TPumP98AVDu/Wxr3CSJGQQ+XN6wbRZcyfSKVoPo17ilb3iOr0cCRqJInGwNMolqhS8A==",
"path": "system.resources.resourcemanager/4.3.0",
"hashPath": "system.resources.resourcemanager.4.3.0.nupkg.sha512"
},
"System.Runtime/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-JufQi0vPQ0xGnAczR13AUFglDyVYt4Kqnz1AZaiKZ5+GICq0/1MH/mO/eAJHt/mHW1zjKBJd7kV26SrxddAhiw==",
"path": "system.runtime/4.3.0",
"hashPath": "system.runtime.4.3.0.nupkg.sha512"
},
"System.Runtime.Extensions/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-guW0uK0fn5fcJJ1tJVXYd7/1h5F+pea1r7FLSOz/f8vPEqbR2ZAknuRDvTQ8PzAilDveOxNjSfr0CHfIQfFk8g==",
"path": "system.runtime.extensions/4.3.0",
"hashPath": "system.runtime.extensions.4.3.0.nupkg.sha512"
},
"System.Runtime.Handles/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-OKiSUN7DmTWeYb3l51A7EYaeNMnvxwE249YtZz7yooT4gOZhmTjIn48KgSsw2k2lYdLgTKNJw/ZIfSElwDRVgg==",
"path": "system.runtime.handles/4.3.0",
"hashPath": "system.runtime.handles.4.3.0.nupkg.sha512"
},
"System.Runtime.InteropServices/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-uv1ynXqiMK8mp1GM3jDqPCFN66eJ5w5XNomaK2XD+TuCroNTLFGeZ+WCmBMcBDyTFKou3P6cR6J/QsaqDp7fGQ==",
"path": "system.runtime.interopservices/4.3.0",
"hashPath": "system.runtime.interopservices.4.3.0.nupkg.sha512"
},
"System.Runtime.Numerics/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-yMH+MfdzHjy17l2KESnPiF2dwq7T+xLnSJar7slyimAkUh/gTrS9/UQOtv7xarskJ2/XDSNvfLGOBQPjL7PaHQ==",
"path": "system.runtime.numerics/4.3.0",
"hashPath": "system.runtime.numerics.4.3.0.nupkg.sha512"
},
"System.Security.Cryptography.Algorithms/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-W1kd2Y8mYSCgc3ULTAZ0hOP2dSdG5YauTb1089T0/kRcN2MpSAW1izOFROrJgxSlMn3ArsgHXagigyi+ibhevg==",
"path": "system.security.cryptography.algorithms/4.3.0",
"hashPath": "system.security.cryptography.algorithms.4.3.0.nupkg.sha512"
},
"System.Security.Cryptography.Cng/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-03idZOqFlsKRL4W+LuCpJ6dBYDUWReug6lZjBa3uJWnk5sPCUXckocevTaUA8iT/MFSrY/2HXkOt753xQ/cf8g==",
"path": "system.security.cryptography.cng/4.3.0",
"hashPath": "system.security.cryptography.cng.4.3.0.nupkg.sha512"
},
"System.Security.Cryptography.Csp/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-X4s/FCkEUnRGnwR3aSfVIkldBmtURMhmexALNTwpjklzxWU7yjMk7GHLKOZTNkgnWnE0q7+BCf9N2LVRWxewaA==",
"path": "system.security.cryptography.csp/4.3.0",
"hashPath": "system.security.cryptography.csp.4.3.0.nupkg.sha512"
},
"System.Security.Cryptography.Encoding/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-1DEWjZZly9ae9C79vFwqaO5kaOlI5q+3/55ohmq/7dpDyDfc8lYe7YVxJUZ5MF/NtbkRjwFRo14yM4OEo9EmDw==",
"path": "system.security.cryptography.encoding/4.3.0",
"hashPath": "system.security.cryptography.encoding.4.3.0.nupkg.sha512"
},
"System.Security.Cryptography.OpenSsl/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-h4CEgOgv5PKVF/HwaHzJRiVboL2THYCou97zpmhjghx5frc7fIvlkY1jL+lnIQyChrJDMNEXS6r7byGif8Cy4w==",
"path": "system.security.cryptography.openssl/4.3.0",
"hashPath": "system.security.cryptography.openssl.4.3.0.nupkg.sha512"
},
"System.Security.Cryptography.Primitives/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-7bDIyVFNL/xKeFHjhobUAQqSpJq9YTOpbEs6mR233Et01STBMXNAc/V+BM6dwYGc95gVh/Zf+iVXWzj3mE8DWg==",
"path": "system.security.cryptography.primitives/4.3.0",
"hashPath": "system.security.cryptography.primitives.4.3.0.nupkg.sha512"
},
"System.Security.Cryptography.X509Certificates/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-t2Tmu6Y2NtJ2um0RtcuhP7ZdNNxXEgUm2JeoA/0NvlMjAhKCnM1NX07TDl3244mVp3QU6LPEhT3HTtH1uF7IYw==",
"path": "system.security.cryptography.x509certificates/4.3.0",
"hashPath": "system.security.cryptography.x509certificates.4.3.0.nupkg.sha512"
},
"System.Text.Encoding/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-BiIg+KWaSDOITze6jGQynxg64naAPtqGHBwDrLaCtixsa5bKiR8dpPOHA7ge3C0JJQizJE+sfkz1wV+BAKAYZw==",
"path": "system.text.encoding/4.3.0",
"hashPath": "system.text.encoding.4.3.0.nupkg.sha512"
},
"System.Text.Encoding.Extensions/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-YVMK0Bt/A43RmwizJoZ22ei2nmrhobgeiYwFzC4YAN+nue8RF6djXDMog0UCn+brerQoYVyaS+ghy9P/MUVcmw==",
"path": "system.text.encoding.extensions/4.3.0",
"hashPath": "system.text.encoding.extensions.4.3.0.nupkg.sha512"
},
"System.Text.RegularExpressions/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-RpT2DA+L660cBt1FssIE9CAGpLFdFPuheB7pLpKpn6ZXNby7jDERe8Ua/Ne2xGiwLVG2JOqziiaVCGDon5sKFA==",
"path": "system.text.regularexpressions/4.3.0",
"hashPath": "system.text.regularexpressions.4.3.0.nupkg.sha512"
},
"System.Threading/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-VkUS0kOBcUf3Wwm0TSbrevDDZ6BlM+b/HRiapRFWjM5O0NS0LviG0glKmFK+hhPDd1XFeSdU1GmlLhb2CoVpIw==",
"path": "system.threading/4.3.0",
"hashPath": "system.threading.4.3.0.nupkg.sha512"
},
"System.Threading.Tasks/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-LbSxKEdOUhVe8BezB/9uOGGppt+nZf6e1VFyw6v3DN6lqitm0OSn2uXMOdtP0M3W4iMcqcivm2J6UgqiwwnXiA==",
"path": "system.threading.tasks/4.3.0",
"hashPath": "system.threading.tasks.4.3.0.nupkg.sha512"
},
"System.Threading.Tasks.Extensions/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-npvJkVKl5rKXrtl1Kkm6OhOUaYGEiF9wFbppFRWSMoApKzt2PiPHT2Bb8a5sAWxprvdOAtvaARS9QYMznEUtug==",
"path": "system.threading.tasks.extensions/4.3.0",
"hashPath": "system.threading.tasks.extensions.4.3.0.nupkg.sha512"
},
"System.Xml.ReaderWriter/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-GrprA+Z0RUXaR4N7/eW71j1rgMnEnEVlgii49GZyAjTH7uliMnrOU3HNFBr6fEDBCJCIdlVNq9hHbaDR621XBA==",
"path": "system.xml.readerwriter/4.3.0",
"hashPath": "system.xml.readerwriter.4.3.0.nupkg.sha512"
},
"System.Xml.XmlDocument/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-lJ8AxvkX7GQxpC6GFCeBj8ThYVyQczx2+f/cWHJU8tjS7YfI6Cv6bon70jVEgs2CiFbmmM8b9j1oZVx0dSI2Ww==",
"path": "system.xml.xmldocument/4.3.0",
"hashPath": "system.xml.xmldocument.4.3.0.nupkg.sha512"
},
"System.Xml.XPath/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-v1JQ5SETnQusqmS3RwStF7vwQ3L02imIzl++sewmt23VGygix04pEH+FCj1yWb+z4GDzKiljr1W7Wfvrx0YwgA==",
"path": "system.xml.xpath/4.3.0",
"hashPath": "system.xml.xpath.4.3.0.nupkg.sha512"
},
"System.Xml.XPath.XmlDocument/4.3.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-A/uxsWi/Ifzkmd4ArTLISMbfFs6XpRPsXZonrIqyTY70xi8t+mDtvSM5Os0RqyRDobjMBwIDHDL4NOIbkDwf7A==",
"path": "system.xml.xpath.xmldocument/4.3.0",
"hashPath": "system.xml.xpath.xmldocument.4.3.0.nupkg.sha512"
}
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Packages/LibOrbisPkg.dll Normal file

Binary file not shown.

View File

@ -1,2 +1,80 @@
# GayMaker-Studio
GMS1.4.9999 -> PS4 Export
# v1.1
Added version manager - now you can use any verison of GMS1.4 you want
Updated default version to 1.4.9999
Fixed a bug where changing the project wouldnt update the preview.
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 on GayMaker](https://bitbucket.org/SilicaAndPina/gaymaker/issues/9/global-game-settings)
Added an update-checker it'll ask you if you want to update when a new update is avalible.
Download: https://bitbucket.org/SilicaAndPina/gaymaker-studio/downloads/GayMaker-Studio%201.1.zip
# v1.0
Inital Release!
Download: https://bitbucket.org/SilicaAndPina/gaymaker-studio/downloads/GayMaker-Studio.zip
#GayMaker: Studio
Homebrew GM:S Export tool (Based off the original [GayMaker Tool for PSVita](https://bitbucket.org/SilicaAndPina/gaymaker))
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 PS4 and saved as a PKG to whereever you choose to save it
All projects are compiled using GameMaker 1.4.1804 - the latest version that works on 5.05
Packages are created using LibOrbisPkg, No changes made to the original source of the Libary.
However some snippits where taken from the PkgEditor and changed to not read from clipboard / drag n drop
Please show me any games you make with it! (though, please note i wont be too interested unless a girl dies)
#Shaders
When you compile a project that uses Shaders for the first time. you'll be prompted to browse to 'orbis-wave-psslc.exe'
This file will then be placed into the GayMaker: Studio 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 orbis-wave-psslc.exe
# Controller Mapping
To Check DS4 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 = L1
gp_shoulderr = R1
gp_shoulderlb = L2
gp_shoulderrb = R2
gp_select = SELECT
gp_start = START
gp_stickl = L3
gp_stickr = R3
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 YoYoGames for GameMaker, "YOYO_DEV_ENABLE", and having a unsecured CDN
Thanks To the devs of DnSpy for indirectly making this possible ;)
Thanks To MaxTon for [LibOrbisPkg](https://github.com/maxton/LibOrbisPkg)
Thanks To ignacio1420 and Nagato for Testing!
Thanks To flat_z for [make_fself.py](https://twitter.com/flat_z/status/954856357664100354)

1
latest.md Normal file
View File

@ -0,0 +1 @@
1.1~https://bitbucket.org/SilicaAndPina/gaymaker-studio/downloads/GayMaker-Studio%201.1.zip

22
make-fself/build.bat Normal file
View File

@ -0,0 +1,22 @@
@echo off
echo requires nuitka
echo requires x86 Python2.7.15
echo RUN IN VS2017 COMMAND LINE
set PY27DIR=C:\Python27-86
%PY27DIR%\Scripts\nuitka --standalone --show-progress --remove-output --python-flag=no_site make_fself.py
rd ..\GayMaker-Studio\bin\Debug\make_fself
rd ..\GayMaker-Studio\bin\Release\make_fself
mkdir ..\GayMaker-Studio\bin\Debug\make_fself
mkdir ..\GayMaker-Studio\bin\Release\make_fself
copy make_fself.dist\make_fself.exe ..\GayMaker-Studio\bin\Debug\make_fself
copy make_fself.dist\python27.dll ..\GayMaker-Studio\bin\Debug\make_fself
copy make_fself.dist\make_fself.exe ..\GayMaker-Studio\bin\Release\make_fself
copy make_fself.dist\python27.dll ..\GayMaker-Studio\bin\Release\make_fself
rd make_fself.dist /S /Q

816
make-fself/make_fself.py Normal file
View File

@ -0,0 +1,816 @@
#!/usr/bin/env python
import sys, os, struct, traceback
import hashlib, hmac
import argparse, re, string
def int_with_base_type(val):
return int(val, 0)
def try_parse_int(x, base=0):
try:
return int(x, base) if isinstance(x, str) else int(x)
except:
return None
def align_up(x, alignment):
return (x + (alignment - 1)) & ~(alignment - 1)
def align_down(x, alignment):
return x & ~(alignment - 1)
def ilog2(x):
if x <= 0:
raise ValueError('math domain error')
return len(bin(x)) - 3
def is_intervals_overlap(p1, p2):
return p1[0] <= p2[1] and p1[1] <= p2[0]
def check_file_magic(f, expected_magic):
old_offset = f.tell()
try:
magic = f.read(len(expected_magic))
except:
return False
finally:
f.seek(old_offset)
return magic == expected_magic
def parse_version(version):
major, minor, patch = (version >> 8) & 0xFF, version & 0xFF, 0 # FIXME
major = 10 * (major >> 4) + (major & 0xF)
minor = 10 * (minor >> 4) + (minor & 0xF)
return '{0:d}.{1:02d}.{2:03d}'.format(major, minor, patch)
def sha256(data):
return hashlib.sha256(data).digest()
def hmac_sha256(key, data):
return hmac.new(key=key, msg=data, digestmod=hashlib.sha256).digest()
class ElfError(Exception):
def __init__(self, msg):
self.msg = msg
def __str__(self):
return repr(self.msg)
class ElfEHdr(object):
FMT = '<4s5B6xB'
EX_FMT = '<2HI3QI6H'
MAGIC = '\x7FELF'
CLASS64 = 0x2
DATA2LSB = 0x1
EM_X86_64 = 0x3E
EV_CURRENT = 0x1
ET_EXEC = 0x2
ET_SCE_EXEC = 0xFE00
ET_SCE_EXEC_ASLR = 0xFE10
ET_SCE_DYNAMIC = 0xFE18
def __init__(self):
self.magic = None
self.machine_class = None
self.data_encoding = None
self.version = None
self.os_abi = None
self.abi_version = None
self.nident_size = None
self.type = None
self.machine = None
self.version = None
self.entry = None
self.phoff = None
self.shoff = None
self.flags = None
self.ehsize = None
self.phentsize = None
self.phnum = None
self.shentsize = None
self.shnum = None
self.shstridx = None
def load(self, f):
if not check_file_magic(f, ElfEHdr.MAGIC):
raise ElfError('Invalid magic.')
self.magic, self.machine_class, self.data_encoding, self.version, self.os_abi, self.abi_version, self.nident_size = struct.unpack(ElfEHdr.FMT, f.read(struct.calcsize(ElfEHdr.FMT)))
if self.machine_class != ElfEHdr.CLASS64 or self.data_encoding != ElfEHdr.DATA2LSB:
raise ElfError('Unsupported class or data encoding.')
self.type, self.machine, self.version, self.entry, self.phoff, self.shoff, self.flags, self.ehsize, self.phentsize, self.phnum, self.shentsize, self.shnum, self.shstridx = struct.unpack(ElfEHdr.EX_FMT, f.read(struct.calcsize(ElfEHdr.EX_FMT)))
if self.machine != ElfEHdr.EM_X86_64 or self.version != ElfEHdr.EV_CURRENT:
raise ElfError('Unsupported machine type or version.')
if self.phentsize != struct.calcsize(ElfPHdr.FMT) or (self.shentsize > 0 and self.shentsize != struct.calcsize(ElfSHdr.FMT)):
raise ElfError('Unsupported header entry size.')
if self.type not in [ElfEHdr.ET_EXEC, ElfEHdr.ET_SCE_EXEC, ElfEHdr.ET_SCE_EXEC_ASLR, ElfEHdr.ET_SCE_DYNAMIC]:
raise ElfError('Unsupported type.')
def save(self, f):
f.write(struct.pack(ElfEHdr.FMT, self.magic, self.machine_class, self.data_encoding, self.version, self.os_abi, self.abi_version, self.nident_size))
f.write(struct.pack(ElfEHdr.EX_FMT, self.type, self.machine, self.version, self.entry, self.phoff, self.shoff, self.flags, self.ehsize, self.phentsize, self.phnum, self.shentsize, self.shnum, self.shstridx))
def has_segments(self):
return self.phentsize > 0 and self.phnum > 0
def has_sections(self):
return self.shentsize > 0 and self.shnum > 0
class ElfPHdr(object):
FMT = '<2I6Q'
PT_LOAD = 0x1
PT_DYNAMIC = 0x2
PT_INTERP = 0x3
PT_TLS = 0x7
PT_GNU_EH_FRAME = 0x6474E550
PT_GNU_STACK = 0x6474E551
PT_SCE_RELA = 0x60000000,
PT_SCE_DYNLIBDATA = 0x61000000
PT_SCE_PROCPARAM = 0x61000001
PT_SCE_MODULE_PARAM = 0x61000002
PT_SCE_RELRO = 0x61000010
PT_SCE_COMMENT = 0x6FFFFF00
PT_SCE_VERSION = 0x6FFFFF01
PF_EXEC = 0x1
PF_WRITE = 0x2
PF_READ = 0x4
PF_READ_EXEC = PF_READ | PF_EXEC
PF_READ_WRITE = PF_READ | PF_WRITE
def __init__(self, idx):
self.idx = idx
self.type = None
self.flags = None
self.offset = None
self.vaddr = None
self.paddr = None
self.filesz = None
self.memsz = None
self.align = None
def load(self, f):
self.type, self.flags, self.offset, self.vaddr, self.paddr, self.filesz, self.memsz, self.align = struct.unpack(ElfPHdr.FMT, f.read(struct.calcsize(ElfPHdr.FMT)))
def save(self, f):
f.write(struct.pack(ElfPHdr.FMT, self.type, self.flags, self.offset, self.vaddr, self.paddr, self.filesz, self.memsz, self.align))
def name(self):
if self.type == ElfPHdr.PT_LOAD:
if (self.flags & ElfPHdr.PF_READ_EXEC) == ElfPHdr.PF_READ_EXEC:
return '.text'
elif (self.flags & ElfPHdr.PF_READ_WRITE) == ElfPHdr.PF_READ_WRITE:
return '.data'
else:
return '.load_{0:02}'.format(self.idx)
else:
return {
ElfPHdr.PT_DYNAMIC: '.dynamic',
ElfPHdr.PT_INTERP: '.interp',
ElfPHdr.PT_TLS: '.tls',
ElfPHdr.PT_GNU_EH_FRAME: '.eh_frame_hdr',
ElfPHdr.PT_SCE_DYNLIBDATA: '.sce_dynlib_data',
ElfPHdr.PT_SCE_PROCPARAM: '.sce_process_param',
ElfPHdr.PT_SCE_MODULE_PARAM: '.sce_module_param',
ElfPHdr.PT_SCE_COMMENT: '.sce_comment',
}.get(self.type, None)
def class_name(self):
if (self.flags & ElfPHdr.PF_READ_EXEC) == ElfPHdr.PF_READ_EXEC:
return 'CODE'
else:
return 'DATA'
class ElfSHdr(object):
FMT = '<2I4Q2I2Q'
def __init__(self, idx):
self.idx = idx
self.name = None
self.type = None
self.flags = None
self.addr = None
self.offset = None
self.size = None
self.link = None
self.info = None
self.align = None
self.entsize = None
def load(self, f):
self.name, self.type, self.flags, self.addr, self.offset, self.size, self.link, self.info, self.align, self.entsize = struct.unpack(ElfSHdr.FMT, f.read(struct.calcsize(ElfSHdr.FMT)))
def save(self, f):
f.write(struct.pack(ElfSHdr.FMT, self.name, self.type, self.flags, self.addr, self.offset, self.size, self.link, self.info, self.align, self.entsize))
class ElfFile(object):
def __init__(self, **kwargs):
self.ehdr = None
self.phdrs = None
self.shdrs = None
self.file_size = None
self.digest = None
self.segments = None
self.sections = None
self.ignore_shdrs = 'ignore_shdrs' in kwargs and kwargs['ignore_shdrs']
def load(self, f):
start_offset = f.tell()
data = f.read()
self.file_size = len(data)
self.digest = sha256(data)
f.seek(start_offset)
self.ehdr = ElfEHdr()
self.ehdr.load(f)
if self.ignore_shdrs:
self.ehdr.shnum = 0
self.phdrs = []
self.segments = []
if self.ehdr.has_segments():
for i in xrange(self.ehdr.phnum):
f.seek(start_offset + self.ehdr.phoff + i * self.ehdr.phentsize)
phdr = ElfPHdr(i)
phdr.load(f)
self.phdrs.append(phdr)
if phdr.filesz > 0:
f.seek(start_offset + phdr.offset)
data = f.read(phdr.filesz)
else:
data = ''
self.segments.append(data)
self.shdrs = []
self.sections = []
if self.ehdr.has_sections():
for i in xrange(self.ehdr.shnum):
f.seek(start_offset + self.ehdr.shoff + i * self.ehdr.shentsize)
shdr = ElfSHdr(i)
shdr.load(f)
self.shdrs.append(shdr)
if phdr.filesz > 0:
f.seek(start_offset + shdr.offset)
data = f.read(phdr.filesz)
else:
data = ''
self.sections.append(data)
def save(self, f, no_sections=False):
start_offset = f.tell()
self.ehdr.save(f)
if not no_sections:
if self.ehdr.has_sections():
for i in xrange(self.ehdr.shnum):
f.seek(start_offset + self.ehdr.shoff + i * self.ehdr.shentsize)
shdr = self.shdrs[i]
shdr.save(f)
if self.ehdr.has_segments():
for i in xrange(self.ehdr.phnum):
f.seek(start_offset + self.ehdr.phoff + i * self.ehdr.phentsize)
phdr = self.phdrs[i]
phdr.save(f)
DIGEST_SIZE = 0x20
SIGNATURE_SIZE = 0x100
BLOCK_SIZE = 0x4000
DEFAULT_BLOCK_SIZE = 0x1000
SELF_CONTROL_BLOCK_TYPE_NPDRM = 0x3
SELF_NPDRM_CONTROL_BLOCK_CONTENT_ID_SIZE = 0x13
SELF_NPDRM_CONTROL_BLOCK_RANDOM_PAD_SIZE = 0xD
EMPTY_DIGEST = '\0' * DIGEST_SIZE
EMPTY_SIGNATURE = '\0' * SIGNATURE_SIZE
class SignedElfEntry(object):
FMT = '<4Q'
PROPS_ORDER_SHIFT = 0
PROPS_ORDER_MASK = 0x1
PROPS_ENCRYPTED_SHIFT = 1
PROPS_ENCRYPTED_MASK = 0x1
PROPS_SIGNED_SHIFT = 2
PROPS_SIGNED_MASK = 0x1
PROPS_COMPRESSED_SHIFT = 3
PROPS_COMPRESSED_MASK = 0x1
PROPS_WINDOW_BITS_SHIFT = 8
PROPS_WINDOW_BITS_MASK = 0x7
PROPS_HAS_BLOCKS_SHIFT = 11
PROPS_HAS_BLOCKS_MASK = 0x1
PROPS_BLOCK_SIZE_SHIFT = 12
PROPS_BLOCK_SIZE_MASK = 0xF
PROPS_HAS_DIGESTS_SHIFT = 16
PROPS_HAS_DIGESTS_MASK = 0x1
PROPS_HAS_EXTENTS_SHIFT = 17
PROPS_HAS_EXTENTS_MASK = 0x1
PROPS_HAS_META_SEGMENT_SHIFT = 20
PROPS_HAS_META_SEGMENT_MASK = 0x1
PROPS_SEGMENT_INDEX_SHIFT = 20
PROPS_SEGMENT_INDEX_MASK = 0xFFFF
PROPS_DEFAULT_BLOCK_SIZE = 0x1000
PROPS_META_SEGMENT_MASK = 0xF0000
def __init__(self, index):
self.index = index
self.props = None
self.offset = None
self.filesz = None
self.memsz = None
self.data = None
def save(self, f):
f.write(struct.pack(SignedElfEntry.FMT, self.props, self.offset, self.filesz, self.memsz))
@property
def order(self):
return (self.props >> SignedElfEntry.PROPS_ORDER_SHIFT) & SignedElfEntry.PROPS_ORDER_MASK
@order.setter
def order(self, value):
self.props &= ~(SignedElfEntry.PROPS_ORDER_MASK << SignedElfEntry.PROPS_ORDER_SHIFT)
self.props |= (value & SignedElfEntry.PROPS_ORDER_MASK) << SignedElfEntry.PROPS_ORDER_SHIFT
@property
def encrypted(self):
return ((self.props >> SignedElfEntry.PROPS_ENCRYPTED_SHIFT) & SignedElfEntry.PROPS_ENCRYPTED_MASK) != 0
@encrypted.setter
def encrypted(self, value):
self.props &= ~(SignedElfEntry.PROPS_ENCRYPTED_MASK << SignedElfEntry.PROPS_ENCRYPTED_SHIFT)
if value:
self.props |= SignedElfEntry.PROPS_ENCRYPTED_MASK << SignedElfEntry.PROPS_ENCRYPTED_SHIFT
@property
def signed(self):
return ((self.props >> SignedElfEntry.PROPS_SIGNED_SHIFT) & SignedElfEntry.PROPS_SIGNED_MASK) != 0
@signed.setter
def signed(self, value):
self.props &= ~(SignedElfEntry.PROPS_SIGNED_MASK << SignedElfEntry.PROPS_SIGNED_SHIFT)
if value:
self.props |= SignedElfEntry.PROPS_SIGNED_MASK << SignedElfEntry.PROPS_SIGNED_SHIFT
@property
def compressed(self):
return ((self.props >> SignedElfEntry.PROPS_COMPRESSED_SHIFT) & SignedElfEntry.PROPS_COMPRESSED_MASK) != 0
@compressed.setter
def compressed(self, value):
self.props &= ~(SignedElfEntry.PROPS_COMPRESSED_MASK << SignedElfEntry.PROPS_COMPRESSED_SHIFT)
if value:
self.props |= SignedElfEntry.PROPS_COMPRESSED_MASK << SignedElfEntry.PROPS_COMPRESSED_SHIFT
@property
def has_blocks(self):
return ((self.props >> SignedElfEntry.PROPS_HAS_BLOCKS_SHIFT) & SignedElfEntry.PROPS_HAS_BLOCKS_MASK) != 0
@has_blocks.setter
def has_blocks(self, value):
self.props &= ~(SignedElfEntry.PROPS_HAS_BLOCKS_MASK << SignedElfEntry.PROPS_HAS_BLOCKS_SHIFT)
if value:
self.props |= SignedElfEntry.PROPS_HAS_BLOCKS_MASK << SignedElfEntry.PROPS_HAS_BLOCKS_SHIFT
@property
def has_digests(self):
return ((self.props >> SignedElfEntry.PROPS_HAS_DIGESTS_SHIFT) & SignedElfEntry.PROPS_HAS_DIGESTS_MASK) != 0
@has_digests.setter
def has_digests(self, value):
self.props &= ~(SignedElfEntry.PROPS_HAS_DIGESTS_MASK << SignedElfEntry.PROPS_HAS_DIGESTS_SHIFT)
if value:
self.props |= SignedElfEntry.PROPS_HAS_DIGESTS_MASK << SignedElfEntry.PROPS_HAS_DIGESTS_SHIFT
@property
def has_extents(self):
return ((self.props >> SignedElfEntry.PROPS_HAS_EXTENTS_SHIFT) & SignedElfEntry.PROPS_HAS_EXTENTS_MASK) != 0
@has_extents.setter
def has_extents(self, value):
self.props &= ~(SignedElfEntry.PROPS_HAS_EXTENTS_MASK << SignedElfEntry.PROPS_HAS_EXTENTS_SHIFT)
if value:
self.props |= SignedElfEntry.PROPS_HAS_EXTENTS_MASK << SignedElfEntry.PROPS_HAS_EXTENTS_SHIFT
@property
def has_meta_segment(self):
return ((self.props >> SignedElfEntry.PROPS_HAS_META_SEGMENT_SHIFT) & SignedElfEntry.PROPS_HAS_META_SEGMENT_MASK) != 0
@has_meta_segment.setter
def has_meta_segment(self, value):
self.props &= ~(SignedElfEntry.PROPS_HAS_META_SEGMENT_MASK << SignedElfEntry.PROPS_HAS_META_SEGMENT_SHIFT)
if value:
self.props |= SignedElfEntry.PROPS_HAS_META_SEGMENT_MASK << SignedElfEntry.PROPS_HAS_META_SEGMENT_SHIFT
@property
def wbits(self):
return (self.props >> SignedElfEntry.PROPS_WINDOW_BITS_SHIFT) & SignedElfEntry.PROPS_WINDOW_BITS_MASK
@wbits.setter
def wbits(self, value):
self.props &= ~(SignedElfEntry.PROPS_WINDOW_BITS_MASK << SignedElfEntry.PROPS_WINDOW_BITS_SHIFT)
self.props |= (value & SignedElfEntry.PROPS_WINDOW_BITS_MASK) << SignedElfEntry.PROPS_WINDOW_BITS_SHIFT
@property
def block_size(self):
if self.has_blocks:
return 1 << (12 + (self.props >> SignedElfEntry.PROPS_BLOCK_SIZE_SHIFT) & SignedElfEntry.PROPS_BLOCK_SIZE_MASK)
else:
return DEFAULT_BLOCK_SIZE
@block_size.setter
def block_size(self, value):
self.props &= ~(SignedElfEntry.PROPS_BLOCK_SIZE_MASK << SignedElfEntry.PROPS_BLOCK_SIZE_SHIFT)
if self.has_blocks:
value = ilog2(value) - 12
else:
value = 0 # TODO: check
self.props |= (value & SignedElfEntry.PROPS_BLOCK_SIZE_MASK) << SignedElfEntry.PROPS_BLOCK_SIZE_SHIFT
@property
def segment_index(self):
return (self.props >> SignedElfEntry.PROPS_SEGMENT_INDEX_SHIFT) & SignedElfEntry.PROPS_SEGMENT_INDEX_MASK
@wbits.setter
def segment_index(self, value):
self.props &= ~(SignedElfEntry.PROPS_SEGMENT_INDEX_MASK << SignedElfEntry.PROPS_SEGMENT_INDEX_SHIFT)
self.props |= (value & SignedElfEntry.PROPS_SEGMENT_INDEX_MASK) << SignedElfEntry.PROPS_SEGMENT_INDEX_SHIFT
def is_meta_segment(self): # TODO: check
return (self.props & SignedElfEntry.PROPS_META_SEGMENT_MASK) != 0
def __repr__(self):
return 'prs:0x{0:X} ofs:0x{1:X} fsz:0x{2:X} msz:0x{3:X}'.format(self.props, self.offset, self.filesz, self.memsz)
class SignedElfExInfo(object):
FMT = '<4Q32s'
PTYPE_FAKE = 0x1
PTYPE_NPDRM_EXEC = 0x4
PTYPE_NPDRM_DYNLIB = 0x5
PTYPE_SYSTEM_EXEC = 0x8
PTYPE_SYSTEM_DYNLIB = 0x9 # including Mono binaries
PTYPE_HOST_KERNEL = 0xC
PTYPE_SECURE_MODULE = 0xE
PTYPE_SECURE_KERNEL = 0xF
def __init__(self):
self.paid = None
self.ptype = None
self.app_version = None
self.fw_version = None
self.digest = None
def save(self, f):
f.write(struct.pack(SignedElfExInfo.FMT, self.paid, self.ptype, self.app_version, self.fw_version, self.digest))
class SignedElfNpdrmControlBlock(object):
FMT = '<H14x19s13s'
def __init__(self):
self.type = SELF_CONTROL_BLOCK_TYPE_NPDRM
self.content_id = None
self.random_pad = None
def save(self, f):
f.write(struct.pack(SignedElfNpdrmControlBlock.FMT, self.type, self.content_id, self.random_pad))
class SignedElfMetaBlock(object):
FMT = '<80x'
def __init__(self):
pass
def save(self, f):
f.write(struct.pack(SignedElfMetaBlock.FMT))
class SignedElfMetaFooter(object):
FMT = '<48xI28x'
def __init__(self):
self.unk1 = None
def save(self, f):
f.write(struct.pack(SignedElfMetaFooter.FMT, self.unk1))
class SignedElfFile(object):
COMMON_HEADER_FMT = '<4s4B'
EXT_HEADER_FMT = '<I2HQ2H4x'
MAGIC = '\x4F\x15\x3D\x1D'
VERSION = 0x00
MODE = 0x01
ENDIAN = 0x01
ATTRIBS = 0x12
KEY_TYPE = 0x101
FLAGS_SEGMENT_SIGNED_SHIFT = 4
FLAGS_SEGMENT_SIGNED_MASK = 0x7
HAS_NPDRM = 1
def __init__(self, elf, **kwargs):
self.elf = elf
self.magic = None
self.version = None
self.mode = None
self.endian = None
self.attribs = None
self.key_type = None
self.header_size = None
self.meta_size = None
self.file_size = None
self.num_entries = None
self.flags = None
self.entries = None
self.ex_info = None
self.npdrm_control_block = None
self.meta_blocks = None
self.meta_footer = None
self.signature = None
self.version_data = None
self.paid = kwargs['paid'] if 'paid' in kwargs and not kwargs['paid'] is None else 0x3100000000000002
self.ptype = kwargs['ptype'] if 'ptype' in kwargs and not kwargs['ptype'] is None else SignedElfExInfo.PTYPE_FAKE
self.app_version = kwargs['app_version'] if 'app_version' in kwargs and not kwargs['app_version'] is None else 0
self.fw_version = kwargs['fw_version'] if 'fw_version' in kwargs and not kwargs['fw_version'] is None else 0
self.auth_info = kwargs['auth_info'] if 'auth_info' in kwargs and not kwargs['auth_info'] is None else None
def _prepare(self):
self.magic = SignedElfFile.MAGIC
self.version = SignedElfFile.VERSION
self.mode = SignedElfFile.MODE
self.endian = SignedElfFile.ENDIAN
self.attribs = SignedElfFile.ATTRIBS
self.key_type = SignedElfFile.KEY_TYPE
self.flags = 0x2
signed_block_count = 2
self.flags |= (signed_block_count & SignedElfFile.FLAGS_SEGMENT_SIGNED_MASK) << SignedElfFile.FLAGS_SEGMENT_SIGNED_SHIFT
self.entries = []
entry_idx = 0
for i in xrange(self.elf.ehdr.phnum):
phdr = self.elf.phdrs[i]
if phdr.type == ElfPHdr.PT_SCE_VERSION:
self.version_data = self.elf.segments[i]
if not phdr.type in [ElfPHdr.PT_LOAD, ElfPHdr.PT_SCE_RELRO, ElfPHdr.PT_SCE_DYNLIBDATA, ElfPHdr.PT_SCE_COMMENT]:
continue
meta_entry = SignedElfEntry(entry_idx)
meta_entry.props = 0
meta_entry.encrypted = False
meta_entry.signed = True
meta_entry.has_digests = True
meta_entry.segment_index = entry_idx + 1
self.entries.append(meta_entry)
data_entry = SignedElfEntry(entry_idx + 1)
data_entry.props = 0
data_entry.encrypted = False
data_entry.signed = True
data_entry.has_blocks = True
data_entry.block_size = BLOCK_SIZE
data_entry.segment_index = i
self.entries.append(data_entry)
entry_idx += 2
self.num_entries = len(self.entries)
self.ex_info = SignedElfExInfo()
self.ex_info.paid = self.paid
self.ex_info.ptype = self.ptype
self.ex_info.app_version = self.app_version
self.ex_info.fw_version = self.fw_version
self.ex_info.digest = self.elf.digest
if SignedElfFile.HAS_NPDRM:
self.npdrm_control_block = SignedElfNpdrmControlBlock()
self.npdrm_control_block.content_id = '\0' * SELF_NPDRM_CONTROL_BLOCK_CONTENT_ID_SIZE
self.npdrm_control_block.random_pad = '\0' * SELF_NPDRM_CONTROL_BLOCK_RANDOM_PAD_SIZE
self.header_size = struct.calcsize(SignedElfFile.COMMON_HEADER_FMT) + struct.calcsize(SignedElfFile.EXT_HEADER_FMT)
self.header_size += self.num_entries * struct.calcsize(SignedElfEntry.FMT)
self.header_size += max(self.elf.ehdr.ehsize, self.elf.ehdr.phoff + self.elf.ehdr.phentsize * self.elf.ehdr.phnum)
self.header_size = align_up(self.header_size, 16)
self.header_size += struct.calcsize(SignedElfExInfo.FMT)
if SignedElfFile.HAS_NPDRM:
self.header_size += struct.calcsize(SignedElfNpdrmControlBlock.FMT)
self.meta_size = self.num_entries * struct.calcsize(SignedElfMetaBlock.FMT) + struct.calcsize(SignedElfMetaFooter.FMT) + SIGNATURE_SIZE
self.meta_blocks = []
for i in xrange(self.num_entries):
meta_block = SignedElfMetaBlock()
self.meta_blocks.append(meta_block)
self.meta_footer = SignedElfMetaFooter()
self.meta_footer.unk1 = 0x10000
if not self.auth_info is None:
self.signature = (struct.pack('<QQ', len(self.auth_info), self.ex_info.paid) + self.auth_info[8:]).ljust(SIGNATURE_SIZE, '\0')
else:
self.signature = EMPTY_SIGNATURE
entry_idx = 0
offset = self.header_size + self.meta_size
for i in xrange(self.elf.ehdr.phnum):
phdr = self.elf.phdrs[i]
if not phdr.type in [ElfPHdr.PT_LOAD, ElfPHdr.PT_SCE_RELRO, ElfPHdr.PT_SCE_DYNLIBDATA, ElfPHdr.PT_SCE_COMMENT]:
continue
print('processing segment #{0:02}...'.format(i))
meta_entry, data_entry = self.entries[entry_idx], self.entries[entry_idx + 1]
num_blocks = align_up(phdr.filesz, BLOCK_SIZE) // BLOCK_SIZE
meta_entry.data = EMPTY_DIGEST * num_blocks
meta_entry.offset = offset
meta_entry.memsz = meta_entry.filesz = len(meta_entry.data)
offset += meta_entry.filesz
offset = align_up(offset, 16)
data_entry.data = self.elf.segments[i]
data_entry.offset = offset
data_entry.memsz = data_entry.filesz = phdr.filesz
offset += data_entry.filesz
offset = align_up(offset, 16)
entry_idx += 2
self.file_size = offset
def save(self, f):
start_offset = f.tell()
# calculate neccessary fields
self._prepare()
# write common header
f.write(struct.pack(SignedElfFile.COMMON_HEADER_FMT, self.magic, self.version, self.mode, self.endian, self.attribs))
# write extended header
f.write(struct.pack(SignedElfFile.EXT_HEADER_FMT, self.key_type, self.header_size, self.meta_size, self.file_size, self.num_entries, self.flags))
# write entries
for entry in self.entries:
entry.save(f)
# write elf headers
elf_offset = f.tell()
elf_header_size = max(self.elf.ehdr.ehsize, self.elf.ehdr.phoff + self.elf.ehdr.phentsize * self.elf.ehdr.phnum)
elf_header_size = align_up(elf_header_size, 16)
self.elf.save(f, True)
f.seek(elf_offset + elf_header_size)
# write extended info
self.ex_info.save(f)
# write npdrm control block
if SignedElfFile.HAS_NPDRM:
self.npdrm_control_block.save(f)
# write meta blocks
for meta_block in self.meta_blocks:
meta_block.save(f)
# write meta footer
self.meta_footer.save(f)
# write signature
f.write(self.signature)
# write segments
for entry in self.entries:
f.seek(start_offset + entry.offset)
f.write(entry.data)
# write version
if not self.version_data is None:
f.write(self.version_data)
def ensure_hex_string(val, **kwargs):
exact_size = int(kwargs['exact_size']) if 'exact_size' in kwargs else None
min_size = int(kwargs['min_size']) if 'min_size' in kwargs else None
max_size = int(kwargs['max_size']) if 'max_size' in kwargs else None
val = re.sub('\s+', '', val)
val_size = len(val)
if val_size > 0:
if val.startswith('0x') or val.startswith('0X'):
val = val[2:]
if len(val) % 2 != 0 or not all(x in string.hexdigits for x in val):
return None
val = val.decode('hex')
val_size = len(val)
if not exact_size is None and val_size != exact_size:
return None
else:
if not min_size is None and val_size < min_size:
return None
if not max_size is None and val_size > max_size:
return None
return val
def input_file_type(val):
if not os.access(val, os.F_OK | os.R_OK) or not os.path.isfile(val):
raise argparse.ArgumentTypeError('invalid input file: {0}'.format(val))
return val
def output_file_type(val):
if os.access(val, os.F_OK) and (not os.path.isfile(val) or not os.access(val, os.F_OK | os.W_OK)):
raise argparse.ArgumentTypeError('invalid output file: {0}'.format(val))
return val
def auth_info_type(val):
new_val = ensure_hex_string(val, exact_size=0x88)
if new_val is None:
raise argparse.ArgumentTypeError('invalid auth info: {0}'.format(val))
return new_val
class MyParser(argparse.ArgumentParser):
def error(self, message):
self.print_help()
sys.stderr.write('\nerror: {0}\n'.format(message))
sys.exit(2)
parser = MyParser(description='fake signed elf maker')
parser.add_argument('input', type=input_file_type, default=None, help='elf/prx file path')
parser.add_argument('output', type=output_file_type, default=None, help='self/sprx file path')
parser.add_argument('--paid', type=int_with_base_type, default=0x3100000000000002, help='program authentication id')
parser.add_argument('--ptype', default=None, help='program type {fake, npdrm_exec, npdrm_dynlib, system_exec, system_dynlib, host_kernel, secure_module, secure_kernel}')
parser.add_argument('--app-version', type=int_with_base_type, default=0, help='application version')
parser.add_argument('--fw-version', type=int_with_base_type, default=0, help='firmware version')
parser.add_argument('--auth-info', type=auth_info_type, default=None, help='authentication info')
if len(sys.argv) == 1:
parser.print_usage()
sys.exit(1)
args = parser.parse_args()
paid = args.paid
if not (0 <= paid <= 0xFFFFFFFFFFFFFFFF):
parser.error('invalid program authentication id: 0x{0:016X}'.format(paid))
ptype = SignedElfExInfo.PTYPE_FAKE
if not args.ptype is None:
ptype = {
'fake': SignedElfExInfo.PTYPE_FAKE,
'npdrm_exec': SignedElfExInfo.PTYPE_NPDRM_EXEC,
'npdrm_dynlib': SignedElfExInfo.PTYPE_NPDRM_DYNLIB,
'system_exec': SignedElfExInfo.PTYPE_SYSTEM_EXEC,
'system_dynlib': SignedElfExInfo.PTYPE_SYSTEM_DYNLIB,
'host_kernel': SignedElfExInfo.PTYPE_HOST_KERNEL,
'secure_module': SignedElfExInfo.PTYPE_SECURE_MODULE,
'secure_kernel': SignedElfExInfo.PTYPE_SECURE_KERNEL,
}.get(args.ptype.strip().lower(), None)
if ptype is None:
ptype = try_parse_int(args.ptype)
if ptype is None:
parser.error('invalid program type: 0x{0:016X}'.format(ptype))
if not (0 <= ptype <= 0xFFFFFFFFFFFFFFFF):
parser.error('invalid program type: 0x{0:016X}'.format(ptype))
app_version = args.app_version
if not (0 <= app_version <= 0xFFFFFFFFFFFFFFFF):
parser.error('invalid application version: 0x{0:016X}'.format(app_version))
fw_version = args.fw_version
if not (0 <= fw_version <= 0xFFFFFFFFFFFFFFFF):
parser.error('invalid firmware version: 0x{0:016X}'.format(fw_version))
auth_info = args.auth_info
elf_file_path = args.input
fself_file_path = args.output
print('loading elf file: {0}'.format(elf_file_path))
try:
with open(elf_file_path, 'rb') as f:
elf_file = ElfFile(ignore_shdrs=True)
elf_file.load(f)
except Exception as err:
traceback.print_exc()
print('')
parser.error('unable to load elf file: {0} ({1})'.format(elf_file_path, err))
print('saving fake signed elf file: {0}'.format(fself_file_path))
try:
with open(fself_file_path, 'wb') as f:
self_file = SignedElfFile(elf_file, paid=paid, ptype=ptype, app_version=app_version, fw_version=fw_version, auth_info=auth_info)
self_file.save(f)
except Exception as err:
traceback.print_exc()
print('')
parser.error('unable to save fself file: {0} ({1})'.format(elf_file_path, err))
print('done')