From bb524178eb299e2970bceebc914d57c6b8b285f8 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Sat, 7 Feb 2009 07:20:44 +0000 Subject: [PATCH] Use doorscan if it exists. --- exec/lbshell.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/exec/lbshell.js b/exec/lbshell.js index b6ae1d7703..76e266be98 100644 --- a/exec/lbshell.js +++ b/exec/lbshell.js @@ -704,7 +704,19 @@ while(bbs.online) { continue; } clear_screen(); - bbs.exec_xtrn(xtrn_area.sec_list[curr_xtrnsec].prog_list[parseInt(x_prog)].number); + if(file_exists("../xtrn/doorscan/doorscan.js")) { + try { + load("../xtrn/doorscan/doorscan.js","run",xtrn_area.sec_list[curr_xtrnsec].prog_list[parseInt(x_prog)].code); + } + catch(e) { + console.writeln("DOORSCAN ERROR: "+e); + log("Error running "+xtrn_area.sec_list[xsec].prog_list[i].code+" "+e); + } + } + else { + bbs.exec_xtrn(xtrn_area.sec_list[curr_xtrnsec].prog_list[parseInt(x_prog)].number); + } + draw_main(true); xtrnsec.draw(); } -- GitLab