diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2013-03-02 19:46:55 -0600 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2013-03-02 20:00:36 -0600 |
| commit | 6c8adf6130b32a0ffc113f4ce30f70b9d5994f10 (patch) | |
| tree | dd0ef27543036f38b29a336682adbc3624ae8996 /Source/Core/DiscIO/Src/VolumeGC.cpp | |
| parent | 2b1af36900bcb13102690bd862246b9cc3b7d541 (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/VolumeGC.cpp')
| -rw-r--r-- | Source/Core/DiscIO/Src/VolumeGC.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/Source/Core/DiscIO/Src/VolumeGC.cpp b/Source/Core/DiscIO/Src/VolumeGC.cpp index 09e2c5eaa9..6e9579571a 100644 --- a/Source/Core/DiscIO/Src/VolumeGC.cpp +++ b/Source/Core/DiscIO/Src/VolumeGC.cpp @@ -91,16 +91,15 @@ std::string CVolumeGC::GetMakerID() const return makerID; } -std::string CVolumeGC::GetName() const +std::vector<std::string> CVolumeGC::GetNames() const { - if (m_pReader == NULL) - return ""; + std::vector<std::string> names; - char name[128]; - if (!Read(0x20, 0x60, (u8*)&name)) - return ""; + char name[128] = {}; + if (m_pReader != NULL && Read(0x20, 0x60, (u8*)&name)) + names.push_back(name); - return name; + return names; } u32 CVolumeGC::GetFSTSize() const |
