HostInterface: Fix crash in SetUserDirectory

This commit is contained in:
Connor McLaughlin 2020-02-15 23:12:15 +09:00
parent 223cf6bf31
commit befa2a27d8
1 changed files with 1 additions and 1 deletions

View File

@ -415,7 +415,7 @@ void HostInterface::SetUserDirectory()
{
const std::string program_path = FileSystem::GetProgramPath();
const std::string program_directory = FileSystem::GetPathDirectory(program_path.c_str());
Log_InfoPrintf("Program path: \"%s\" (directory \"%s\")", program_path.c_str());
Log_InfoPrintf("Program path: \"%s\" (directory \"%s\")", program_path.c_str(), program_directory.c_str());
if (FileSystem::FileExists(StringUtil::StdStringFromFormat("%s%c%s", program_directory.c_str(),
FS_OSPATH_SEPERATOR_CHARACTER, "portable.txt")