diff --git a/bhl.inc.php b/bhl.inc.php index bc5e145..9cc138e 100644 --- a/bhl.inc.php +++ b/bhl.inc.php @@ -263,35 +263,13 @@ function bhl_handle_error_result(array $ret_out, $err_file, $exit = true) function bhl_clean() { - global $GAME_ROOT; - - $files = scan_files_rec(array(config_base_dir()), array('js', 'gen.bhl')); - foreach($files as $file) - { - $is_conf = strpos($file, '.gen.bhl') === false; - - if($is_conf) - { - //skipping .def.js files - if(strpos($file, '.def.js') !== false) - continue; - @touch($file); - } - else if(!$is_conf) - { - ensure_rm($file); - } - } - bhl_clean_cache(); - bhl_shell_ensure("clean"); } function bhl_clean_cache() { - global $GAME_ROOT; - ensure_rm("$GAME_ROOT/build/bhl/"); + ensure_rm(bhl_proj()->tmp_dir); } function bhl_show_position($line, $row, array $lines)