This commit is contained in:
Evil Factory
2021-08-20 19:01:28 -03:00
parent 529c1643a8
commit 1ff03398d6
2 changed files with 25 additions and 0 deletions
@@ -6,6 +6,7 @@ using Microsoft.Xna.Framework;
using Barotrauma.Networking;
using System.Threading.Tasks;
using Barotrauma.Items.Components;
using System.IO;
namespace Barotrauma
{
@@ -397,6 +398,26 @@ namespace Barotrauma
}
private class LuaFile
{
// TODO: SANDBOXING
public static string Read(string path)
{
return File.ReadAllText(path);
}
public static void Write(string path, string text)
{
File.WriteAllText(path, text);
}
public static bool Exists(string path)
{
return File.Exists(path);
}
}
// hooks:
// chatMessage
// think