Skip to content

Commit 0e4d043

Browse files
committed
Promise Mascot Agency support
1 parent 819c046 commit 0e4d043

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

FModel/Extensions/EnumExtensions.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.ComponentModel;
33
using System.Runtime.CompilerServices;
4+
using CUE4Parse.UE4.Versions;
45

56
namespace FModel.Extensions;
67

@@ -18,7 +19,8 @@ public static string GetDescription(this Enum value)
1819

1920
var suffix = $"{value:D}";
2021
var current = Convert.ToInt32(suffix);
21-
var target = current & ~0xF;
22+
var mask = value.GetType() == typeof(EGame) ? ~0xFFFF : ~0xF;
23+
var target = current & mask;
2224
if (current != target)
2325
{
2426
var values = Enum.GetValues(value.GetType());

0 commit comments

Comments
 (0)