Add world decrypt // and package addons to .mcaddon

This commit is contained in:
Li 2025-01-21 22:58:26 +13:00
parent a441bfe929
commit b67526b2cc
15 changed files with 565 additions and 125 deletions

View file

@ -0,0 +1 @@
{"RootPath":"C:\\Users\\Li\\Desktop\\git\\McTools\\McDecryptor","ProjectFileName":"McDecryptor.csproj","Configuration":"Debug|AnyCPU","FrameworkPath":"","Sources":[{"SourceFile":"Config.cs"},{"SourceFile":"Program.cs"},{"SourceFile":"Properties\\AssemblyInfo.cs"},{"SourceFile":"Properties\\Resources.Designer.cs"},{"SourceFile":"obj\\Debug\\.NETFramework,Version=v4.8.AssemblyAttributes.cs"}],"References":[{"Reference":"C:\\Users\\Li\\Desktop\\git\\McTools\\McCrypt\\bin\\Debug\\LibMcCrypt.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":true,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\Microsoft.CSharp.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\mscorlib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Data.DataSetExtensions.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Data.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.IO.Compression.FileSystem.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Net.Http.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Xml.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Xml.Linq.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""}],"Analyzers":[],"Outputs":[{"OutputItemFullPath":"C:\\Users\\Li\\Desktop\\git\\McTools\\McDecryptor\\bin\\Debug\\McDecryptor.exe","OutputItemRelativePath":"McDecryptor.exe"},{"OutputItemFullPath":"C:\\Users\\Li\\Desktop\\git\\McTools\\McDecryptor\\bin\\Debug\\McDecryptor.pdb","OutputItemRelativePath":"McDecryptor.pdb"}],"CopyToOutputEntries":[]}

View file

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

View file

@ -1,199 +0,0 @@
using McDecryptor.Properties;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace McDecryptor
{
internal class Config
{
public static string LocalAppdata = Environment.GetEnvironmentVariable("LOCALAPPDATA");
public static string RoamingAppdata = Environment.GetEnvironmentVariable("APPDATA");
public static string ApplicationDirectory;
private static List<string> searchFolders = new List<string>();
private static List<string> searchModules = new List<string>();
public static string MinecraftFolder;
public static string LocalState;
public static string LocalCache;
public static string KeysDbPath;
public static string PremiumCache;
public static string ServerPackCache;
public static string RealmsPremiumCache;
public static string OptionsTxt;
public static string OutFolder;
public static bool CrackPacks;
public static bool ZipPacks;
public static string[] SearchFolders
{
get
{
return searchFolders.ToArray();
}
}
public static string[] SearchModules
{
get
{
return searchModules.ToArray();
}
}
private static void rebaseSearchFolders()
{
searchFolders.Clear();
searchFolders.Add(ApplicationDirectory);
searchFolders.Add(PremiumCache);
searchFolders.Add(ServerPackCache);
searchFolders.Add(RealmsPremiumCache);
searchModules.Clear();
searchModules.Add("resource_packs");
searchModules.Add("skin_packs");
searchModules.Add("world_templates");
searchModules.Add("persona");
searchModules.Add("behavior_packs");
searchModules.Add("resource");
}
private static void rebaseLocalData()
{
OutFolder = Path.Combine(LocalState, "games", "com.mojang");
PremiumCache = Path.Combine(LocalState, "premium_cache");
ServerPackCache = Path.Combine(LocalCache, "packcache");
RealmsPremiumCache = Path.Combine(LocalCache, "premiumcache");
rebaseSearchFolders();
}
private static void rebaseAll()
{
LocalState = Path.Combine(MinecraftFolder, "LocalState");
LocalCache = Path.Combine(MinecraftFolder, "LocalCache", "minecraftpe");
rebaseLocalData();
}
private static string resolve(string str)
{
str = str.Trim();
str = str.Replace("$LOCALAPPDATA", LocalAppdata);
str = str.Replace("$APPDATA", RoamingAppdata);
str = str.Replace("$MCDIR", MinecraftFolder);
str = str.Replace("$EXECDIR", ApplicationDirectory);
str = str.Replace("$LOCALSTATE", LocalState);
str = str.Replace("$LOCALCACHE", LocalCache);
str = str.Replace("$PREMIUMCACHE", PremiumCache);
str = str.Replace("$SERVERPACKCACHE", ServerPackCache);
str = str.Replace("$REALMSPREMIUMCACHE", RealmsPremiumCache);
str = str.Replace("$OUTFOLDER", OutFolder);
return str;
}
public static void Init()
{
CrackPacks = true;
ZipPacks = false;
ApplicationDirectory = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
KeysDbPath = Path.Combine(ApplicationDirectory, "keys.db");
MinecraftFolder = Path.Combine(LocalAppdata, "Packages", "Microsoft.MinecraftUWP_8wekyb3d8bbwe");
rebaseAll();
}
public static void ReadConfig(string configFile)
{
if (File.Exists(configFile))
{
string[] configLines = File.ReadAllLines(configFile);
foreach(string line in configLines)
{
if (line.Trim().StartsWith("#"))
continue;
if (!line.Contains(":"))
continue;
string[] keyvalpair = line.Trim().Split(':');
if (keyvalpair.Length < 2)
continue;
switch(keyvalpair[0])
{
case "MinecraftFolder":
MinecraftFolder = resolve(keyvalpair[1]);
rebaseAll();
break;
case "LocalState":
LocalState = resolve(keyvalpair[1]);
rebaseLocalData();
break;
case "LocalCache":
LocalCache = resolve(keyvalpair[1]);
rebaseLocalData();
break;
case "PremiumCache":
PremiumCache = resolve(keyvalpair[1]);
rebaseSearchFolders();
break;
case "ServerPackCache":
ServerPackCache = resolve(keyvalpair[1]);
rebaseSearchFolders();
break;
case "RealmsPremiumCache":
RealmsPremiumCache = resolve(keyvalpair[1]);
rebaseSearchFolders();
break;
case "OutputFolder":
OutFolder = resolve(keyvalpair[1]);
break;
case "KeysDb":
KeysDbPath = resolve(keyvalpair[1]);
break;
case "OptionsTxt":
OptionsTxt = resolve(keyvalpair[1]);
break;
case "AdditionalSearchDir":
searchFolders.Add(resolve(keyvalpair[1]));
break;
case "AdditionalModuleDir":
searchModules.Add(resolve(keyvalpair[1]));
break;
case "CrackThePacks":
CrackPacks = (resolve(keyvalpair[1]).ToLower() == "yes");
break;
case "ZipThePacks":
ZipPacks = (resolve(keyvalpair[1]).ToLower() == "yes");
break;
}
}
}
else
{
File.WriteAllBytes(configFile, Resources.DefaultConfigFile);
ReadConfig(configFile);
}
}
}
}

