void VJSImage::_setPath(XBOX::VJSParms_callStaticFunction& ioParms, VJSPictureContainer* inPict) { VPicture* pic = inPict->GetPict(); VString path; if (pic != nil) { if (ioParms.CountParams() == 0 || ioParms.IsNullParam(1)) { pic->SetOutsidePath(""); // empty string means no outside } else if (ioParms.IsBooleanParam(1)) { pic->SetOutsidePath("*"); } else if (ioParms.IsStringParam(1)) { ioParms.GetStringParam(1, path); pic->SetOutsidePath(path); if (!path.IsEmpty()) pic->ReloadFromOutsidePath(); } else { VFile* file = ioParms.RetainFileParam(1); if (file != nil) { file->GetPath(path, FPS_POSIX); pic->SetOutsidePath(path); if (file->Exists()) pic->ReloadFromOutsidePath(); } else pic->SetOutsidePath(""); QuickReleaseRefCountable(file); } //inPict->SetModif(); } }