Thread: Cd32 Deuteros?
View Single Post
Old 27 September 2019, 22:25   #7
Registered User
Join Date: Oct 2008
Location: EU
Posts: 128
@jotd Not 100% related but in case you would not know, nonvolatile.library already has a builtin mechanism to use alternative storage if available, see e.g. Amiga Developer CD 2.1 autodocs (or here):
nonvolatile.library will automatically access the best nonvolatile storage available in the system. Disk based storage will be selected first and if not available, NVRAM storage will be accessed.
The location for nonvolatile disk storage is contained in the file prefs/env-archive/sys/nv_location. This file should contain a data string that specifies a lockable location.
When opened, the nonvolatile library will search all drives within the system until it finds this file.
The CD32-MegaGames1 compilation uses this mechanism (and even creates the necessary folders/file if necessary) if a writeable device/volume SCORES: is there during boot.
a4k-oerx is offline  
Page generated in 0.04278 seconds with 11 queries