diff options
author | Vincent Sanders <vince@kyllikki.org> | 2016-05-05 22:28:51 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2016-05-15 13:44:34 +0100 |
commit | d21447d096a320a08b3efb2b8768fad0dcdcfd64 (patch) | |
tree | 1a83814b7c9e94b2f13c473261f23dd3a17dee64 /frontends/riscos/distribution/!Boot/Resources/!Cache/!Boot,feb | |
parent | 2cbb337756d9af5bda4d594964d446439f602551 (diff) | |
download | netsurf-d21447d096a320a08b3efb2b8768fad0dcdcfd64.tar.gz netsurf-d21447d096a320a08b3efb2b8768fad0dcdcfd64.tar.bz2 |
move frontends into sub directory
Diffstat (limited to 'frontends/riscos/distribution/!Boot/Resources/!Cache/!Boot,feb')
-rw-r--r-- | frontends/riscos/distribution/!Boot/Resources/!Cache/!Boot,feb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/frontends/riscos/distribution/!Boot/Resources/!Cache/!Boot,feb b/frontends/riscos/distribution/!Boot/Resources/!Cache/!Boot,feb new file mode 100644 index 000000000..485bd521d --- /dev/null +++ b/frontends/riscos/distribution/!Boot/Resources/!Cache/!Boot,feb @@ -0,0 +1,17 @@ +If (("<Cache$AppDir>" = "") OR ("<Cache$ForceVars>" = "1")) Then Set Cache$AppDir <Obey$Dir> + +IconSprites <Cache$AppDir>.!Sprites + +| Find and set up resource paths +WimpSlot -min 64k -max 64k +Run <Cache$AppDir>.Resources.ResFind CacheApp +If (("<Cache$Meta>" = "") OR ("<Cache$ForceVars>" = "1")) Then Set Cache$Meta CacheAppRes:!Meta + +| Work out where the cache directory should be -- use Choices$User if set or Default, otherwise. +Set Cache$Suffix "<Choices$User>" +If "<Cache$Suffix>" = "" Then Set Cache$Suffix "Default" +If (("<Cache$Dir>" = "") OR ("<Cache$ForceVars>" = "1")) Then Set Cache$Dir "<Cache$AppDir>.Caches.<Cache$Suffix>" +Unset Cache$Suffix + +| Ensure cache directory exists (sadly, unavoidable) +CDir <Cache$Dir> |