mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 16:32:39 +00:00
fixes
This commit is contained in:
parent
3fbbddfd47
commit
fc853d46af
@ -1,12 +1,12 @@
|
||||
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include <QProgressDialog>
|
||||
#include <QMessageBox>
|
||||
#include <QFileInfo>
|
||||
#include <iostream>
|
||||
#include "common/path_util.h"
|
||||
#include "compatibility_info.h"
|
||||
#include <QProgressDialog>
|
||||
#include <QMessageBox>
|
||||
#include <QFileInfo>
|
||||
|
||||
CompatibilityInfoClass::CompatibilityInfoClass()
|
||||
: m_network_manager(new QNetworkAccessManager(this)) {
|
||||
|
@ -69,8 +69,7 @@ public:
|
||||
{OSType::LinuxOS, QStringLiteral("os-linux")},
|
||||
{OSType::macOS, QStringLiteral("os-macOS")},
|
||||
{OSType::Win32OS, QStringLiteral("os-windows")},
|
||||
{OSType::UnknownOS, QStringLiteral("os-unknown")}
|
||||
};
|
||||
{OSType::UnknownOS, QStringLiteral("os-unknown")}};
|
||||
|
||||
CompatibilityInfoClass();
|
||||
~CompatibilityInfoClass();
|
||||
|
@ -4,10 +4,13 @@
|
||||
#include "common/logging/log.h"
|
||||
#include "common/path_util.h"
|
||||
#include "common/string_util.h"
|
||||
#include "compatibility_info.h"
|
||||
#include "game_list_frame.h"
|
||||
#include "game_list_utils.h"
|
||||
|
||||
GameListFrame::GameListFrame(std::shared_ptr<GameInfoClass> game_info_get, std::shared_ptr<CompatibilityInfoClass> compat_info_get, QWidget* parent)
|
||||
GameListFrame::GameListFrame(std::shared_ptr<GameInfoClass> game_info_get,
|
||||
std::shared_ptr<CompatibilityInfoClass> compat_info_get,
|
||||
QWidget* parent)
|
||||
: QTableWidget(parent), m_game_info(game_info_get), m_compat_info(compat_info_get) {
|
||||
icon_size = Config::getIconSize();
|
||||
this->setShowGrid(false);
|
||||
@ -105,7 +108,8 @@ void GameListFrame::PopulateGameList() {
|
||||
SetTableItem(i, 6, QString::fromStdString(m_game_info->m_games[i].size));
|
||||
SetTableItem(i, 7, QString::fromStdString(m_game_info->m_games[i].version));
|
||||
|
||||
m_game_info->m_games[i].compatibility_status = m_compat_info->GetCompatibilityStatus(m_game_info->m_games[i].serial);
|
||||
m_game_info->m_games[i].compatibility_status =
|
||||
m_compat_info->GetCompatibilityStatus(m_game_info->m_games[i].serial);
|
||||
SetCompatibilityItem(i, 2, m_game_info->m_games[i].compatibility_status);
|
||||
|
||||
QString playTime = GetPlayTime(m_game_info->m_games[i].serial);
|
||||
@ -217,24 +221,24 @@ void GameListFrame::SetCompatibilityItem(int row, int column, CompatibilityStatu
|
||||
QColor color;
|
||||
|
||||
switch (status) {
|
||||
case Unknown:
|
||||
color = QStringLiteral("#000000");
|
||||
break;
|
||||
case Nothing:
|
||||
color = QStringLiteral("#212121");
|
||||
break;
|
||||
case Boots:
|
||||
color = QStringLiteral("#828282");
|
||||
break;
|
||||
case Menus:
|
||||
color = QStringLiteral("#FF0000");
|
||||
break;
|
||||
case Ingame:
|
||||
color = QStringLiteral("#F2D624");
|
||||
break;
|
||||
case Playable:
|
||||
color = QStringLiteral("#47D35C");
|
||||
break;
|
||||
case Unknown:
|
||||
color = QStringLiteral("#000000");
|
||||
break;
|
||||
case Nothing:
|
||||
color = QStringLiteral("#212121");
|
||||
break;
|
||||
case Boots:
|
||||
color = QStringLiteral("#828282");
|
||||
break;
|
||||
case Menus:
|
||||
color = QStringLiteral("#FF0000");
|
||||
break;
|
||||
case Ingame:
|
||||
color = QStringLiteral("#F2D624");
|
||||
break;
|
||||
case Playable:
|
||||
color = QStringLiteral("#47D35C");
|
||||
break;
|
||||
}
|
||||
|
||||
QPixmap circle_pixmap(16, 16);
|
||||
@ -261,7 +265,7 @@ void GameListFrame::SetCompatibilityItem(int row, int column, CompatibilityStatu
|
||||
label->setGraphicsEffect(shadowEffect); // Apply shadow effect to the QLabel
|
||||
|
||||
layout->addWidget(dotLabel, 0, 0, -1, 4);
|
||||
layout->addWidget(label, 0,4,-1,4);
|
||||
layout->addWidget(label, 0, 4, -1, 4);
|
||||
layout->setAlignment(Qt::AlignLeft);
|
||||
widget->setLayout(layout);
|
||||
this->setItem(row, column, item);
|
||||
|
@ -15,6 +15,7 @@
|
||||
#include "common/scm_rev.h"
|
||||
#include "common/string_util.h"
|
||||
#include "common/version.h"
|
||||
#include "compatibility_info.h"
|
||||
#include "core/file_format/pkg.h"
|
||||
#include "core/loader.h"
|
||||
#include "game_install_dialog.h"
|
||||
|
@ -10,13 +10,13 @@
|
||||
#include "background_music_player.h"
|
||||
#include "common/config.h"
|
||||
#include "common/path_util.h"
|
||||
#include "compatibility_info.h"
|
||||
#include "core/file_format/psf.h"
|
||||
#include "core/file_sys/fs.h"
|
||||
#include "elf_viewer.h"
|
||||
#include "emulator.h"
|
||||
#include "game_grid_frame.h"
|
||||
#include "game_info.h"
|
||||
#include "compatibility_info.h"
|
||||
#include "game_list_frame.h"
|
||||
#include "game_list_utils.h"
|
||||
#include "main_window_themes.h"
|
||||
|
Loading…
Reference in New Issue
Block a user