Implement copilot suggestions

This commit is contained in:
rtm516 2026-03-14 10:59:58 +00:00
parent 980e5b9228
commit ad55c38d02
No known key found for this signature in database
GPG key ID: 331715B8B007C67A
3 changed files with 6 additions and 6 deletions

View file

@ -26,7 +26,7 @@ function(configure_msvc_target target)
$<$<AND:$<CONFIG:Release>,$<COMPILE_LANGUAGE:C,CXX>>:/W0> $<$<AND:$<CONFIG:Release>,$<COMPILE_LANGUAGE:C,CXX>>:/W0>
$<$<COMPILE_LANGUAGE:C,CXX>:/MP> $<$<COMPILE_LANGUAGE:C,CXX>:/MP>
$<$<COMPILE_LANGUAGE:C,CXX>:/FS> $<$<COMPILE_LANGUAGE:C,CXX>:/FS>
$<$<COMPILE_LANGUAGE:C,CXX>:/GS-> $<$<COMPILE_LANGUAGE:C,CXX>:/GS>
$<$<COMPILE_LANGUAGE:CXX>:/EHsc> $<$<COMPILE_LANGUAGE:CXX>:/EHsc>
$<$<COMPILE_LANGUAGE:CXX>:/GR> $<$<COMPILE_LANGUAGE:CXX>:/GR>
$<$<AND:$<CONFIG:Debug>,$<COMPILE_LANGUAGE:C,CXX>>:/Od> $<$<AND:$<CONFIG:Debug>,$<COMPILE_LANGUAGE:C,CXX>>:/Od>

View file

@ -17,7 +17,7 @@ set(MINECRAFT_CLIENT_SOURCES
$<$<STREQUAL:${PLATFORM_NAME},PS3>:${MINECRAFT_CLIENT_PS3}> $<$<STREQUAL:${PLATFORM_NAME},PS3>:${MINECRAFT_CLIENT_PS3}>
$<$<STREQUAL:${PLATFORM_NAME},PSVita>:${MINECRAFT_CLIENT_PSVITA}> $<$<STREQUAL:${PLATFORM_NAME},PSVita>:${MINECRAFT_CLIENT_PSVITA}>
$<$<STREQUAL:${PLATFORM_NAME},Windows64>:${MINECRAFT_CLIENT_WINDOWS}> $<$<STREQUAL:${PLATFORM_NAME},Windows64>:${MINECRAFT_CLIENT_WINDOWS}>
$<$<STREQUAL:${PLATFORM_NAME},Xbox360>:${MINECRAFT_CLIENT_XBOX360}> $<$<STREQUAL:${PLATFORM_NAME},Xbox>:${MINECRAFT_CLIENT_XBOX360}>
${SOURCES_COMMON} ${SOURCES_COMMON}
) )
@ -47,7 +47,7 @@ if(MSVC)
endif() endif()
set_target_properties(Minecraft.Client PROPERTIES set_target_properties(Minecraft.Client PROPERTIES
VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>"
) )
target_link_libraries(Minecraft.Client PRIVATE target_link_libraries(Minecraft.Client PRIVATE

View file

@ -80,13 +80,13 @@ Minecraft.Client.exe -name Steve -fullscreen
1. Install [Visual Studio 2022](https://aka.ms/vs/17/release/vs_community.exe) or [newer](https://visualstudio.microsoft.com/downloads/). 1. Install [Visual Studio 2022](https://aka.ms/vs/17/release/vs_community.exe) or [newer](https://visualstudio.microsoft.com/downloads/).
2. Clone the repository. 2. Clone the repository.
3. Open the project folder from Visual Studio. 3. Open the project folder from Visual Studio.
5. Set the build configuration to **Windows - Debug** (Release is also ok but missing some debug features), then build and run. 4. Set the build configuration to **Windows - Debug** (Release is also ok but missing some debug features), then build and run.
### CMake (Windows x64) ### CMake (Windows x64)
```powershell ```powershell
cmake -B out/build --preset windows64 cmake --preset windows64
cmake --build out/build --preset windows64-release --target Minecraft.Client cmake --build --preset windows64-release --target Minecraft.Client
``` ```
For more information, see [COMPILE.md](COMPILE.md). For more information, see [COMPILE.md](COMPILE.md).