Browse Source
begin tools impl; verify integrity + fw install
begin tools impl; verify integrity + fw install
Signed-off-by: crueter <crueter@eden-emu.dev>pull/3016/head
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
15 changed files with 167 additions and 128 deletions
-
11src/Eden/Interface/CMakeLists.txt
-
16src/Eden/Interface/MainWindowInterface.cpp
-
13src/Eden/Interface/MainWindowInterface.h
-
16src/Eden/Main/Main.qml
-
5src/Eden/Native/EdenApplication.cpp
-
31src/Eden/Native/LibQtCommon.cpp
-
2src/qt_common/CMakeLists.txt
-
21src/qt_common/abstract/frontend.cpp
-
26src/qt_common/abstract/frontend.h
-
4src/qt_common/externals/cpmfile.json
-
65src/qt_common/util/content.cpp
-
5src/qt_common/util/content.h
-
23src/yuzu/libqt_common.cpp
-
55src/yuzu/main_window.cpp
-
2src/yuzu/main_window.h
@ -0,0 +1,16 @@ |
|||
#include "MainWindowInterface.h"
|
|||
#include "qt_common/util/content.h"
|
|||
|
|||
MainWindowInterface::MainWindowInterface(QObject* parent) : QObject{parent} {} |
|||
|
|||
void MainWindowInterface::installFirmware() { |
|||
QtCommon::Content::InstallFirmware(); |
|||
} |
|||
|
|||
void MainWindowInterface::installFirmwareZip() { |
|||
QtCommon::Content::InstallFirmwareZip(); |
|||
} |
|||
|
|||
void MainWindowInterface::verifyIntegrity() { |
|||
QtCommon::Content::VerifyInstalledContents(); |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
#pragma once |
|||
|
|||
#include <QObject> |
|||
|
|||
class MainWindowInterface : public QObject { |
|||
Q_OBJECT |
|||
public: |
|||
explicit MainWindowInterface(QObject* parent = nullptr); |
|||
|
|||
Q_INVOKABLE void installFirmware(); |
|||
Q_INVOKABLE void installFirmwareZip(); |
|||
Q_INVOKABLE void verifyIntegrity(); |
|||
}; |
|||
@ -0,0 +1,21 @@ |
|||
#include "frontend.h"
|
|||
|
|||
namespace QtCommon::Frontend { |
|||
QString GetOpenFileName(const QString& title, const QString& dir, const QString& filter, |
|||
QString* selectedFilter, QFileDialog::Options options) { |
|||
return QFileDialog::getOpenFileName((QWidget*)rootObject, title, dir, filter, selectedFilter, |
|||
QFileDialog::Options(int(options))); |
|||
} |
|||
|
|||
QString GetSaveFileName(const QString& title, const QString& dir, const QString& filter, |
|||
QString* selectedFilter, QFileDialog::Options options) { |
|||
return QFileDialog::getSaveFileName((QWidget*)rootObject, title, dir, filter, selectedFilter, |
|||
QFileDialog::Options(int(options))); |
|||
} |
|||
|
|||
QString GetExistingDirectory(const QString& caption, const QString& dir, |
|||
QFileDialog::Options options) { |
|||
return QFileDialog::getExistingDirectory((QWidget*)rootObject, caption, dir, |
|||
QFileDialog::Options(int(options))); |
|||
} |
|||
} // namespace QtCommon::Frontend
|
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue