mirror of
https://github.com/Dark98/threeSD.git
synced 2026-07-03 00:38:58 +00:00
0cf7e8a84a
This is so hard...
48 lines
1.1 KiB
C++
48 lines
1.1 KiB
C++
// Copyright 2021 threeSD Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#include <memory>
|
|
#include "core/file_sys/smdh.h"
|
|
#include "frontend/helpers/dpi_aware_dialog.h"
|
|
|
|
namespace Core {
|
|
struct Config;
|
|
struct ContentSpecifier;
|
|
class NCCHContainer;
|
|
class SDMCImporter;
|
|
class TitleMetadata;
|
|
} // namespace Core
|
|
|
|
namespace Ui {
|
|
class TitleInfoDialog;
|
|
}
|
|
|
|
class TitleInfoDialog : public DPIAwareDialog {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit TitleInfoDialog(QWidget* parent, Core::SDMCImporter& importer,
|
|
Core::ContentSpecifier specifier);
|
|
~TitleInfoDialog();
|
|
|
|
private:
|
|
void LoadInfo();
|
|
|
|
void LoadEncryption(Core::NCCHContainer& ncch);
|
|
void LoadIcons();
|
|
void InitializeLanguageComboBox();
|
|
void InitializeChecks(Core::TitleMetadata& tmd);
|
|
|
|
void SaveIcon(bool large);
|
|
void UpdateNames();
|
|
void ExecuteContentsCheck();
|
|
|
|
std::unique_ptr<Ui::TitleInfoDialog> ui;
|
|
|
|
Core::SDMCImporter& importer;
|
|
const Core::ContentSpecifier specifier;
|
|
Core::SMDH smdh{};
|
|
bool contents_check_result = false;
|
|
};
|