Verify that the launched exe belongs to the selected content package, and if not, ask if the player wants to relaunch with the correct exe. Closes #955

This commit is contained in:
Joonas Rikkonen
2018-12-02 17:41:21 +02:00
parent 6695c733a7
commit 1c1fe3a161
5 changed files with 53 additions and 2 deletions
@@ -13,7 +13,8 @@ namespace Barotrauma
Item,
Character,
Structure,
Executable,
Executable,
ServerExecutable,
LocationTypes,
LevelGenerationParameters,
RandomEvents,
@@ -144,7 +145,7 @@ namespace Barotrauma
var md5 = MD5.Create();
foreach (ContentFile file in files)
{
if (file.type == ContentType.Executable) continue;
if (file.type == ContentType.Executable || file.type == ContentType.ServerExecutable) continue;
try
{