void DoFileReadWork(struct ExecutionLogging* pEL,const char* name) { if (SearchFileInFileToWriteArray(pEL,name,NULL)==0) if (SearchFileInFileToReadArray(pEL,name,NULL)==0) { unsigned int size=0; unsigned long crc=0; int file_found=0; if (pEL->store_file_in_content != 0) file_found = DumpFileToPack(pEL,name,"src/",&size,&crc); if ((pEL->store_file_in_content == 0) && (pEL->store_list_file_in_content != 0)) file_found = ComputeFileCrc(name,&size,&crc); if ((pEL->store_file_in_content == 0) && (pEL->store_list_file_in_content == 0)) file_found = ComputeFileCrc(name,NULL,NULL); if (file_found != 0) AddFileInFileToReadArray(pEL,name); if ((pEL->store_list_file_in_content != 0)) { char* szBuf = (char*)malloc(strlen(name) + 0x40); if (szBuf != NULL) { sprintf(szBuf,"%010u\t%08lx\t%s\n",size,crc, ExtractUsablePortionOfFileNameForPack(GetFileNameRemovePrefixIfFound(name,pEL->portion_ignore_pathname))); FlushOutData(szBuf,strlen(szBuf),pEL->pAE_FileReadList); free(szBuf); } } } }
void ABSTRACT_CALLBACK_UNITEX UniLogger_LogErrWrite(const void*Buf, size_t size,void* privateLoggerPtr) { struct ExecutionLogging* pEL = GetExecutionLogging(privateLoggerPtr); if (pEL == NULL) return; FlushOutData(Buf,size,pEL->pAE_StdErr); }
static void FlushRemuxer( REMUXER* pRemuxer, int nSlot ) { FlushDemuxer( pRemuxer->demuxer, nSlot ); if ( pRemuxer->ps_builder != NULL ) FlushEndOfCode( pRemuxer->ps_builder ); if ( pRemuxer->ts_builder != NULL ) FlushOutData( pRemuxer->ts_builder ); }