summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/VolumeWiiCrypted.cpp
diff options
context:
space:
mode:
authorMarkus Wick <markus@selfnet.de>2015-06-18 14:57:10 +0200
committerMarkus Wick <markus@selfnet.de>2015-06-18 14:57:10 +0200
commit156fb82117bfb42860a99828254a52ce6f14fd1c (patch)
tree70e08cf5edd45329fa39c3fdeff1bfe5b6410b46 /Source/Core/DiscIO/VolumeWiiCrypted.cpp
parent3df28a4ea0670494c853cd64289046c415e3e87b (diff)
parenta825c7ddfea49eefd9c9774ba6545a4292812221 (diff)
Merge pull request #2620 from JosJuice/more-decodestring
Volume: Use DecodeString more
Diffstat (limited to 'Source/Core/DiscIO/VolumeWiiCrypted.cpp')
-rw-r--r--Source/Core/DiscIO/VolumeWiiCrypted.cpp16
1 files changed, 5 insertions, 11 deletions
diff --git a/Source/Core/DiscIO/VolumeWiiCrypted.cpp b/Source/Core/DiscIO/VolumeWiiCrypted.cpp
index ec5564f954..5701dab1cc 100644
--- a/Source/Core/DiscIO/VolumeWiiCrypted.cpp
+++ b/Source/Core/DiscIO/VolumeWiiCrypted.cpp
@@ -144,14 +144,12 @@ std::string CVolumeWiiCrypted::GetUniqueID() const
if (m_pReader == nullptr)
return std::string();
- char ID[7];
+ char ID[6];
if (!Read(0, 6, (u8*)ID, false))
return std::string();
- ID[6] = '\0';
-
- return ID;
+ return DecodeString(ID);
}
@@ -171,14 +169,12 @@ std::string CVolumeWiiCrypted::GetMakerID() const
if (m_pReader == nullptr)
return std::string();
- char makerID[3];
+ char makerID[2];
if (!Read(0x4, 0x2, (u8*)&makerID, false))
return std::string();
- makerID[2] = '\0';
-
- return makerID;
+ return DecodeString(makerID);
}
u16 CVolumeWiiCrypted::GetRevision() const
@@ -233,9 +229,7 @@ std::string CVolumeWiiCrypted::GetApploaderDate() const
if (!Read(0x2440, 0x10, (u8*)&date, true))
return std::string();
- date[10] = '\0';
-
- return date;
+ return DecodeString(date);
}
IVolume::EPlatform CVolumeWiiCrypted::GetVolumeType() const