config/Block: rename GetBlockPath() to GetPath()

This commit is contained in:
Max Kellermann
2016-10-28 23:07:26 +02:00
parent f6f2a3b366
commit d8bcdca55a
7 changed files with 15 additions and 15 deletions

View File

@@ -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())

View File

@@ -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);