Changeset 552 for trunk/dll/treecnr.c


Ignore:
Timestamp:
Mar 1, 2007, 7:24:47 AM (18 years ago)
Author:
Gregg Young
Message:

font cleanup; new image and archiver masks; messages moved to string file; new drive flags including David's icons mostly working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/treecnr.c

    r551 r552  
    66
    77  Copyright (c) 1993-98 M. Kimes
    8   Copyright (c) 2001, 2006 Steven H. Levine
     8  Copyright (c) 2001, 2007 Steven H. Levine
    99
    1010  16 Oct 02 SHL Handle large partitions
     
    2222  29 Dec 06 GKY Fixed menu gray out for remote drives (added variable "remote")
    2323  29 Dec 06 GKY Enabled edit of drive flags on "not ready" drives
     24  18 Feb 07 GKY More drive type and inco support
    2425
    2526***********************************************************************/
     
    17731774                                DRIVE_NOLOADICONS | DRIVE_NOLOADSUBJS |
    17741775                                DRIVE_NOLOADLONGS | DRIVE_INCLUDEFILES |
    1775                                 DRIVE_SLOW);
     1776                                DRIVE_SLOW) | DRIVE_NOSTATS;
    17761777
    17771778              if (removable == 1)
     
    17791780              if (drvtype & DRIVE_REMOTE)
    17801781                driveflags[x] |= DRIVE_REMOTE;
    1781               if (!strcmp(FileSystem, CDFS))
     1782              if (!strcmp(FileSystem, CBSIFS)) {
     1783                driveflags[x] |= DRIVE_ZIPSTREAM;
     1784                driveflags[x] &= (~DRIVE_REMOTE);
     1785              if(!strcmp(FileSystem,NDFS32)) {
     1786                driveflags[x] |= DRIVE_VIRTUAL;
     1787                driveflags[x] &= (~DRIVE_REMOTE);
     1788              }
     1789              if(!strcmp(FileSystem,RAMFS)) {
     1790                driveflags[x] |= DRIVE_RAMDISK;
     1791                driveflags[x] &= (~DRIVE_REMOTE);
     1792              }
     1793              if (!strcmp(FileSystem, CDFS) || !strcmp(FileSystem, ISOFS))
    17821794                driveflags[x] |= (DRIVE_REMOVABLE |
    17831795                                  DRIVE_NOTWRITEABLE | DRIVE_CDROM);
     
    17851797                  strcmp(FileSystem, JFS) &&
    17861798                  strcmp(FileSystem, CDFS) &&
     1799                  strcmp(FileSystem, ISOFS) &&
     1800                  strcmp(FileSystem, RAMFS) &&
    17871801                  strcmp(FileSystem, FAT32) &&
    1788                   strcmp(FileSystem, NDFS32) && strcmp(FileSystem, HPFS386)) {
     1802                  strcmp(FileSystem, NDFS32) &&
     1803                  strcmp(FileSystem, HPFS386)) {
    17891804                driveflags[x] |= DRIVE_NOLONGNAMES;
    17901805              }
    1791               if (!strcmp(FileSystem, CBSIFS)) {
    1792                 driveflags[x] |= DRIVE_ZIPSTREAM;
    1793                 driveflags[x] &= (~DRIVE_REMOTE);
     1806
    17941807              }
    17951808              if (driveflags[x] & DRIVE_CDROM)
     
    17991812                pciP->rc.hptrIcon = (driveflags[x] & DRIVE_REMOVABLE) ?
    18001813                  hptrRemovable :
    1801                   (driveflags[x] & DRIVE_REMOTE) ? hptrRemote : hptrDrive;
     1814                      (driveflags[x] & DRIVE_REMOTE) ?
     1815                      hptrRemote :
     1816                      (driveflags[x] & DRIVE_VIRTUAL) ?
     1817                      hptrVirtual :
     1818                      (driveflags[x] & DRIVE_RAMDISK) ?
     1819                      hptrRamdisk :
     1820                      (driveflags[x] & DRIVE_ZIPSTREAM) ?
     1821                      hptrZipstrm : hptrDrive;
    18021822              WinSendMsg(hwnd,
    18031823                         CM_INVALIDATERECORD,
     
    20082028            writeable = rdy
    20092029              && !(driveflags[chDrvU - 'A'] & DRIVE_NOTWRITEABLE);
    2010             remote = rdy && (driveflags[chDrvU - 'A'] & DRIVE_REMOTE) != 0;
     2030            remote = rdy && (driveflags[chDrvU - 'A'] & (DRIVE_REMOTE || DRIVE_VIRTUAL)) != 0;
    20112031            underenv = (pci->flags & RECFLAGS_UNDERENV) != 0;
    20122032
     
    25392559                driveflags[toupper(*pci->szFileName) - 'A'] &=
    25402560                  (DRIVE_IGNORE | DRIVE_NOPRESCAN | DRIVE_NOLOADICONS |
    2541                    DRIVE_NOLOADSUBJS | DRIVE_NOLOADLONGS);
     2561                   DRIVE_NOLOADSUBJS | DRIVE_NOLOADLONGS | DRIVE_NOSTATS);
    25422562                DriveFlagsOne(toupper(*pci->szFileName) - 'A');
    25432563                if (driveflags[toupper(*pci->szFileName) - 'A'] &
     
    25552575                         DRIVE_REMOTE) ? hptrRemote
    25562576                      : (driveflags[toupper(*pci->szFileName) - 'A'] &
     2577                         DRIVE_VIRTUAL) ? hptrVirtual
     2578                      : (driveflags[toupper(*pci->szFileName) - 'A'] &
     2579                         DRIVE_RAMDISK) ? hptrRamdisk
     2580                      : (driveflags[toupper(*pci->szFileName) - 'A'] &
    25572581                         DRIVE_ZIPSTREAM) ? hptrZipstrm : hptrDrive;
    25582582                }
Note: See TracChangeset for help on using the changeset viewer.