config/Block: rename GetBlockPath() to GetPath()
This commit is contained in:
@@ -86,7 +86,7 @@ sidplay_init(const ConfigBlock &block)
|
||||
{
|
||||
/* read the songlengths database file */
|
||||
Error error;
|
||||
const auto database_path = block.GetBlockPath("songlength_database", error);
|
||||
const auto database_path = block.GetPath("songlength_database", error);
|
||||
if (!database_path.IsNull())
|
||||
songlength_database = sidplay_load_songlength_db(database_path);
|
||||
else if (error.IsDefined())
|
||||
|
@@ -42,9 +42,9 @@ wildmidi_init(const ConfigBlock &block)
|
||||
{
|
||||
Error error;
|
||||
const AllocatedPath path =
|
||||
block.GetBlockPath("config_file",
|
||||
"/etc/timidity/timidity.cfg",
|
||||
error);
|
||||
block.GetPath("config_file",
|
||||
"/etc/timidity/timidity.cfg",
|
||||
error);
|
||||
if (path.IsNull())
|
||||
FatalError(error);
|
||||
|
||||
|
Reference in New Issue
Block a user