mirror of
https://github.com/Dark98/threeSD.git
synced 2026-07-05 08:39:04 +00:00
Sth more
This commit is contained in:
@@ -47,15 +47,6 @@ static constexpr std::array<std::tuple<Core::ContentType, const char*, const cha
|
|||||||
}};
|
}};
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|
||||||
static const std::unordered_map<Core::EncryptionType, const char*> EncryptionTypeMap{{
|
|
||||||
{Core::EncryptionType::None, QT_TR_NOOP("None")},
|
|
||||||
{Core::EncryptionType::FixedKey, QT_TR_NOOP("FixedKey")},
|
|
||||||
{Core::EncryptionType::NCCHSecure1, QT_TR_NOOP("Secure1")},
|
|
||||||
{Core::EncryptionType::NCCHSecure2, QT_TR_NOOP("Secure2")},
|
|
||||||
{Core::EncryptionType::NCCHSecure3, QT_TR_NOOP("Secure3")},
|
|
||||||
{Core::EncryptionType::NCCHSecure4, QT_TR_NOOP("Secure4")},
|
|
||||||
}};
|
|
||||||
|
|
||||||
static QString GetContentName(const Core::ContentSpecifier& specifier) {
|
static QString GetContentName(const Core::ContentSpecifier& specifier) {
|
||||||
return specifier.name.empty()
|
return specifier.name.empty()
|
||||||
? QStringLiteral("0x%1").arg(specifier.id, 16, 16, QLatin1Char('0'))
|
? QStringLiteral("0x%1").arg(specifier.id, 16, 16, QLatin1Char('0'))
|
||||||
|
|||||||
@@ -42,8 +42,7 @@ void TitleInfoDialog::LoadInfo(const Core::Config& config) {
|
|||||||
ui->versionLineEdit->setText(QString::fromStdString(tmd.GetTitleVersionString()));
|
ui->versionLineEdit->setText(QString::fromStdString(tmd.GetTitleVersionString()));
|
||||||
ui->titleIDLineEdit->setText(QStringLiteral("%1").arg(specifier.id, 16, 16, QLatin1Char{'0'}));
|
ui->titleIDLineEdit->setText(QStringLiteral("%1").arg(specifier.id, 16, 16, QLatin1Char{'0'}));
|
||||||
|
|
||||||
const bool is_nand = specifier.type == Core::ContentType::SystemTitle ||
|
const bool is_nand = Core::IsNandTitle(specifier.type);
|
||||||
specifier.type == Core::ContentType::SystemApplet;
|
|
||||||
const auto physical_path =
|
const auto physical_path =
|
||||||
is_nand ? fmt::format("{}{:08x}/{:08x}/content/", config.system_titles_path,
|
is_nand ? fmt::format("{}{:08x}/{:08x}/content/", config.system_titles_path,
|
||||||
(specifier.id >> 32), (specifier.id & 0xFFFFFFFF))
|
(specifier.id >> 32), (specifier.id & 0xFFFFFFFF))
|
||||||
|
|||||||
Reference in New Issue
Block a user