Fix mixed spaces and tabs

This commit is contained in:
EvilFactory
2022-10-28 12:29:35 -03:00
parent 43810a3509
commit 5e29d1d8ba
11 changed files with 1864 additions and 1864 deletions
@@ -8,21 +8,21 @@ using System.Linq;
namespace Barotrauma
{
class LuaScriptLoader : ScriptLoaderBase
{
class LuaScriptLoader : ScriptLoaderBase
{
public override object LoadFile(string file, Table globalContext)
{
if (!LuaCsFile.IsPathAllowedLuaException(file, false)) return null;
return File.ReadAllText(file);
}
public override object LoadFile(string file, Table globalContext)
{
if (!LuaCsFile.IsPathAllowedLuaException(file, false)) return null;
return File.ReadAllText(file);
}
public override bool ScriptFileExists(string file)
{
if (!LuaCsFile.IsPathAllowedLuaException(file, false)) return false;
public override bool ScriptFileExists(string file)
{
if (!LuaCsFile.IsPathAllowedLuaException(file, false)) return false;
return File.Exists(file);
}
return File.Exists(file);
}
}
}
}