summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/ISOFile.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2015-09-06 12:34:48 +0200
committerJosJuice <josjuice@gmail.com>2015-09-06 13:33:19 +0200
commitcb3b1b6f445276b8f0a0ccbfafbff04b30b719f7 (patch)
tree4d87b86f884bfecc67596382cb25d0816b914b93 /Source/Core/DolphinWX/ISOFile.cpp
parentad978122d94cf7b87d6f37f4569688ccd15287c7 (diff)
DolphinWX: Don't use IsElfOrDol outside of ISOFile
It's redundant because GetPlatform can do the same thing.
Diffstat (limited to 'Source/Core/DolphinWX/ISOFile.cpp')
-rw-r--r--Source/Core/DolphinWX/ISOFile.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/Source/Core/DolphinWX/ISOFile.cpp b/Source/Core/DolphinWX/ISOFile.cpp
index 19246a0f0c..461a3e1341 100644
--- a/Source/Core/DolphinWX/ISOFile.cpp
+++ b/Source/Core/DolphinWX/ISOFile.cpp
@@ -2,6 +2,7 @@
// Licensed under GPLv2+
// Refer to the license.txt file included.
+#include <algorithm>
#include <cinttypes>
#include <cstdio>
#include <cstring>
@@ -193,7 +194,22 @@ void GameListItem::DoState(PointerWrap &p)
p.Do(m_Revision);
}
-std::string GameListItem::CreateCacheFilename()
+bool GameListItem::IsElfOrDol() const
+{
+ const std::string name = GetName();
+ const size_t pos = name.rfind('.');
+
+ if (pos != std::string::npos)
+ {
+ std::string ext = name.substr(pos);
+ std::transform(ext.begin(), ext.end(), ext.begin(), ::tolower);
+
+ return ext == ".elf" || ext == ".dol";
+ }
+ return false;
+}
+
+std::string GameListItem::CreateCacheFilename() const
{
std::string Filename, LegalPathname, extension;
SplitPath(m_FileName, &LegalPathname, &Filename, &extension);
@@ -294,19 +310,3 @@ const std::string GameListItem::GetWiiFSPath() const
return ret;
}
-
-bool GameListItem::IsElfOrDol() const
-{
- const std::string name = GetName();
- const size_t pos = name.rfind('.');
-
- if (pos != std::string::npos)
- {
- std::string ext = name.substr(pos);
- std::transform(ext.begin(), ext.end(), ext.begin(), ::tolower);
-
- return ext == ".elf" ||
- ext == ".dol";
- }
- return false;
-}