summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/Src/VolumeCommon.cpp
diff options
context:
space:
mode:
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];
+}
+}