diff --git a/Siv3D/src/Siv3D-Platform/WindowsDesktop/Siv3D/Siv3DMain.cpp b/Siv3D/src/Siv3D-Platform/WindowsDesktop/Siv3D/Siv3DMain.cpp index ce7a3fcce..a8826446c 100644 --- a/Siv3D/src/Siv3D-Platform/WindowsDesktop/Siv3D/Siv3DMain.cpp +++ b/Siv3D/src/Siv3D-Platform/WindowsDesktop/Siv3D/Siv3DMain.cpp @@ -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); }