UndertaleModTool icon indicating copy to clipboard operation
UndertaleModTool copied to clipboard

Fix continue statements inside of switch statements which are inside of a loop

Open colinator27 opened this issue 6 years ago • 1 comments

Here's an example:

while (a < b)
{
    switch abc
    {
        case 123:
            a = b
            continue
    }
}

The switch detector isn't able to handle this, because it expects the next block to be the end of the switch statement, which it clearly isn't. This can probably be detected easily.

colinator27 avatar Jun 10 '19 21:06 colinator27

Current Decompilation:

while (a < b)
{
    switch abc
    {
        case 123:
            a = b
            break
        default:
            break
    }
}

Kneesnap avatar Jun 16 '19 03:06 Kneesnap