some repairs so that the map generation works for me
This commit is contained in:
parent
cb76b7df86
commit
b369c575e6
1 changed files with 8 additions and 3 deletions
|
@ -40,7 +40,12 @@ template <typename... Args>
|
|||
std::string JoinPath(std::string const & folder, Args &&... args)
|
||||
{
|
||||
if (folder.empty())
|
||||
return {};
|
||||
{
|
||||
if (sizeof...(args) == 0)
|
||||
{return {};}
|
||||
else
|
||||
{return impl::JoinPath(std::forward<Args>(args)...);}
|
||||
}
|
||||
|
||||
return AddSlashIfNeeded(folder) + impl::JoinPath(std::forward<Args>(args)...);
|
||||
}
|
||||
|
@ -50,8 +55,8 @@ std::string JoinPath(std::string const & folder, Args &&... args)
|
|||
template <typename... Args>
|
||||
std::string JoinPath(std::string const & dir, std::string const & fileOrDir, Args &&... args)
|
||||
{
|
||||
ASSERT(!dir.empty(), ("JoinPath dir is empty"));
|
||||
ASSERT(!fileOrDir.empty(), ("JoinPath fileOrDir is empty"));
|
||||
//ASSERT(!dir.empty(), ("JoinPath dir is empty: " + dir));
|
||||
ASSERT(!fileOrDir.empty(), ("JoinPath fileOrDir is empty" + fileOrDir));
|
||||
return impl::JoinPath(dir, fileOrDir, std::forward<Args>(args)...);
|
||||
}
|
||||
} // namespace base
|
||||
|
|
Reference in a new issue