View file

@ -49,18 +49,8 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Config.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="default.cfg" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\McCrypt\LibMcCrypt.csproj">
@ -68,12 +58,6 @@
<Name>LibMcCrypt</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<Content Include="illager.ico" />
</ItemGroup>

View file

@ -2,8 +2,11 @@
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.Net.Configuration;
using System.Runtime.Remoting.Messaging;
using System.Threading;
using McCrypt;
using McCrypt.PackData;
namespace McDecryptor
{
@ -45,7 +48,8 @@ namespace McDecryptor
});
thrd.Priority = ThreadPriority.Highest;
thrd.Start();
threads.Add(thrd);
if (!Config.MultiThread) thrd.Join();
else threads.Add(thrd);
}
foreach (Thread t in threads.ToArray())
@ -62,7 +66,8 @@ namespace McDecryptor
});
thrd.Priority = ThreadPriority.Highest;
thrd.Start();
threads.Add(thrd);
if (!Config.MultiThread) thrd.Join();
else threads.Add(thrd);
}
@ -72,6 +77,28 @@ namespace McDecryptor
threads.Clear();
}
static void DecryptPack(string filePath)
{
string levelDatFile = Path.Combine(filePath, "level.dat");
string skinsJsonFile = Path.Combine(filePath, "skins.json");
string oldSchoolZipe = Path.Combine(filePath, "content.zipe");
Marketplace.DecryptContents(filePath);
if (Config.CrackPacks)
{
if (File.Exists(oldSchoolZipe))
Marketplace.CrackZipe(oldSchoolZipe);
if (File.Exists(levelDatFile))
Marketplace.CrackLevelDat(levelDatFile);
if (File.Exists(skinsJsonFile))
Marketplace.CrackSkinsJson(skinsJsonFile);
}
}
static void Main(string[] args)
{
Console.WriteLine("-- McDecryptor --");
@ -118,39 +145,21 @@ namespace McDecryptor
}
List<ContentListing> premiumContents = new List<ContentListing>();
Console.WriteLine("\n\n");
Console.WriteLine("Select what to decrypt: ");
int total = 1;
PReader pReader = new PReader();
PEntry[] entries = pReader.PEntryList;
foreach (string searchFolder in Config.SearchFolders)
foreach (PEntry entry in entries)
{
foreach(string searchModule in Config.SearchModules)
{
string moduleFolder = Path.Combine(searchFolder, searchModule);
Console.WriteLine(total.ToString() + ") (" + entry.ProductType + ") " + entry.Name);
if (Directory.Exists(moduleFolder))
{
foreach (string moduleItem in Directory.GetDirectories(moduleFolder, "*", SearchOption.TopDirectoryOnly))
{
ContentListing cList = new ContentListing();
cList.Name = Manifest.ReadName(Path.Combine(moduleItem, "manifest.json"));
cList.Type = searchModule;
cList.Id = total;
cList.Path = moduleItem;
premiumContents.Add(cList);
Console.WriteLine(cList.Id.ToString() + ") (" + cList.Type + ") " + cList.Name);
total++;
}
}
}
total++;
}
Console.WriteLine("Select multiple (seperated by ',') or write \"ALL\"");
Console.WriteLine("Select one or multiple (seperated by ',') or write \"ALL\", numerical values");
List<int> toDecrypt = new List<int>();
while (true)
@ -165,9 +174,9 @@ namespace McDecryptor
toDecrypt.Add(i);
break;
}
string[] entries = readText.Split(',');
string[] txtentries = readText.Split(',');
foreach(string entry in entries) {
foreach(string entry in txtentries) {
int tdc = Convert.ToInt32(entry.Trim())-1;
if (tdc < 0 || tdc >= total)
continue;
@ -183,8 +192,8 @@ namespace McDecryptor
foreach (int decryptMe in toDecrypt.ToArray())
{
ContentListing cListing = premiumContents.ToArray()[decryptMe];
string outFolder = Path.Combine(Config.OutFolder, cListing.Type, EscapeFilename(cListing.Name));
PEntry cEntry = entries[decryptMe];
string outFolder = Path.Combine(Config.OutFolder, cEntry.ProductType, EscapeFilename(cEntry.Name));
int counter = 1;
string ogOutFolder = outFolder;
@ -194,38 +203,62 @@ namespace McDecryptor
counter++;
}
Console.WriteLine("Decrypting: " + cListing.Name);
Console.WriteLine("Decrypting: " + cEntry.Name);
Directory.CreateDirectory(outFolder);
CopyDirectory(cListing.Path, outFolder);
try
try
{
string levelDatFile = Path.Combine(outFolder, "level.dat");
string skinsJsonFile = Path.Combine(outFolder, "skins.json");
string oldSchoolZipe = Path.Combine(outFolder, "content.zipe");
Marketplace.DecryptContents(outFolder);
if (Config.CrackPacks)
if (cEntry.ProductType == "addon")
{
if (File.Exists(oldSchoolZipe))
Marketplace.CrackZipe(oldSchoolZipe);
// copy & decrypt main file
string subDir = Path.Combine(outFolder, cEntry.Type);
Directory.CreateDirectory(subDir);
CopyDirectory(cEntry.FilePath, subDir);
DecryptPack(subDir);
if (File.Exists(levelDatFile))
Marketplace.CrackLevelDat(levelDatFile);
// copy & decrypt file dependancies
PEntry[] deps = pReader.GetDependancies(cEntry);
foreach (PEntry dependancy in deps)
{
string newDir = Path.Combine(outFolder, dependancy.Type);
Console.WriteLine("Decrypting dependancy: " + dependancy.Type + "/" + dependancy.Name);
Directory.CreateDirectory(newDir);
if (File.Exists(skinsJsonFile))
Marketplace.CrackSkinsJson(skinsJsonFile);
CopyDirectory(dependancy.FilePath, newDir);
DecryptPack(newDir);
}
}
else if(cEntry.ProductType == "minecraftWorlds")
{
CopyDirectory(cEntry.FilePath, outFolder);
DecryptPack(outFolder);
PEntry[] deps = pReader.GetDependancies(cEntry);
foreach (PEntry dependancy in deps)
{
Console.WriteLine("Decrypting dependancy: " + dependancy.ProductType+"/"+dependancy.Name);
string newDir = Path.Combine(outFolder, dependancy.ProductType, Path.GetFileName(dependancy.FilePath));
CopyDirectory(dependancy.FilePath, newDir);
DecryptPack(newDir);
}
}
else
{
CopyDirectory(cEntry.FilePath, outFolder);
DecryptPack(outFolder);
}
if (Config.ZipPacks)
{
Console.WriteLine("Zipping: " + cListing.Name);
Console.WriteLine("Zipping: " + cEntry.Name);
string ext = "";
if (File.Exists(levelDatFile))
if (cEntry.ProductType == "world_templates")
ext += ".mctemplate";
else if (false)
else if (cEntry.ProductType == "minecraftWorlds")
ext += ".mcworld";
else if (cEntry.ProductType == "addon")
ext += ".mcaddon";
else
ext += ".mcpack";
@ -241,9 +274,10 @@ namespace McDecryptor
}
catch (Exception e)
{
Console.Error.WriteLine("Failed to decrypt: " + cListing.Name+ " "+e.Message);
Console.Error.WriteLine("Failed to decrypt: " + cEntry.Name + " " + e.Message);
Directory.Delete(outFolder, true);
}
}

View file

@ -1,73 +0,0 @@
//------------------------------------------------------------------------------
// <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 McDecryptor.Properties {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("McDecryptor.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>
internal static byte[] DefaultConfigFile {
get {
object obj = ResourceManager.GetObject("DefaultConfigFile", resourceCulture);
return ((byte[])(obj));
}
}
}
}

