Skip to content

Commit

Permalink
riderにおいてデバッグ実行時にCurrentDirectoryがAppじゃなくなる問題を解決
Browse files Browse the repository at this point in the history
  • Loading branch information
sumidawara committed Dec 24, 2024
1 parent 71f5f27 commit ca35069
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Siv3D/src/Siv3D-Platform/WindowsDesktop/Siv3D/Siv3DMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,16 @@ namespace s3d
return;
}

if (const FilePath workingDirectory = FileSystem::ParentPath(FileSystem::ModulePath()))
const FilePath workingDirectory = FileSystem::ParentPath(FileSystem::ModulePath());
const FilePath pdbFileName = FileSystem::BaseName(FileSystem::ModulePath()) + U".pdb";
const FilePath pdbFilePath = FileSystem::PathAppend(workingDirectory, pdbFileName);

if(FileSystem::IsFile(pdbFilePath))
{
return;
}

if (workingDirectory)
{
FileSystem::ChangeCurrentDirectory(workingDirectory);
}
Expand Down

0 comments on commit ca35069

Please sign in to comment.