Skip to content

Commit

Permalink
VS 実行の判定方法変更 (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
Reputeless committed Jul 7, 2024
1 parent a57dfed commit c2e308b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ namespace s3d
{
wchar_t* pValue;
size_t len;
errno_t err = ::_wdupenv_s(&pValue, &len, L"VisualStudioVersion");
errno_t err = ::_wdupenv_s(&pValue, &len, L"SIV3D_APP_LAUNCHED_FROM_IDE");

if (err || (not pValue))
{
Expand Down
2 changes: 2 additions & 0 deletions WindowsDesktop/Siv3D-Test.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,15 @@
<LibraryPath>$(SolutionDir)..\Siv3D\lib\Windows;$(LibraryPath)</LibraryPath>
<TargetName>$(ProjectName)(debug)</TargetName>
<LocalDebuggerWorkingDirectory>$(ProjectDir)App</LocalDebuggerWorkingDirectory>
<LocalDebuggerEnvironment>SIV3D_APP_LAUNCHED_FROM_IDE=1</LocalDebuggerEnvironment>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<OutDir>$(SolutionDir)Intermediate\$(ProjectName)\Release\</OutDir>
<IntDir>$(SolutionDir)Intermediate\$(ProjectName)\Release\Intermediate\</IntDir>
<IncludePath>$(SolutionDir)..\Siv3D\include;$(SolutionDir)..\Siv3D\include\ThirdParty;$(IncludePath)</IncludePath>
<LibraryPath>$(SolutionDir)..\Siv3D\lib\Windows;$(LibraryPath)</LibraryPath>
<LocalDebuggerWorkingDirectory>$(ProjectDir)App</LocalDebuggerWorkingDirectory>
<LocalDebuggerEnvironment>SIV3D_APP_LAUNCHED_FROM_IDE=1</LocalDebuggerEnvironment>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
Expand Down

0 comments on commit c2e308b

Please sign in to comment.