View file

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

View file

@ -1,57 +0,0 @@
# The Pillager Bay's McDecryptor Configuration File
# The path at which Minecraft keeps its resource packs and other data
# May need to change if your using a different version of bedrock (eg education edition)
# Otherwise this default is probably fine
MinecraftFolder: $LOCALAPPDATA\Packages\Microsoft.MinecraftUWP_8wekyb3d8bbwe
KeysDb: $EXECDIR\keys.db
# LocalState and LocalCache folders
# These folders only exist in UWP Versions of Bedrock
# On WIN32 versions it may be under "internalStorage"
LocalState: $MCDIR\LocalState
LocalCache: $MCDIR\LocalCache\McDecryptor
# Path to options.txt
# needed to decrypt .ent files since beta 1.19.
OptionsTxt: $LOCALSTATE\games\com.mojang\minecraftpe\options.txt
# Locations of Premium Cache (marketplace contents)
# Server Pack Cache (server resource packs)
# Realms Premium Cache (realms resource packs)
PremiumCache: $LOCALSTATE\premium_cache
ServerPackCache: $LOCALCACHE\packcache
RealmsPremiumCache: $LOCALCACHE\premiumcache
# Should it crack the packs (change skin packs to free, remove prid from worlds)
CrackThePacks: yes
# Should i zip packs to .mcpack/.mctemplate
ZipThePacks: yes
# Where to output the decrypted data, (deafult to install into the game)
OutputFolder: $EXECDIR\output_packs
# You can also add more search locations ontop of the default ones.
# Do this by using AdditionalSearchDir and a path, it will look there
# for packs.
# You can use AdditionalModuleDir to add new folders to look for encrypted data inside of the search folders
# normally it'll just look inside say "resource_packs" "skin_packs" "persona", "behaviour packs" etc
#AdditionalSearchDir: C:\Some\Folder\With\ResourcePacks
#AdditionalSearchDir: C:\Some\Other\Folder\With\ResourcePacks
#AdditionalModuleDir: worlds
# All Macros
# $LOCALAPPDATA - Local Application Data folder
# $APPDATA - Roaming Application Data folder
# $MCDIR - Minecraft Install Folder
# $EXECDIR - Folder the program is running in
# $LOCALSTATE - LocalState Folder
# $LOCALCACHE - LocalCache Folder.
# $PREMIUMCACHE - Premium Cache Folder
# $SERVERPACKCACHE - Server Pack Cache Folder
# $REALMSPREMIUMCACHE - Realms Pack Cache Folder
# $OUTFOLDER - Output folder