news
About Elegant Chaos
info
About me and my friends
people
Software from Elegant Chaos
software
Other stuff...
stuff

BL_ReadPrefs

Revision
Revised on

Description


Code

on BL_ReadPrefs
  global BL_BackupPaths, BL_CompactThreshold, BL_DoBackups
  global BL_BackupDelay, BL_ConfirmBackups, BL_NextBackup
  global BL_DoCompact
  
  get FL_ReadPrefs("Backup Library")
  if it is not empty then
    put line 1 of it into BL_DoBackups
    put line 2 of it into BL_ConfirmBackups
    put line 3 of it into BL_CompactThreshold
    put line 3 of it into compactFlags
    if the number of items in compactFlags is 1 then
      put compactFlags into BL_CompactThreshold
      put true into BL_DoCompact
    else
      put item 1 of compactFlags into BL_DoCompact
      put item 2 of compactFlags into BL_CompactThreshold
    end if
    put line 4 of it into BL_BackupDelay
    put line 5 of it into BL_BackupPaths
  else
    BL_DefaultPrefs
    BL_WritePrefs
  end if
  
end BL_ReadPrefs