mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-05 22:41:18 +12:00
Also check that portable
is a directory
This commit is contained in:
parent
3b182be1d7
commit
8c34745e2f
1 changed files with 4 additions and 4 deletions
|
@ -89,7 +89,7 @@ void CemuApp::DeterminePaths(std::set<fs::path>& failedWriteAccess) // for Windo
|
|||
fs::path portablePath = exePath.parent_path() / "portable";
|
||||
data_path = exePath.parent_path(); // the data path is always the same as the exe path
|
||||
#ifdef CEMU_ALLOW_PORTABLE
|
||||
if (fs::exists(portablePath, ec))
|
||||
if (fs::is_directory(portablePath, ec))
|
||||
{
|
||||
isPortable = true;
|
||||
user_data_path = config_path = cache_path = portablePath;
|
||||
|
@ -132,7 +132,7 @@ void CemuApp::DeterminePaths(std::set<fs::path>& failedWriteAccess) // for Linux
|
|||
portablePath = exePath.parent_path() / "portable";
|
||||
}
|
||||
#ifdef CEMU_ALLOW_PORTABLE
|
||||
if (fs::exists(portablePath, ec))
|
||||
if (fs::is_directory(portablePath, ec))
|
||||
{
|
||||
isPortable = true;
|
||||
user_data_path = config_path = cache_path = portablePath;
|
||||
|
@ -174,8 +174,8 @@ void CemuApp::DeterminePaths(std::set<fs::path>& failedWriteAccess) // for MacOS
|
|||
// If run from an app bundle, use its parent directory
|
||||
fs::path appPath = exePath.parent_path().parent_path().parent_path();
|
||||
fs::path portablePath = appPath.extension() == ".app" ? appPath.parent_path() / "portable" : exePath.parent_path() / "portable";
|
||||
#ifdef CEMU_ALLOW_PORTABLE
|
||||
if (fs::exists(portablePath, ec))
|
||||
#ifdef CEMU_ALLOW_PORTABLE
|
||||
if (fs::is_directory(portablePath, ec))
|
||||
{
|
||||
isPortable = true;
|
||||
user_data_path = config_path = cache_path = portablePath;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue