DolphinTool: print title IDs in hex
This commit is contained in:
parent
214756dd18
commit
884a38f04d
|
@ -92,7 +92,7 @@ int HeaderCommand(const std::vector<std::string>& args)
|
||||||
{
|
{
|
||||||
json["internal_name"] = picojson::value(volume->GetInternalName());
|
json["internal_name"] = picojson::value(volume->GetInternalName());
|
||||||
|
|
||||||
if (const std::optional<u64> revision = volume->GetRevision())
|
if (const std::optional<u16> revision = volume->GetRevision())
|
||||||
json["revision"] = picojson::value((double)revision.value());
|
json["revision"] = picojson::value((double)revision.value());
|
||||||
|
|
||||||
json["game_id"] = picojson::value(volume->GetGameID());
|
json["game_id"] = picojson::value(volume->GetGameID());
|
||||||
|
@ -153,13 +153,13 @@ int HeaderCommand(const std::vector<std::string>& args)
|
||||||
{
|
{
|
||||||
fmt::print(std::cout, "Internal Name: {}\n", volume->GetInternalName());
|
fmt::print(std::cout, "Internal Name: {}\n", volume->GetInternalName());
|
||||||
|
|
||||||
if (const std::optional<u64> revision = volume->GetRevision())
|
if (const std::optional<u16> revision = volume->GetRevision())
|
||||||
fmt::print(std::cout, "Revision: {}\n", revision.value());
|
fmt::print(std::cout, "Revision: {}\n", revision.value());
|
||||||
|
|
||||||
fmt::print(std::cout, "Game ID: {}\n", volume->GetGameID());
|
fmt::print(std::cout, "Game ID: {}\n", volume->GetGameID());
|
||||||
|
|
||||||
if (const std::optional<u64> title_id = volume->GetTitleID())
|
if (const std::optional<u64> title_id = volume->GetTitleID())
|
||||||
fmt::print(std::cout, "Title ID: {}\n", title_id.value());
|
fmt::print(std::cout, "Title ID: {:016x}\n", title_id.value());
|
||||||
|
|
||||||
fmt::print(std::cout, "Region: {}\n", DiscIO::GetName(volume->GetRegion(), false));
|
fmt::print(std::cout, "Region: {}\n", DiscIO::GetName(volume->GetRegion(), false));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue