Lines Matching refs:rsrc
259 …findResource(picorsrc_ResourceManager this, picoos_char * resourceName, picorsrc_Resource * rsrc) { in findResource() argument
268 *rsrc = r; in findResource()
691 picorsrc_Resource r1, r2, rsrc; in picorsrc_unloadResource() local
696 rsrc = *resource; in picorsrc_unloadResource()
699 if (rsrc->lockCount > 0) { in picorsrc_unloadResource()
703 if (rsrc->file != NULL) { in picorsrc_unloadResource()
704 picoos_CloseBinary(this->common, &rsrc->file); in picorsrc_unloadResource()
706 if (NULL != rsrc->raw_mem) { in picorsrc_unloadResource()
707 picoos_deallocProtMem(this->common->mm, (void *) &rsrc->raw_mem); in picorsrc_unloadResource()
713 while (r2 != NULL && r2 != rsrc) { in picorsrc_unloadResource()
718 this->resources = rsrc->next; in picorsrc_unloadResource()
723 r1->next = rsrc->next; in picorsrc_unloadResource()
726 if (NULL != rsrc->kbList) { in picorsrc_unloadResource()
727 picorsrc_releaseKbList(this, &rsrc->kbList); in picorsrc_unloadResource()
932 picorsrc_Resource rsrc; in picorsrc_createVoice() local
984 findResource(this,vdef->resourceName[i],&rsrc); in picorsrc_createVoice()
985 (*voice)->resourceArray[(*voice)->numResources++] = rsrc; in picorsrc_createVoice()
986 rsrc->lockCount++; in picorsrc_createVoice()
987 kb = rsrc->kbList; in picorsrc_createVoice()