Ignore:
Timestamp:
May 13, 2013, 6:06:52 PM (12 years ago)
Author:
Alex Taylor
Message:

Support installing a new driver.model directly. Keyboard navigation improved. Some bug fixes. (Now requires VROBJEX 1.1.2 or later.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/shared/PrManUtl.VRS

    r38 r39  
    2424 * - globals.!prdrv:      filespec of \OS2\INSTALL\PRDRV.LST
    2525 * - globals.!repository: value indicated by PM_INSTALL->PDR_DIR in OS2.INI
     26 *
     27 * Arguments: The print driver name without path or extension
    2628 *
    2729 * Returns the path, or '' if not found.  Also, 'pmdx' will be 0-9 if the
     
    9193 * Returns the number suffix of the PMDD_* subdirectory name, or '' if either
    9294 * the driver or the index file could not be located.
     95 *
     96 * Arguments: The print driver name without path or extension
    9397 */
    9498GetDriverPMDD: PROCEDURE
     
    110114/*:VRX         LocateDriverFiles
    111115*/
    112 /* Returns:
     116/* Locates the source files for a PostScript-based driver that will be required in
     117 * order to import a PPD using PIN.  Not to be used with non-PostScript drivers,
     118 * since it will fail if PIN or PPDENC are not found.
     119 *
     120 * Arguments: The print driver name without path or extension
     121 *
     122 * Returns:
    113123 *   0 - Driver files not found.
    114124 *   1 - Driver files found, path saved in 'driver_path'; 'driver_repo' will be 1
     
    481491    targetdir = globals.!os2dir'\DLL\'driver
    482492    targetdrv = targetdir'\'driver'.DRV'
     493    CALL LINEOUT globals.!log1, 'Installing' driver'.'model 'from' driverfull '(target' targetdrv')'
     494
    483495    IF ( VRFileExists( targetdrv ) == 0 ) THEN DO
    484496        CALL VRMkDir targetdir
    485         r = CopyDriverToSource( driverfull, targetdir )
     497        r = CopyPrinterPak( driverfull, targetdir )
    486498        IF r <> 1 THEN ok = 1
    487499    END
Note: See TracChangeset for help on using the changeset viewer.