mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-15 18:49:11 +01:00
55ef1069f1
Verifying a Wii game creates an instance of IOS, and Dolphin can't handle more than one instance of IOS at the same time. Properly supporting it is probably more effort than it's worth. Fixes https://bugs.dolphin-emu.org/issues/12494.
58 lines
1.3 KiB
C++
58 lines
1.3 KiB
C++
// Copyright 2019 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
#include <utility>
|
|
|
|
#include <QCheckBox>
|
|
#include <QFormLayout>
|
|
#include <QLineEdit>
|
|
#include <QPushButton>
|
|
#include <QTableWidget>
|
|
#include <QTextEdit>
|
|
#include <QWidget>
|
|
|
|
namespace DiscIO
|
|
{
|
|
class Volume;
|
|
}
|
|
|
|
class VerifyWidget final : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit VerifyWidget(std::shared_ptr<DiscIO::Volume> volume);
|
|
|
|
private slots:
|
|
void OnEmulationStateChanged();
|
|
|
|
private:
|
|
void CreateWidgets();
|
|
std::pair<QCheckBox*, QLineEdit*> AddHashLine(QFormLayout* layout, QString text);
|
|
void ConnectWidgets();
|
|
|
|
bool CanVerifyRedump() const;
|
|
void UpdateRedumpEnabled();
|
|
void Verify();
|
|
void SetProblemCellText(int row, int column, QString text);
|
|
|
|
std::shared_ptr<DiscIO::Volume> m_volume;
|
|
QTableWidget* m_problems;
|
|
QTextEdit* m_summary_text;
|
|
QFormLayout* m_hash_layout;
|
|
QFormLayout* m_redump_layout;
|
|
QCheckBox* m_crc32_checkbox;
|
|
QCheckBox* m_md5_checkbox;
|
|
QCheckBox* m_sha1_checkbox;
|
|
QCheckBox* m_redump_checkbox;
|
|
QLineEdit* m_crc32_line_edit;
|
|
QLineEdit* m_md5_line_edit;
|
|
QLineEdit* m_sha1_line_edit;
|
|
QLineEdit* m_redump_line_edit;
|
|
QPushButton* m_verify_button;
|
|
};
|