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