Skip to content

Commit

Permalink
Fix reload and build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
JavidPack committed Jul 3, 2019
1 parent 3d9a081 commit efc4b13
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion ModdersToolkit.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using ModdersToolkit.Tools;
using ReLogic.OS;
using System.Collections.Generic;
using Terraria;
using Terraria.DataStructures;
Expand Down Expand Up @@ -33,7 +34,7 @@ public override void Load()
instance = this;

tools = new List<Tool>();
if (ModLoader.windows) // REPL tool not working non-windows yet. Is this the attribute problem?
if (Platform.IsWindows) // REPL tool not working non-windows yet. Is this the attribute problem?
{
tools.Add(new Tools.REPL.REPLTool());
}
Expand Down
4 changes: 2 additions & 2 deletions Tools/REPL/REPLBackend.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void Reset()
}
try
{
if (assembly.FullName.Contains("mscorlib") || assembly.FullName.Contains("System.Core,") || assembly.FullName.Contains("System,") || assembly.FullName.Contains("System"))
if (assembly.IsDynamic || assembly.FullName.Contains("mscorlib") || assembly.FullName.Contains("System.Core,") || assembly.FullName.Contains("System,") || assembly.FullName.Contains("System") || (!string.IsNullOrEmpty(assembly.Location) && Path.GetFileName(Path.GetDirectoryName(assembly.Location)) == "ModCompile"))
{

}
Expand Down Expand Up @@ -76,7 +76,7 @@ public void Reset()
}
try
{
evaluator.Run("using Terraria");
evaluator.Run("using Terraria;");
}
catch (Exception)
{
Expand Down
2 changes: 1 addition & 1 deletion Tools/Textures/TextureUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public TextureUI(UserInterface userInterface)
static string folder = Path.Combine(Main.SavePath, "Mods", "Cache");
static string path = Path.Combine(folder, filename);

static string ModSourcePath = Path.Combine(Program.SavePath, "Mod Sources");
static string ModSourcePath = Path.Combine(Main.SavePath, "Mod Sources");

public override void OnInitialize()
{
Expand Down

0 comments on commit efc4b13

Please sign in to comment.