1.1.0 - install + stat gen
This commit is contained in:
@@ -9,7 +9,8 @@ namespace MxFilterGen2
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
public static string version = "1.0.0";
|
||||
public static string version = "1.1.0";
|
||||
public static string docpath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Message.Splash("MxFilterGen2", "mikx");
|
||||
@@ -18,10 +19,37 @@ namespace MxFilterGen2
|
||||
string fname = JSON.settings.GetName();
|
||||
foreach (string s in JSON.settings.GetStructure())
|
||||
{
|
||||
Message.CMW($"Section: {s}",true,2);
|
||||
if (s != "GEN")
|
||||
{
|
||||
Message.CMW($"Section: {s}", true, 2);
|
||||
foreach (string f in JSON.settings.GetType())
|
||||
{
|
||||
Compiler.section.Compile(s, f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Generator.Body.Gen();
|
||||
Generator.Boots.Gen();
|
||||
Generator.Bows.Gen();
|
||||
Generator.Claws.Gen();
|
||||
Generator.Daggers.Gen();
|
||||
Generator.Focus.Gen();
|
||||
Generator.Gloves.Gen();
|
||||
Generator.Helmets.Gen();
|
||||
Generator.OneHander.Gen();
|
||||
Generator.Shields.Gen();
|
||||
Generator.Staves.Gen();
|
||||
Generator.TwoHander.Gen();
|
||||
Generator.Wands.Gen();
|
||||
|
||||
var gens = Directory.GetFiles("out/Gen");
|
||||
string genstring = "";
|
||||
foreach (var g in gens)
|
||||
{
|
||||
foreach (string f in JSON.settings.GetType())
|
||||
{
|
||||
Compiler.section.Compile(s, f);
|
||||
File.AppendAllText($"out/{f}/GEN.filter",File.ReadAllText(g));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,15 +69,32 @@ namespace MxFilterGen2
|
||||
{
|
||||
File.AppendAllText(outp, $"# {sspl}{Environment.NewLine}");
|
||||
}
|
||||
File.AppendAllText(outp, $"{Environment.NewLine}");
|
||||
File.AppendAllText(outp, $"{Environment.NewLine}");
|
||||
foreach (var structure in JSON.settings.GetStructure())
|
||||
{
|
||||
{
|
||||
File.AppendAllText("out/" + fname + "_" + f + ".filter", string.Format("#### SECTION: {0}", (object)structure) + Environment.NewLine);
|
||||
File.AppendAllText("out/" + fname + "_" + f + ".filter", File.ReadAllText(string.Format("out/" + f + "/" + structure + ".filter")));
|
||||
File.AppendAllText("out/" + fname + "_" + f + ".filter", Environment.NewLine ?? "");
|
||||
}
|
||||
}
|
||||
Console.ReadKey();
|
||||
|
||||
if (JSON.settings.GetInstall())
|
||||
{
|
||||
Message.CMW($"Install is \"True\". Installing to the game directory...", true, 1);
|
||||
foreach (string f in JSON.settings.GetType())
|
||||
{
|
||||
File.Copy($"out/MxFilter_{f}.filter", $@"{docpath}\My Games\Path of Exile 2\{JSON.settings.GetName()}_{f}.filter", true);
|
||||
}
|
||||
foreach (var s in Directory.EnumerateFiles("sound"))
|
||||
{
|
||||
string sf = Path.GetFileName(s);
|
||||
File.Copy($"{s}", $@"{docpath}\My Games\Path of Exile 2\{sf}", true);
|
||||
}
|
||||
} else
|
||||
{
|
||||
int fc = JSON.settings.GetType().Count;
|
||||
Message.CMW($"Install is \"False\". Use the {fc} Filter(s) from the \"out\" directory.", true, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user