AS1 Direct editation - DO NOT group pushes, until we figure out how to do it correctly.

This commit is contained in:
Jindra Petřík
2025-04-06 12:18:43 +02:00
parent c145a76df7
commit 954273ef7d
2 changed files with 18 additions and 3 deletions
@@ -146,7 +146,23 @@ public class ActionSourceGenerator implements SourceGenerator {
}
private List<GraphSourceItem> groupPushes(List<GraphSourceItem> items) {
if (swfVersion <= 4) {
//TODO: This should take in account important offsets (jumps)
//And not group Pushes over different parts of code
/*Like:
If locA
Push "A"
Push "B"
locA:
Push "C"
Should not be grouped to Push "A","B","C"
*/
return items;
//Commented out for now...
/*if (swfVersion <= 4) {
return items;
}
List<GraphSourceItem> ret = new ArrayList<>();
@@ -165,7 +181,7 @@ public class ActionSourceGenerator implements SourceGenerator {
prevPush = null;
}
}
return ret;
return ret;*/
}
private List<Action> nonempty(List<Action> list) {