Skip to content

Commit

Permalink
Use getUserPath in fontmanager.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lymia committed Jan 19, 2025
1 parent 9e46f03 commit a29ff11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resource_management/fontmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ FontManager::FontManager()
setObjectName("FontManager");
QStringList searchFolders;
searchFolders.append(QString(oxygine::Resource::RCC_PREFIX_PATH) + "resources/fonts/");
searchFolders.append("resources/fonts/");
searchFolders.append(Settings::getInstance()->getUserPath() + "resources/fonts/");
QStringList mods = Settings::getInstance()->getMods();
for (const auto & mod : std::as_const(mods))
{
searchFolders.append(mod + "/fonts/");
searchFolders.append(Settings::getInstance()->getUserPath() + mod + "/fonts/");
}
for (qint32 i = 0; i < searchFolders.size(); ++i)
{
Expand Down

0 comments on commit a29ff11

Please sign in to comment.