qbs* FUNC_IDEZGETROOT(){
qbs *tqbs;
ptrszint tmp_long;
int32 tmp_fileno;
uint32 qbs_tmp_base=qbs_tmp_list_nexti;
uint8 *tmp_mem_static_pointer=mem_static_pointer;
uint32 tmp_cmem_sp=cmem_sp;
#include "data313.txt"
mem_lock *sf_mem_lock;
new_mem_lock();
sf_mem_lock=mem_lock_tmp;
sf_mem_lock->type=3;
if (is_error_pending()) goto exit_subfunc;
S_54639:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(__STRING_OS,qbs_new_txt_len("WIN",3))))||is_error_pending()){
if(qbevent){evnt(24235,15110,"ide_methods.bas");if(r)goto S_54639;}
do{
sub_shell2(qbs_new_txt_len("cd >.\\internal\\temp\\root.txt",28),2);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24235,15111,"ide_methods.bas");}while(r);
do{
sub_open(qbs_new_txt_len(".\\internal\\temp\\root.txt",24), 3 ,NULL,NULL, 150 ,NULL,0);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24235,15112,"ide_methods.bas");}while(r);
do{
tmp_fileno= 150 ;
if (is_error_pending()) goto skip6229;
sub_file_line_input_string(tmp_fileno,_FUNC_IDEZGETROOT_STRING_A);
if (is_error_pending()) goto skip6229;
skip6229:
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24235,15113,"ide_methods.bas");}while(r);
do{
qbs_set(_FUNC_IDEZGETROOT_STRING_IDEZGETROOT,_FUNC_IDEZGETROOT_STRING_A);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24235,15114,"ide_methods.bas");}while(r);
do{
sub_close( 150 ,1);
if(!qbevent)break;evnt(24235,15115,"ide_methods.bas");}while(r);
do{
goto exit_subfunc;
if(!qbevent)break;evnt(24235,15116,"ide_methods.bas");}while(r);
}else{
do{
sub_shell2(qbs_new_txt_len("pwd >./internal/temp/root.txt",29),2);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24235,15118,"ide_methods.bas");}while(r);
do{
sub_open(qbs_new_txt_len("./internal/temp/root.txt",24), 3 ,NULL,NULL, 150 ,NULL,0);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24235,15119,"ide_methods.bas");}while(r);
do{
tmp_fileno= 150 ;
if (is_error_pending()) goto skip6230;
sub_file_line_input_string(tmp_fileno,_FUNC_IDEZGETROOT_STRING_A);
if (is_error_pending()) goto skip6230;
skip6230:
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24235,15120,"ide_methods.bas");}while(r);
do{
qbs_set(_FUNC_IDEZGETROOT_STRING_IDEZGETROOT,_FUNC_IDEZGETROOT_STRING_A);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24235,15121,"ide_methods.bas");}while(r);
do{
sub_close( 150 ,1);
if(!qbevent)break;evnt(24235,15122,"ide_methods.bas");}while(r);
do{
goto exit_subfunc;
if(!qbevent)break;evnt(24235,15123,"ide_methods.bas");}while(r);
}
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free313.txt"
if ((tmp_mem_static_pointer>=mem_static)&&(tmp_mem_static_pointer<=mem_static_limit)) mem_static_pointer=tmp_mem_static_pointer; else mem_static_pointer=mem_static;
cmem_sp=tmp_cmem_sp;
qbs_maketmp(_FUNC_IDEZGETROOT_STRING_IDEZGETROOT);return _FUNC_IDEZGETROOT_STRING_IDEZGETROOT;
}
