Potential fix for the wrong publicized folder being loaded

This commit is contained in:
EvilFactory
2023-11-02 19:40:36 -03:00
parent 759f66cf9f
commit 46a841b5c1
2 changed files with 16 additions and 2 deletions
@@ -53,6 +53,18 @@ namespace Barotrauma
public const bool IsClient = true;
#endif
public static bool IsRunningInsideWorkshop
{
get
{
#if SERVER
return Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location) == Directory.GetCurrentDirectory();
#else
return false; // unnecessary but just keeps things clear that this is NOT for client stuff
#endif
}
}
private static int executionNumber = 0;