qbs* FUNC_IDEZGETFILEPATH(qbs*_FUNC_IDEZGETFILEPATH_STRING_ROOT,qbs*_FUNC_IDEZGETFILEPATH_STRING_F){
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 "data391.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;
do{
qbs_set(_FUNC_IDEZGETFILEPATH_STRING_P,FUNC_IDEZTAKEPATH(_FUNC_IDEZGETFILEPATH_STRING_F));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,15746,"ide_methods.bas");}while(r);
S_61103:;
if ((qbs_cleanup(qbs_tmp_base,-(_FUNC_IDEZGETFILEPATH_STRING_P->len== 0 )))||is_error_pending()){
if(qbevent){evnt(28182,15749,"ide_methods.bas");if(r)goto S_61103;}
do{
qbs_set(_FUNC_IDEZGETFILEPATH_STRING_P,_FUNC_IDEZGETFILEPATH_STRING_ROOT);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,15749,"ide_methods.bas");}while(r);
}
S_61106:;
if ((qbs_cleanup(qbs_tmp_base,func__direxists(qbs_add(qbs_add(_FUNC_IDEZGETFILEPATH_STRING_ROOT,__STRING1_IDEPATHSEP),_FUNC_IDEZGETFILEPATH_STRING_P))))||is_error_pending()){
if(qbevent){evnt(28182,15752,"ide_methods.bas");if(r)goto S_61106;}
do{
qbs_set(_FUNC_IDEZGETFILEPATH_STRING_P,qbs_add(qbs_add(_FUNC_IDEZGETFILEPATH_STRING_ROOT,__STRING1_IDEPATHSEP),_FUNC_IDEZGETFILEPATH_STRING_P));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,15752,"ide_methods.bas");}while(r);
}
do{
*__LONG_IDEERROR= 4 ;
if(!qbevent)break;evnt(28182,15756,"ide_methods.bas");}while(r);
do{
qbs_set(_FUNC_IDEZGETFILEPATH_STRING_P2,_FUNC_IDEZGETFILEPATH_STRING_P);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,15757,"ide_methods.bas");}while(r);
S_61111:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(__STRING_OS,qbs_new_txt_len("WIN",3))))||is_error_pending()){
if(qbevent){evnt(28182,15758,"ide_methods.bas");if(r)goto S_61111;}
S_61112:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(qbs_right(_FUNC_IDEZGETFILEPATH_STRING_P2, 1 ),qbs_new_txt_len(":",1))))||is_error_pending()){
if(qbevent){evnt(28182,15759,"ide_methods.bas");if(r)goto S_61112;}
do{
qbs_set(_FUNC_IDEZGETFILEPATH_STRING_P2,qbs_add(_FUNC_IDEZGETFILEPATH_STRING_P2,qbs_new_txt_len("\\",1)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,15759,"ide_methods.bas");}while(r);
}
}
S_61116:;
if ((qbs_cleanup(qbs_tmp_base,-(func__direxists(_FUNC_IDEZGETFILEPATH_STRING_P2)== 0 )))||is_error_pending()){
if(qbevent){evnt(28182,15761,"ide_methods.bas");if(r)goto S_61116;}
do{
goto exit_subfunc;
if(!qbevent)break;evnt(28182,15761,"ide_methods.bas");}while(r);
}
do{
sub_chdir(_FUNC_IDEZGETFILEPATH_STRING_P2);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,15763,"ide_methods.bas");}while(r);
do{
*__LONG_IDEERROR= 1 ;
if(!qbevent)break;evnt(28182,15764,"ide_methods.bas");}while(r);
do{
qbs_set(_FUNC_IDEZGETFILEPATH_STRING_P,func__cwd());
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,15766,"ide_methods.bas");}while(r);
do{
sub_chdir(__STRING_IDEROOT);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,15768,"ide_methods.bas");}while(r);
do{
qbs_set(_FUNC_IDEZGETFILEPATH_STRING_IDEZGETFILEPATH,_FUNC_IDEZGETFILEPATH_STRING_P);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,15770,"ide_methods.bas");}while(r);
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free391.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_IDEZGETFILEPATH_STRING_IDEZGETFILEPATH);return _FUNC_IDEZGETFILEPATH_STRING_IDEZGETFILEPATH;
}
