2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 21:07:42 +00:00

Work on URDE version detection and downloading

This commit is contained in:
Jack Andersen
2017-12-26 14:48:34 -10:00
parent d3223f0db4
commit a686debdcf
14 changed files with 275 additions and 142 deletions

View File

@@ -19,7 +19,6 @@ class SysReqTableModel : public QAbstractTableModel
int m_macosPatch = 0;
#endif
QString m_osVersion;
bool m_is64Bit = true;
public:
SysReqTableModel(QObject* parent = Q_NULLPTR);
int rowCount(const QModelIndex& parent = QModelIndex()) const;
@@ -37,6 +36,13 @@ class SysReqTableView : public QTableView
public:
SysReqTableView(QWidget* parent = Q_NULLPTR);
void paintEvent(QPaintEvent* e) Q_DECL_OVERRIDE;
const SysReqTableModel& getModel() const { return m_model; }
const VectorISATableView& getVectorISATable() const { return m_vectorISATable; }
bool willRun(const URDEVersion& v) const
{
return v.getArchitecture() == CurArchitecture && v.getPlatform() == CurPlatform &&
m_vectorISATable.willRun(v.getVectorISA());
}
};
#endif // GUI_SYSREQTABLEVIEW_HPP