diff --git a/v3.x.x/main/autopatcher/ConfigMgr.cs b/v3.x.x/main/autopatcher/ConfigMgr.cs index 1123155..7a9035f 100644 --- a/v3.x.x/main/autopatcher/ConfigMgr.cs +++ b/v3.x.x/main/autopatcher/ConfigMgr.cs @@ -65,6 +65,7 @@ internal enum Key { Version, DevelopmentMode, + iOS, Tmp, Thirdparty, RemoveSkill, diff --git a/v3.x.x/main/autopatcher/Program.cs b/v3.x.x/main/autopatcher/Program.cs index 9fa3120..5cdeb88 100644 --- a/v3.x.x/main/autopatcher/Program.cs +++ b/v3.x.x/main/autopatcher/Program.cs @@ -16,9 +16,10 @@ internal static class Program internal static bool Abort; internal static List ListOfLua; internal static Dictionary ListOfMod; - internal static string DirName = "CAB-android"; + internal static string DirName = "CAB-"; internal static string Arch; internal static string LuaArch; + internal static string Os; private static List _listOfAction; @@ -172,6 +173,11 @@ private static void Initialize() //CheckVersion(); CheckDependencies(); + if ((bool) ConfigMgr.GetValue(ConfigMgr.Key.iOS)) + Os = @"ios"; + else + Os = @"android"; + AddLua(Resources.Aircraft); AddLua(Resources.Enemy); @@ -253,15 +259,15 @@ private static void Main(string[] args) { Arch = @"64"; LuaArch = @"64"; - Utils.LogInfo(@"Selected scripts is 64 bits", true, true); + Utils.LogInfo(@"Selected scripts is 64 bits "+Os, true, true); } else if (fileName.Contains("32")) { Arch = @"32"; - Utils.LogInfo(@"Selected scripts is 32 bits", true, true); + Utils.LogInfo(@"Selected scripts is 32 bits "+Os, true, true); } - DirName += Arch; + DirName = DirName + Os + Arch; Clean(fileName); @@ -434,8 +440,11 @@ private static void Main(string[] args) foreach (var lua in ListOfLua) tasks.Add(Task.Factory.StartNew(() => { - Utils.Command( - $"Azcli{LuaArch}.exe --dev --recompile \"{PathMgr.Lua(modName, lua)}\""); + if (Os == "android") + { + Utils.Command( + $"Azcli{LuaArch}.exe --dev --recompile \"{PathMgr.Lua(modName, lua)}\""); + } })); } diff --git a/v3.x.x/main/autopatcher/Resources/Configuration.ini b/v3.x.x/main/autopatcher/Resources/Configuration.ini index b7fb60b..71dd65b 100644 --- a/v3.x.x/main/autopatcher/Resources/Configuration.ini +++ b/v3.x.x/main/autopatcher/Resources/Configuration.ini @@ -1,6 +1,7 @@ [Common] -Version=v3.0.1 +Version=v3.0.4 DevelopmentMode=false +iOS=false [Path] Tmp=tmp