Skip to content

Commit

Permalink
Look for Songlengths file in data path (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
drfiemost committed Apr 5, 2024
1 parent 4857983 commit c00f102
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/IniConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,8 @@ void IniConfig::readSidplay2(iniHandler &ini)
#if !defined _WIN32
if (sidplay2_s.database.empty())
{
SID_STRING buffer(PKGDATADIR);
buffer.append("Songlengths.txt");
SID_STRING buffer(utils::getDataPath());
buffer.append(SEPARATOR).append(DIR_NAME).append(SEPARATOR).append("Songlengths.txt");
if (::access(buffer.c_str(), R_OK) == 0)
sidplay2_s.database.assign(buffer);
}
Expand Down

0 comments on commit c00f102

Please sign in to comment.