mirror of
https://github.com/Dark98/threeSD.git
synced 2026-07-04 08:39:05 +00:00
Change filename format to better match GM9's
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include <cinttypes>
|
||||
#include <cryptopp/rsa.h>
|
||||
#include <cryptopp/sha.h>
|
||||
#include <fmt/format.h>
|
||||
#include "common/alignment.h"
|
||||
#include "common/assert.h"
|
||||
#include "common/file_util.h"
|
||||
@@ -164,6 +165,12 @@ u16 TitleMetadata::GetTitleVersion() const {
|
||||
return tmd_body.title_version;
|
||||
}
|
||||
|
||||
std::string TitleMetadata::GetTitleVersionString() const {
|
||||
const auto title_version = static_cast<u16>(tmd_body.title_version);
|
||||
return fmt::format("{}.{}.{}", (title_version >> 10) & 0x3F, (title_version >> 4) & 0x3F,
|
||||
title_version & 0xF);
|
||||
}
|
||||
|
||||
u64 TitleMetadata::GetSystemVersion() const {
|
||||
return tmd_body.system_version;
|
||||
}
|
||||
|
||||
@@ -90,6 +90,7 @@ public:
|
||||
u64 GetTitleID() const;
|
||||
u32 GetTitleType() const;
|
||||
u16 GetTitleVersion() const;
|
||||
std::string GetTitleVersionString() const;
|
||||
u64 GetSystemVersion() const;
|
||||
std::size_t GetContentCount() const;
|
||||
u32 GetBootContentID() const;
|
||||
|
||||
Reference in New Issue
Block a user