Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Added preliminary support for iOS (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
n0k0m3 authored Feb 2, 2020
1 parent 810d293 commit a394d60
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
1 change: 1 addition & 0 deletions v3.x.x/main/autopatcher/ConfigMgr.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ internal enum Key
{
Version,
DevelopmentMode,
iOS,
Tmp,
Thirdparty,
RemoveSkill,
Expand Down
21 changes: 15 additions & 6 deletions v3.x.x/main/autopatcher/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ internal static class Program
internal static bool Abort;
internal static List<string> ListOfLua;
internal static Dictionary<Mods, bool> 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<Action> _listOfAction;

Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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)}\"");
}
}));
}

Expand Down
3 changes: 2 additions & 1 deletion v3.x.x/main/autopatcher/Resources/Configuration.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[Common]
Version=v3.0.1
Version=v3.0.4
DevelopmentMode=false
iOS=false

[Path]
Tmp=tmp
Expand Down

0 comments on commit a394d60

Please sign in to comment.