Potential fix for the wrong publicized folder being loaded
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user