Kneesnap
Kneesnap
The bad news is, the default case is placed outside the decompiler and there isn't away to distinguish the case from the code that goes after the switch case. But,...
It has been cleaned up I think as far as we can clean it. https://github.com/Kneesnap/UndertaleModTool/compare/c73134618e80...7dd6271f2cfe
Examples of Decompiled Scripts: ```js var abc, c, a, foo; abc = 0 c = 0 a = 0 foo = "baaa" switch abc { case 123: case 456: default:...
NOTE: This issue should not be closed yet. The bytecode does not match, and we should still be able to make the resulting output perfect. Both of these issues do...
@colinator27 Alright, I spent quite a bit of time on this, it's not quite perfect, but #1 is fixed. The problem with fixing #2 is that I can't seem to...
I am currently working on this, I should have something that works tomorrow.
Fixed in https://github.com/krzys-h/UndertaleModTool/commit/22b1f4e987497daf1644346bb9d623280b8859c2
Still need to make continues work in switches.
Test Cases: ```gml switch argument0 { case 0: a = 1 case 1: return 101; } return 102; switch argument0 { case 0: a = 1 case 1: return 101;...
More Tests: ```gml //TODO: Get other tests. // Basic Testing: switch abc { case 123: case 456: default: if c return; foo = "bar" if a return; break } switch...