Skip to content

Commit

Permalink
Fixed AS2 Class detection - TemporaryRegisterMark handling
Browse files Browse the repository at this point in the history
  • Loading branch information
jindrapetrik committed Mar 19, 2023
1 parent 79f24b4 commit fe41355
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ All notable changes to this project will be documented in this file.
- AS3 - getouterscope instruction support
- [#1990] Cloning DefineSprite causing incorrect tags written
- Do not display fonts added to stage (for example in testdata/as2.swf, the vertical text - sprite 10)
- AS2 Class detection - TemporaryRegisterMark handling

### Changed
- AS1/2/3 P-code - format Number values with EcmaScript toString function
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import com.jpexs.decompiler.flash.action.model.SetVariableActionItem;
import com.jpexs.decompiler.flash.action.model.StoreRegisterActionItem;
import com.jpexs.decompiler.flash.action.model.TemporaryRegister;
import com.jpexs.decompiler.flash.action.model.TemporaryRegisterMark;
import com.jpexs.decompiler.flash.action.model.clauses.ClassActionItem;
import com.jpexs.decompiler.flash.action.model.clauses.InterfaceActionItem;
import com.jpexs.decompiler.flash.action.swf4.RegisterNumber;
Expand Down Expand Up @@ -699,6 +700,8 @@ private boolean checkClassContent(List<GraphTargetItem> parts, HashMap<String, G
//TODO: maybe somehow display in the class ?
} else if (item instanceof ScriptEndItem) {
//ignore
} else if (item instanceof TemporaryRegisterMark) {
//ignore
} else {
throw new AssertException("unknown item - " + item.getClass().getSimpleName());
}
Expand Down

0 comments on commit fe41355

Please sign in to comment.