print out to the console if the content package Lua folder is being used or not

This commit is contained in:
Evil Factory
2022-07-08 19:44:23 -03:00
parent 1af1fe45ca
commit 8153e4af0c
@@ -473,6 +473,8 @@ namespace Barotrauma
if (File.Exists(LuaSetupFile)) if (File.Exists(LuaSetupFile))
{ {
PrintMessage("Using LuaSetup.lua from the Barotrauma Lua/ folder.");
try try
{ {
DynValue function = lua.LoadFile(LuaSetupFile); DynValue function = lua.LoadFile(LuaSetupFile);
@@ -485,6 +487,8 @@ namespace Barotrauma
} }
else if (luaPackage != null) else if (luaPackage != null)
{ {
PrintMessage("Using LuaSetup.lua from the content package.");
string path = Path.GetDirectoryName(luaPackage.Path); string path = Path.GetDirectoryName(luaPackage.Path);
try try