summaryrefslogtreecommitdiffstats
path: root/src/common/file_util.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-04-27 17:09:56 +0200
committerGitHub <noreply@github.com>2018-04-27 17:09:56 +0200
commitacede1f1d3309e629b1ddc55ad22f920fe50f681 (patch)
tree899731d5c75a7b40a8aa72f5e115f86e10078745 /src/common/file_util.cpp
parentMerge pull request #380 from ogniK5377/service-impl (diff)
parentgeneral: Convert assertion macros over to be fmt-compatible (diff)
downloadyuzu-acede1f1d3309e629b1ddc55ad22f920fe50f681.tar
yuzu-acede1f1d3309e629b1ddc55ad22f920fe50f681.tar.gz
yuzu-acede1f1d3309e629b1ddc55ad22f920fe50f681.tar.bz2
yuzu-acede1f1d3309e629b1ddc55ad22f920fe50f681.tar.lz
yuzu-acede1f1d3309e629b1ddc55ad22f920fe50f681.tar.xz
yuzu-acede1f1d3309e629b1ddc55ad22f920fe50f681.tar.zst
yuzu-acede1f1d3309e629b1ddc55ad22f920fe50f681.zip
Diffstat (limited to 'src/common/file_util.cpp')
-rw-r--r--src/common/file_util.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp
index 37f9e996c..cd852bfd8 100644
--- a/src/common/file_util.cpp
+++ b/src/common/file_util.cpp
@@ -653,12 +653,12 @@ static const std::string GetUserDirectory(const std::string& envvar) {
else if (envvar == "XDG_CACHE_HOME")
subdirectory = DIR_SEP ".cache";
else
- ASSERT_MSG(false, "Unknown XDG variable %s.", envvar.c_str());
+ ASSERT_MSG(false, "Unknown XDG variable {}.", envvar);
user_dir = GetHomeDirectory() + subdirectory;
}
- ASSERT_MSG(!user_dir.empty(), "User directory %s musn’t be empty.", envvar.c_str());
- ASSERT_MSG(user_dir[0] == '/', "User directory %s must be absolute.", envvar.c_str());
+ ASSERT_MSG(!user_dir.empty(), "User directory {} mustn’t be empty.", envvar);
+ ASSERT_MSG(user_dir[0] == '/', "User directory {} must be absolute.", envvar);
return user_dir;
}