os/sysbits.c

This commit is contained in:
Vitor Santos Costa 2016-05-19 13:35:22 +01:00
parent a5bb2e226c
commit d00698b76a

View File

@ -1323,18 +1323,18 @@ const char *Yap_findFile(const char *isource, const char *idef,
case 5: // search from the binary
#ifndef __ANDROID__
{
done = true;
break;
} break;
#endif
{
const char *pt = Yap_FindExecutable();
if (pt) {
if (ftype == YAP_BOOT_PL) {
root = "../../share/Yap/pl";
} else {
root =
(ftype == YAP_SAVED_STATE
|| ftype == YAP_OBJ
root = (ftype == YAP_SAVED_STATE || ftype == YAP_OBJ
? "../../lib/Yap"
: "../../share/Yap");
}
@ -1347,6 +1347,7 @@ const char *Yap_findFile(const char *isource, const char *idef,
done = true;
}
source = (isource ? isource : idef);
}
break;
case 6: // default, try current directory
if (!isource && ftype == YAP_SAVED_STATE)