PlaylistFile: use struct ConfigData
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
#include "fs/io/TextFile.hxx"
|
||||
#include "fs/io/FileOutputStream.hxx"
|
||||
#include "fs/io/BufferedOutputStream.hxx"
|
||||
#include "config/Global.hxx"
|
||||
#include "config/Data.hxx"
|
||||
#include "config/Option.hxx"
|
||||
#include "config/Defaults.hxx"
|
||||
#include "Idle.hxx"
|
||||
@@ -55,15 +55,15 @@ static unsigned playlist_max_length;
|
||||
bool playlist_saveAbsolutePaths = DEFAULT_PLAYLIST_SAVE_ABSOLUTE_PATHS;
|
||||
|
||||
void
|
||||
spl_global_init(void)
|
||||
spl_global_init(const ConfigData &config)
|
||||
{
|
||||
playlist_max_length =
|
||||
config_get_positive(ConfigOption::MAX_PLAYLIST_LENGTH,
|
||||
DEFAULT_PLAYLIST_MAX_LENGTH);
|
||||
config.GetPositive(ConfigOption::MAX_PLAYLIST_LENGTH,
|
||||
DEFAULT_PLAYLIST_MAX_LENGTH);
|
||||
|
||||
playlist_saveAbsolutePaths =
|
||||
config_get_bool(ConfigOption::SAVE_ABSOLUTE_PATHS,
|
||||
DEFAULT_PLAYLIST_SAVE_ABSOLUTE_PATHS);
|
||||
config.GetBool(ConfigOption::SAVE_ABSOLUTE_PATHS,
|
||||
DEFAULT_PLAYLIST_SAVE_ABSOLUTE_PATHS);
|
||||
}
|
||||
|
||||
bool
|
||||
|
Reference in New Issue
Block a user