home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / SYSOP / MODS1.ZIP / SAMAN02.423 < prev    next >
Text File  |  1994-01-01  |  1KB  |  32 lines

  1. ┌────────────────────────────────────────────────────────────────────────────┐
  2. │ Mod Name: SAMAN02.423      Mod Authors: Mod done by Secret Agent Man,      │
  3. │ Difficulty: Simple (2 lines)            additional code by Parapuke,       │
  4. │ WWIV Version: 4.23                      merged by Snowman                  │
  5. │ Files Affected: BBSOVL1.C                                                  │
  6. │ Description: Parapuke did a mod for 4.22 which put a box around your       │
  7. │              dirlist, S.A.M. redid it for 4.23 but left out the part       │
  8. │              that shows the current directory you're at.                   │
  9. └────────────────────────────────────────────────────────────────────────────┘
  10.  
  11. 1. Back up your source.
  12.  
  13. 2. Load BBSOVL1.C into your editor and search for in void dirlist
  14.  
  15.     while ((i1<num_dirs) && (udir[i1].subnum!=-1) && (!abort)) { /* EXISTING */
  16.       sprintf(s,"║%3.3s║ %-39s║",udir[i1].keys,                  /* EXISTING */
  17.         stripcolors(directories[udir[i1].subnum].name));         /* EXISTING */
  18.  
  19. 3. Add these two lines right after that
  20.  
  21.      if (strcmp(udir[curdir].keys,udir[i1].keys)==0)  /* NEW */
  22.     strcat(s," < Current Directory");                 /* NEW */
  23. #ifndef OPT_EXTRA_COLOR                               /* EXISTING */
  24.  
  25. 4. Recompile and you're done.
  26.  
  27.  
  28.                                       -=≡{δnowman}≡=-
  29.  
  30.  
  31.  
  32.