home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1992-02-26 | 991 b | 36 lines |
- '*********************************************************
- '
- 'MAKE_RAM
- '
- '
- 'Very simple this - make ram attempts to access the ram disk.
- '
- 'If it can, it returns True. If it can't it returns false.
- '
- 'Uses: To detect if the ram disk exists
- '
- ' Creates a ram disk, if possible
- '
- ' Ensures RAM: & RAM DISK appear in all future
- ' file selectors and dev first$("") / dev next$
- ' calls.
- '
- ' On KickStart 1.3, the RAM DISK requires Ram-Handler from
- ' the L: directory. Putting MAKE RAM at the start of your
- ' program forces this to be loaded, before the user can remove
- ' the boot disk preventing a "Please insert volume..." requester
- ' later on.
- '
- Procedure MAKE_RAM
- 'Procedure By Paul Hickman (ph@doc.ic.ac.uk)
- On Error Goto MAKE_RAM_ERROR
- Resume Label _MAKE_RAM_EXIT
- D$=Dir$ : Dir$="RAM:" : Dir$=D$
- _RAM_MADE=True
- Goto _MAKE_RAM_EXIT
- '
- MAKE_RAM_ERROR:
- Resume Label
- '
- _MAKE_RAM_EXIT:
- End Proc[_RAM_MADE]