Merge https://github.com/Regalis11/Barotrauma into develop
This commit is contained in:
+1
-1
@@ -86,7 +86,7 @@ namespace Barotrauma
|
||||
|
||||
public string ModVersion = ContentPackage.DefaultModVersion;
|
||||
|
||||
public Md5Hash? ExpectedHash { get; private set; }
|
||||
public Md5Hash? ExpectedHash { get; set; }
|
||||
|
||||
public bool IsCore = false;
|
||||
|
||||
|
||||
@@ -3560,6 +3560,7 @@ namespace Barotrauma
|
||||
foreach (var subElement in info.SubmarineElement.Elements())
|
||||
{
|
||||
int id = subElement.GetAttributeInt("ID", -1);
|
||||
if (id == -1) { continue; }
|
||||
Identifier identifier = subElement.GetAttributeIdentifier("identifier", string.Empty);
|
||||
if (entities.TryGetValue(id, out Identifier duplicateEntity))
|
||||
{
|
||||
|
||||
@@ -163,7 +163,7 @@ namespace Barotrauma.Steam
|
||||
CrossThread.RequestExecutionOnMainThread(() => ContentPackageManager.LocalPackages.Refresh());
|
||||
}
|
||||
|
||||
public static async Task CreatePublishStagingCopy(string modVersion, ContentPackage contentPackage)
|
||||
public static async Task CreatePublishStagingCopy(string title, string modVersion, ContentPackage contentPackage)
|
||||
{
|
||||
await Task.Yield();
|
||||
|
||||
@@ -184,11 +184,12 @@ namespace Barotrauma.Steam
|
||||
throw new Exception("Staging copy could not be loaded",
|
||||
result.TryUnwrapFailure(out var exception) ? exception : null);
|
||||
}
|
||||
|
||||
//Load filelist.xml and write the hash into it so anyone downloading this mod knows what it should be
|
||||
|
||||
//Load filelist.xml and write the hash into it so anyone downloading this mod knows what it should be
|
||||
ModProject modProject = new ModProject(tempPkg)
|
||||
{
|
||||
ModVersion = modVersion
|
||||
ModVersion = modVersion,
|
||||
ExpectedHash = tempPkg.CalculateHash(name: title, modVersion: modVersion)
|
||||
};
|
||||
modProject.Save(stagingFileListPath);
|
||||
}
|
||||
|
||||
@@ -478,7 +478,7 @@ namespace Barotrauma.Steam
|
||||
bool stagingReady = false;
|
||||
Exception? stagingException = null;
|
||||
TaskPool.Add("CreatePublishStagingCopy",
|
||||
SteamManager.Workshop.CreatePublishStagingCopy(modVersion, localPackage),
|
||||
SteamManager.Workshop.CreatePublishStagingCopy(editor.Title ?? localPackage.Name, modVersion, localPackage),
|
||||
(t) =>
|
||||
{
|
||||
stagingReady = true;
|
||||
|
||||
Reference in New Issue
Block a user