FLEDIZ13.MOD: Small update to FILEIDZ: now 2 times faster! David Morse #116 @8315 1Wednesday, 2March 324, 51993 7@ 1 96:148 7pm 2EST ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ Mod Name: FLEIDZ13.MOD Mod Author: Etheral Cereal ³ ³ Difficulty: Û±±±±±±±±± Mod Updated by: David Morse ³ ³ WWIV Versions: 4.21a/4.22 Date: March 24th, 1993 ³ ³ Affected Files: FILEIDZ.C ³ ³ Version: 1.3 (ONLY AN UPDATE, requires 1.2 installation) ³ ³ Steps: 1 ³ ³ Description: This is a small but USEFUL update to Etheral Cereal's ³ ³ fantastic mod. It eliminates the need for TWO extraction ³ ³ commands by comibing DESC.SDI and FILE_ID.DIZ on the ³ ³ extract command line (thus making the mod about 2 times ³ ³ faster! :) ) ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ NOTE: This is NOT a complete modification!!! This is an UPDATE, requiring that you have installed FILEIDZ.MOD already! << STEP 1 >> Just re-read this function back into your FILEIDZ.C. void fileidz(uploadsrec *u,int dn) { char *extbuf=NULL,run_me[81],s[81],s2[81],*ss; int f,i; //extract FILE_ID.DIZ cd_to(directories[dn].path); get_dir(s2,1); strcat(s2,stripfn(u->filename)); cd_to(cdir); get_arc_cmd(run_me,s2,1,"FILE_ID.DIZ DESC.SDI"); // Add DESC.SDI cd_to(syscfg.tempdir); do_external(run_me,0); // this puts us back in root on return sprintf(s,"%sFILE_ID.DIZ",syscfg.tempdir); if (!exist(s)) // Major change, sprintf(s,"%sDESC.SDI",syscfg.tempdir); // whole chunk deleted if (exist(s)) { npr("Reading in %s as extended description...",s); ss=read_extended_description(u->filename); if (ss) { farfree(ss); delete_extended_description(u->filename); } // read in the file id if ((extbuf=malloca((long)MAX_LINES*1024))==NULL) return; f=open(s,O_RDWR | O_BINARY); if (filelength(f)<(MAX_LINES*1024)) { read(f,extbuf,(int) filelength(f)); (extbuf)[filelength(f)]=0; } else { read(f,extbuf,(int)MAX_LINES*1024); (extbuf)[(int)MAX_LINES*1024]=0; } close(f); ss=strtok(extbuf,"\n"); sprintf(u->description,"%s\0",ss); u->mask &= ~mask_extended; ss=strtok(NULL,"\0"); add_extended_description(u->filename,ss); u->mask |= mask_extended; farfree(extbuf); npr("Done.\r\n"); } unlink(s); cd_to(cdir); remove_from_temp("*.*",syscfg.tempdir,0); // Remove comment files } << COMPILE! >> NOTE: Etheral Cereal disappeared or something, because his net address, @6869, is now unrecognized by WWIVnet! But I went ahead and posted this update anyway. 1 27ÄÄÄÄÄÄÄÄÄÄÄÄÄÍÍÍÍÍÍÍÍÍÍÍÍÍ 1T2he 1T2rading 1P2ost 7[1SOUTH7] ÍÍÍÍÍÍÍÍÍÍÍÍÍÄÄÄÄÄÄÄÄÄÄÄÄÄÄ0 31Columbia, S.C. 2- 5(803) 731-0690 2-3 USR DS 16.8 2- 1WOMRable7 2- 3ASV 2- 7Icenet Support0 47 5WWIVNet7/3AdventNet7/4ICENet7 1@28315 6-1 FidoNet 21:376/126 0 5