From d0a08cfe0952e3169bec34010b5e860ebbcd1e94 Mon Sep 17 00:00:00 2001 From: oldcrate <139006122+oldcrate@users.noreply.github.com> Date: Fri, 23 Oct 2026 21:30:37 +0200 Subject: [PATCH] fix: add ObjectHash to decoded PHXMFolder --- scripts/map/MapParser.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/map/MapParser.cs b/scripts/map/MapParser.cs index a466d6ef..839ec842 100644 --- a/scripts/map/MapParser.cs +++ b/scripts/map/MapParser.cs @@ -718,6 +718,7 @@ public static Map PHXMFolder(string path) metadata.TryGetValue("ArtistPlatform", out Variant artistPlatform); byte[] hash = Misc.HashFiles([Path.Combine(path, "metadata.json"), Path.Combine(path, "objects.phxmo")]); + byte[] objHash = SHA256.HashData(File.ReadAllBytes(Path.Combine(path, "objects.phxmo"))); DateTime metadataModified = File.GetLastWriteTime(Path.Combine(path, "metadata.json")); DateTime objectsModified = File.GetLastWriteTime(Path.Combine(path, "objects.phxmo")); @@ -742,6 +743,7 @@ public static Map PHXMFolder(string path) ) { MetadataObjectHash = Convert.ToHexStringLower(hash), + ObjectHash = Convert.ToHexStringLower(objHash), LastModifiedMetadata = metadataModified.ToString("O", CultureInfo.InvariantCulture), LastModifiedNotes = objectsModified.ToString("O", CultureInfo.InvariantCulture), };