1
Vote

PSI Location is static

description

if (File.Exists(@"C:\Program Files (x86)\Steam\SteamApps\common\Terraria\TerrariaServer.exe")) {
            psi.WorkingDirectory = @"C:\Program Files (x86)\Steam\SteamApps\common\Terraria\";
        } else if (File.Exists(@"C:\Program Files\Steam\SteamApps\common\Terraria\TerrariaServer.exe")) {
            psi.WorkingDirectory = @"C:\Program Files\Steam\SteamApps\common\Terraria\";
        } else {
            //not ready for this yet!
            this.RequestSvcStop = true;
        }

comments