mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-29 19:15:38 +00:00
HostInterface: Fix crash in SetUserDirectory
This commit is contained in:
parent
223cf6bf31
commit
befa2a27d8
|
@ -415,7 +415,7 @@ void HostInterface::SetUserDirectory()
|
||||||
{
|
{
|
||||||
const std::string program_path = FileSystem::GetProgramPath();
|
const std::string program_path = FileSystem::GetProgramPath();
|
||||||
const std::string program_directory = FileSystem::GetPathDirectory(program_path.c_str());
|
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(),
|
if (FileSystem::FileExists(StringUtil::StdStringFromFormat("%s%c%s", program_directory.c_str(),
|
||||||
FS_OSPATH_SEPERATOR_CHARACTER, "portable.txt")
|
FS_OSPATH_SEPERATOR_CHARACTER, "portable.txt")
|
||||||
|
|
Loading…
Reference in a new issue