summaryrefslogtreecommitdiffstats
path: root/src/core/loader/loader.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-07-22 07:23:29 +0200
committerLioncash <mathew1800@gmail.com>2018-07-22 09:22:21 +0200
commit398444e67635c158a20301d1a32a1c45bfdd4056 (patch)
treedb638ebe09199ae64b69f5911136effa9756571f /src/core/loader/loader.cpp
parentMerge pull request #764 from lioncash/move (diff)
downloadyuzu-398444e67635c158a20301d1a32a1c45bfdd4056.tar
yuzu-398444e67635c158a20301d1a32a1c45bfdd4056.tar.gz
yuzu-398444e67635c158a20301d1a32a1c45bfdd4056.tar.bz2
yuzu-398444e67635c158a20301d1a32a1c45bfdd4056.tar.lz
yuzu-398444e67635c158a20301d1a32a1c45bfdd4056.tar.xz
yuzu-398444e67635c158a20301d1a32a1c45bfdd4056.tar.zst
yuzu-398444e67635c158a20301d1a32a1c45bfdd4056.zip
Diffstat (limited to 'src/core/loader/loader.cpp')
-rw-r--r--src/core/loader/loader.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/loader/loader.cpp b/src/core/loader/loader.cpp
index e70f37677..4cbd9e285 100644
--- a/src/core/loader/loader.cpp
+++ b/src/core/loader/loader.cpp
@@ -49,7 +49,8 @@ FileType GuessFromFilename(const std::string& name) {
if (name == "main")
return FileType::DeconstructedRomDirectory;
- const std::string extension = Common::ToLower(FileUtil::GetExtensionFromFilename(name));
+ const std::string extension =
+ Common::ToLower(std::string(FileUtil::GetExtensionFromFilename(name)));
if (extension == "elf")
return FileType::ELF;