Replace backslashes with slashes for Windows home dir

This commit is contained in:
Edgar Handal 2020-07-07 17:25:03 -05:00 committed by R2DLiu
commit 1c94125e6e

View file

@ -760,6 +760,7 @@ std::string GetHomeDirectory()
const char* home = getenv("USERPROFILE"); const char* home = getenv("USERPROFILE");
homeDir = std::string(home) + "\\Documents"; homeDir = std::string(home) + "\\Documents";
} }
homeDir = ReplaceAll(std::move(homeDir), "\\", DIR_SEP);
#else #else
const char* home = getenv("HOME"); const char* home = getenv("HOME");
homeDir = std::string(home); homeDir = std::string(home);