Ignore:
Timestamp:
Dec 3, 2012, 5:29:00 PM (13 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer: updated vendor to 0.8.2

File:
1 edited

Legend:

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

    r133 r137  
    2929#include "myapplication.h"
    3030
     31#ifdef SKINS
     32#include "skingui.h"
     33#endif
     34
    3135#include <QDir>
    3236#include <QUrl>
     
    3943#include "winfileassoc.h"       //required for Uninstall
    4044#endif
     45#endif
     46
     47#ifdef FONTCACHE_DIALOG
     48#include "fontcache.h"
     49#include "version.h"
    4150#endif
    4251
     
    109118        BaseGui * gui = 0;
    110119
     120#ifdef SKINS
     121        if (gui_name.toLower() == "skingui")
     122                gui = new SkinGui(0);
     123        else
     124#endif
    111125        if (gui_name.toLower() == "minigui")
    112126                gui = new MiniGui(0);
     
    354368
    355369void SMPlayer::start() {
     370#ifdef FONTCACHE_DIALOG
     371#ifndef PORTABLE_APP
     372        if (smplayerVersion() != pref->smplayer_version) {
     373                FontCacheDialog d(0);
     374                d.run(pref->mplayer_bin, "sample.avi");
     375                pref->smplayer_version = smplayerVersion();
     376        }
     377#endif
     378#endif
     379
    356380        if (!gui()->startHidden() || !files_to_play.isEmpty() ) gui()->show();
    357381        if (!files_to_play.isEmpty()) {
     
    394418                case QSysInfo::WV_2000: win_ver = "Windows 2000"; break;
    395419                case QSysInfo::WV_XP: win_ver = "Windows XP"; break;
    396                 case QSysInfo::WV_2003: win_ver = "Windows Server 2003"; break;
    397                 case QSysInfo::WV_VISTA: win_ver = "Windows Vista"; break;
     420                case QSysInfo::WV_2003: win_ver = "Windows XP Professional x64/Server 2003"; break;
     421                case QSysInfo::WV_VISTA: win_ver = "Windows Vista/Server 2008"; break;
    398422                #if QT_VERSION >= 0x040501
    399                 case QSysInfo::WV_WINDOWS7: win_ver = "Windows 7"; break;
     423                case QSysInfo::WV_WINDOWS7: win_ver = "Windows 7/Server 2008 R2"; break;
    400424                #endif
    401425                #if QT_VERSION >= 0x040803
    402                 case QSysInfo::WV_WINDOWS8: win_ver = "Windows 8"; break;
     426                case QSysInfo::WV_WINDOWS8: win_ver = "Windows 8/Server 2012"; break;
    403427                #endif
    404                 default: win_ver = QString("other: %1").arg(QSysInfo::WindowsVersion);
     428                case QSysInfo::WV_NT_based: win_ver = "NT-based Windows"; break;
     429                default: win_ver = QString("Unknown/Unsupported Windows OS"); break;
    405430        }
    406431#endif
Note: See TracChangeset for help on using the changeset viewer.