Ignore:
Timestamp:
May 3, 2016, 2:14:41 PM (9 years ago)
Author:
Silvan Scherrer
Message:

smplayer: update vendor to version 16.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • smplayer/vendor/current/src/paths.cpp

    r163 r175  
    11/*  smplayer, GUI front-end for mplayer.
    2     Copyright (C) 2006-2014 Ricardo Villalba <rvm@users.sourceforge.net>
     2    Copyright (C) 2006-2016 Ricardo Villalba <rvm@users.sourceforge.net>
    33
    44    This program is free software; you can redistribute it and/or modify
     
    161161}
    162162
    163 #ifdef Q_OS_WIN
     163#ifdef FONTS_HACK
    164164QString Paths::fontPath() {
    165         return appPath() + "/mplayer/open-fonts";
     165        QString path = appPath() + "/mplayer/fonts";
     166        QDir font_dir(path);
     167        QStringList files = font_dir.entryList(QStringList() << "*.ttf" << "*.otf", QDir::Files);
     168        //qDebug("Paths:fontPath: files in %s: %d", path.toUtf8().constData(), files.count());
     169        if (files.count() > 0) {
     170                return path;
     171        } else {
     172                return appPath() + "/open-fonts";
     173        }
    166174}
    167175#endif
Note: See TracChangeset for help on using the changeset viewer.