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 "data388.txt"
mem_lock *sf_mem_lock;
new_mem_lock();
sf_mem_lock=mem_lock_tmp;
sf_mem_lock->type=3;
libqb_check_stack();
if (is_error_pending()) goto exit_subfunc;
S_60993:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(__STRING_OS,qbs_new_txt_len("WIN",3))))||is_error_pending()){
if(qbevent){evnt(28182,15634,"ide_methods.bas");if(r)goto S_60993;}
do{
sub_shell2(qbs_new_txt_len("cd >.\\internal\\temp\\root.txt",28),2);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,15635,"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(28182,15636,"ide_methods.bas");}while(r);
do{
tmp_fileno= 150 ;
if (is_error_pending()) goto skip7171;
sub_file_line_input_string(tmp_fileno,_FUNC_IDEZGETROOT_STRING_A);
if (is_error_pending()) goto skip7171;
skip7171:
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,15637,"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(28182,15638,"ide_methods.bas");}while(r);
do{
sub_close( 150 ,1);
if(!qbevent)break;evnt(28182,15639,"ide_methods.bas");}while(r);
do{
goto exit_subfunc;
if(!qbevent)break;evnt(28182,15640,"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(28182,15642,"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(28182,15643,"ide_methods.bas");}while(r);
do{
tmp_fileno= 150 ;
if (is_error_pending()) goto skip7172;
sub_file_line_input_string(tmp_fileno,_FUNC_IDEZGETROOT_STRING_A);
if (is_error_pending()) goto skip7172;
skip7172:
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,15644,"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(28182,15645,"ide_methods.bas");}while(r);
do{
sub_close( 150 ,1);
if(!qbevent)break;evnt(28182,15646,"ide_methods.bas");}while(r);
do{
goto exit_subfunc;
if(!qbevent)break;evnt(28182,15647,"ide_methods.bas");}while(r);
}
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free388.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;
}
