Skip to content

Commit 8a7e2bf

Browse files
committed
Add debug check for class nativity
1 parent eb39a93 commit 8a7e2bf

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

X2WOTCCommunityHighlander/Src/X2WOTCCommunityHighlander/Classes/X2DownloadableContentInfo_X2WOTCCommunityHighlander.uc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,21 @@ static event OnPostTemplatesCreated()
4141
class'CHHelpers'.static.RebuildPerkContentCache();
4242
// End Issue #123
4343
}
44+
45+
DebugCheckClassIsNative();
46+
}
47+
48+
static function DebugCheckClassIsNative()
49+
{
50+
local array<Object> CDOs;
51+
local Object CDO;
52+
53+
CDOs = class'XComEngine'.static.GetClassDefaultObjects(class'Object');
54+
55+
foreach CDOs(CDO)
56+
{
57+
`log((CDO.class.IsNative() ? "Y" : "N") @ PathName(CDO.class));
58+
}
4459
}
4560

4661
// Because 1.19.0 broke TLP weapons/Chosen weapons attachments without a retroactive way to fix it,

0 commit comments

Comments
 (0)