Welcome to the GBF Test Portal

This was built to track decompiler and CFG progress.

Decompiler Output

Backtrace

{
  "frames": []
}

Context

{
  "current_block_id": {
    "index": 2,
    "address": 12097,
    "block_type": "Normal"
  },
  "current_ast_node_stack": [],
  "current_instruction": {
    "opcode": "ObjRemoveString",
    "operand": null,
    "address": 12096
  }
}
function onFileDownloaded(filename#0)
{
    // RegionId(0)
    // RegionId(1)
    if (temp.filename in this.watchedfiles) 
    {
        lit#4 = "scriptfiles/";
        fn_call#7 = temp.textlines.loadlines(lit#4 @ temp.filename);
        lit#8 = false;
        lit#9 = "editastext";
        fn_call#11 = showTextEditor#10(lit#9, temp.filename, temp.textlines, lit#8);
        builtin_fn_call#12 = this.watchedfiles.remove(temp.filename);
    }
    // RegionId(2)
    // RegionId(3)
    if (temp.filename == this.filetoopen) 
    {
        lit#14 = "";
        this.filetoopen = lit#14;
        lit#15 = 0;
        fn_call#17 = Adventure_openDefaultViewer#16(temp.filename, lit#15);
    }
    lit#18 = 0;
    return lit#18;
}