Skip to content

Commit 245d57f

Browse files
committed
I probably should have thought that out further
1 parent df361e9 commit 245d57f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/ghidra/ScriptWrapper.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -516,15 +516,15 @@ boolean typeIsStruct(DataType type, Platform platform) {
516516
if (!(type instanceof Composite)) {
517517
return false;
518518
}
519+
if (type.getName().startsWith("CCPoint") || type.getName().startsWith("CCSize") || type.getName().startsWith("CCRect")) {
520+
return true;
521+
}
519522
if (platform == Platform.WINDOWS32 || platform == Platform.WINDOWS64) {
520523
return type.getLength() != 4 && type.getLength() != 8;
521524
}
522525
if (type.getName().startsWith("RGBA") || type.getName().startsWith("HSV")) {
523526
return platform == Platform.MAC_INTEL;
524527
}
525-
if (type.getName().startsWith("CCPoint") || type.getName().startsWith("CCSize") || type.getName().startsWith("CCRect")) {
526-
return true;
527-
}
528528
if (type.getLength() > 16) {
529529
return true;
530530
}

0 commit comments

Comments
 (0)