summaryrefslogtreecommitdiffstats
path: root/src/common/file_util.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-10-04 00:44:51 +0200
committerGitHub <noreply@github.com>2018-10-04 00:44:51 +0200
commit137d43fa2f8060ee9052f7541a34b900ecbc7ff0 (patch)
tree3927c204eda84d63db274f615b7c69137f12dc9c /src/common/file_util.h
parentMerge pull request #1435 from lioncash/xci (diff)
parentstring_util: unify UTF8<->UTF16 conversion to codecvt (diff)
downloadyuzu-137d43fa2f8060ee9052f7541a34b900ecbc7ff0.tar
yuzu-137d43fa2f8060ee9052f7541a34b900ecbc7ff0.tar.gz
yuzu-137d43fa2f8060ee9052f7541a34b900ecbc7ff0.tar.bz2
yuzu-137d43fa2f8060ee9052f7541a34b900ecbc7ff0.tar.lz
yuzu-137d43fa2f8060ee9052f7541a34b900ecbc7ff0.tar.xz
yuzu-137d43fa2f8060ee9052f7541a34b900ecbc7ff0.tar.zst
yuzu-137d43fa2f8060ee9052f7541a34b900ecbc7ff0.zip
Diffstat (limited to 'src/common/file_util.h')
-rw-r--r--src/common/file_util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/file_util.h b/src/common/file_util.h
index 3d8fe6264..571503d2a 100644
--- a/src/common/file_util.h
+++ b/src/common/file_util.h
@@ -285,7 +285,7 @@ private:
template <typename T>
void OpenFStream(T& fstream, const std::string& filename, std::ios_base::openmode openmode) {
#ifdef _MSC_VER
- fstream.open(Common::UTF8ToTStr(filename).c_str(), openmode);
+ fstream.open(Common::UTF8ToUTF16W(filename).c_str(), openmode);
#else
fstream.open(filename.c_str(), openmode);
#endif