Load single GUI Map – with error-handling and reporting
public function gui_load_map(in gui_path) {
auto rc;
rc = GUI_load(gui_path);
if (rc != E_OK) {
tl_step("Failed to load GUI map",FAIL,"path = " & gui_path);
return(rc);
}
return (E_OK);
}
Load GUI Maps in a batch
public function gui_load_maps(in gui_path, in map_str) {
auto result, rc, i, c, files[];
result = E_OK;
c = split(map_str, files,"|");
for (i=1;i<=c;i++) {
rc = gui_load_map(gui_path & "\\" & str_trim(files[i]));
if (rc != E_OK)
result = E_GENERAL_ERROR;
}
return(result);
}