HostInterface: Fix crash in SetUserDirectory
This commit is contained in:
1 parent
223cf6bf31
commit
befa2a27d8
1 file changed
+1
-1
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user