Check whether portable is directory to avoid conflict with portable sandboxing framework

This commit is contained in:
heavysink 2024-12-09 12:45:10 -06:00
parent dd0af0a56f
commit 3fae0350fe

View file

@ -88,7 +88,7 @@ void CemuApp::DeterminePaths(std::set<fs::path>& failedWriteAccess) // for Windo
fs::path exePath(wxHelper::MakeFSPath(standardPaths.GetExecutablePath()));
fs::path portablePath = exePath.parent_path() / "portable";
data_path = exePath.parent_path(); // the data path is always the same as the exe path
if (fs::exists(portablePath, ec))
if (fs::is_directory(portablePath, ec))
{
isPortable = true;
user_data_path = config_path = cache_path = portablePath;