added detection of a special file called "usecurrentdirectoryforsaves" for shady hosting providers
This commit is contained in:
@@ -73,6 +73,11 @@ namespace Barotrauma
|
||||
Directory.SetCurrentDirectory(executableDir);
|
||||
}
|
||||
|
||||
if (File.Exists("usecurrentdirectoryforsaves"))
|
||||
{
|
||||
SaveUtil.SaveFolder = Environment.CurrentDirectory;
|
||||
}
|
||||
|
||||
Game = new GameMain(args);
|
||||
|
||||
Game.Run();
|
||||
|
||||
Reference in New Issue
Block a user