mirror of
https://github.com/4sval/FModel.git
synced 2026-03-21 17:24:26 -05:00
Demangle
This commit is contained in:
parent
bca41b0a5c
commit
ed129819de
|
|
@ -1036,7 +1036,7 @@ public class CUE4ParseViewModel : ViewModel
|
|||
catch (Exception e) {}
|
||||
|
||||
|
||||
var cpp = string.Empty;
|
||||
var cppList = new List<string>();
|
||||
for (var i = 0; i < pkg.ExportMapLength; i++)
|
||||
{
|
||||
var pointer = new FPackageIndex(pkg, i + 1).ResolvedObject;
|
||||
|
|
@ -1047,7 +1047,16 @@ public class CUE4ParseViewModel : ViewModel
|
|||
if (dummy is not UClass || pointer.Object.Value is not UClass blueprint)
|
||||
continue;
|
||||
|
||||
cpp += blueprint.DecompileBlueprintToPseudo(meta);
|
||||
cppList.Add(blueprint.DecompileBlueprintToPseudo(meta));
|
||||
}
|
||||
|
||||
var cpp = cppList.Count > 1
|
||||
? string.Join("\n\n", cppList)
|
||||
: cppList.FirstOrDefault() ?? string.Empty;
|
||||
|
||||
if (entry.Path.Contains("_Verse.uasset"))
|
||||
{
|
||||
cpp = Regex.Replace(cpp, "__verse_0x[a-fA-F0-9]{8}_", ""); // UnmangleCasedName
|
||||
}
|
||||
|
||||
TabControl.SelectedTab.SetDocumentText(cpp, false, false);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user