From ca35069b46a44a4f85018c68134f7e7bb58953f2 Mon Sep 17 00:00:00 2001 From: sumidawara Date: Tue, 24 Dec 2024 23:12:58 +0900 Subject: [PATCH] =?UTF-8?q?rider=E3=81=AB=E3=81=8A=E3=81=84=E3=81=A6?= =?UTF-8?q?=E3=83=87=E3=83=90=E3=83=83=E3=82=B0=E5=AE=9F=E8=A1=8C=E6=99=82?= =?UTF-8?q?=E3=81=ABCurrentDirectory=E3=81=8CApp=E3=81=98=E3=82=83?= =?UTF-8?q?=E3=81=AA=E3=81=8F=E3=81=AA=E3=82=8B=E5=95=8F=E9=A1=8C=E3=82=92?= =?UTF-8?q?=E8=A7=A3=E6=B1=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Siv3D-Platform/WindowsDesktop/Siv3D/Siv3DMain.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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); }