summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/Src/VolumeCommon.cpp
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2013-03-02 19:46:55 -0600
committerJordan Woyak <jordan.woyak@gmail.com>2013-03-02 20:00:36 -0600
commit6c8adf6130b32a0ffc113f4ce30f70b9d5994f10 (patch)
treedd0ef27543036f38b29a336682adbc3624ae8996 /Source/Core/DiscIO/Src/VolumeCommon.cpp
parent2b1af36900bcb13102690bd862246b9cc3b7d541 (diff)
Eliminate the wstring game name.
Some cleanup throughout related code. (try to make logic in ISOFile understandable by a human) Encode strings in UTF-8 rather than somehow trying to determine the encoding in the GUI code. Non-windows OSes temporarily broken.
Diffstat (limited to 'Source/Core/DiscIO/Src/VolumeCommon.cpp')
-rw-r--r--Source/Core/DiscIO/Src/VolumeCommon.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/Core/DiscIO/Src/VolumeCommon.cpp b/Source/Core/DiscIO/Src/VolumeCommon.cpp
index 415af2725a..4ab433680d 100644
--- a/Source/Core/DiscIO/Src/VolumeCommon.cpp
+++ b/Source/Core/DiscIO/Src/VolumeCommon.cpp
@@ -111,5 +111,13 @@ u8 GetSysMenuRegion(u16 _TitleVersion)
}
}
-};
+std::string IVolume::GetName() const
+{
+ auto names = GetNames();
+ if (names.empty())
+ return "";
+ else
+ return names[0];
+}
+}