Skip to content

Commit 1dc09e5

Browse files
v2.5.0_beta : Language Converter BETA
1 parent 09afe32 commit 1dc09e5

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

EZCode/Converter.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ public string Convert(string code, ProgrammingLanguage language)
182182
{
183183
ProgramFiles = new ProgramFile[]
184184
{
185-
new ProgramFile("Main.py", converted),
186-
new ProgramFile("Main.py2", PreRequisites())
185+
new ProgramFile("Main.py", converted)
187186
};
187+
if (PreRequisites().Trim() != "") ProgramFiles = ProgramFiles.Append(new ProgramFile("Main.py2", PreRequisites())).ToArray();
188188
if (Import.ContainsMethod)
189189
{
190190
int ttab = 0;
@@ -196,7 +196,7 @@ public string Convert(string code, ProgrammingLanguage language)
196196

197197
converted = "# Your converted python code" + Environment.NewLine + converted;
198198
string pre = PreRequisites();
199-
if (pre != "") converted = "# Converted python prerequisites" + Environment.NewLine + pre + converted;
199+
if (pre.Trim() != "") converted = "# Converted python prerequisites" + Environment.NewLine + pre + converted;
200200

201201
if (converted.StartsWith(Environment.NewLine)) converted = converted.Remove(0, Environment.NewLine.Length);
202202

EZCode/EZCode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class EzCode
2323
/// <summary>
2424
/// Directory of the script playing
2525
/// </summary>
26-
public static string Version { get; } = "2.4.6";
26+
public static string Version { get; } = "2.5.0_beta";
2727

2828
#region Variables_and_Initializers
2929
/// <summary>

Installer/Install.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public static void DownloadMain()
4242
try
4343
{
4444
string type = "";
45+
try { type = EZCode.EzCode.Version.Split("_")[1]; } catch { }
4546
string realTag = $"{EZCode.EzCode.Version}";
4647
string releaseTag = type != "" ? $"v{realTag}_{type.ToLower()}" : $"v{realTag}";
4748
string releaseTitle = type != "" ? $"v{realTag}_{type}" : $"v{realTag}";

0 commit comments

Comments
 (0)