LoadPrefs(prefs[, t])
prefs
. Prior to calling LoadPrefs()
, the prefs
table should
have been initialized to the default preferences. LoadPrefs()
will then overwrite all table items for
which custom user preferences exist and keep the default values of the items for which there are
no user preferences.
Note that this function will only work if you have specified a unique identifier for your application by using the @APPIDENTIFIER preprocessor command. See APPIDENTIFIER for details.
Starting with Hollywood 9.0, this function accepts a new optional table argument that can be used to specify further options.
The following tags are currently recognized in the optional table argument:
Adapter:
xml
) or it can be one of the following inbuilt deserializers:
Default:
Inbuilt:
If the Adapter
tag isn't specified, it will default to the default set using
SetDefaultAdapter().
UserTags:
@APPIDENTIFIER "com.airsoftsoftwair.example" prf = {lastfile$ = "Unnamed", lastxpos = 0, lastypos = 0} LoadPrefs(prf)This initializes the table
prf
to default values and then uses LoadPrefs()
to
read user preferences saved using SavePrefs() into the table.
See SavePrefs for details.