赛博朋克2077使用RED4ext在vs中运行的示例代码
|
||
---|---|---|
.github/workflows | ||
deps | ||
src | ||
.clang-format | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.gitmodules | ||
LICENSE.md | ||
README.md | ||
RED4ext.Example.VisualStudio.sln | ||
test.tar.gz |
RED4ext.Example using Visual Studio
An example of a RED4ext plugin using Visual Studio.
Build instructions
Steps
- Download and install Visual Studio 2022 Community Edition or a higher version.
- Clone this repository.
- Clone the dependencies (
git submodule update --init --recursive
). - Open the solution (RED4ext.Example.VisualStudio.sln).
- Build the project (the artifacts are located in
build/{debug|release}
directory).
Notes:
- The plugin has to be a 64-bit library. That means all required libraries have to be compiled in 64-bit and the compiler has to support 64-bit.
- Make sure you have the latest SDK by updating it using the following commands:
cd deps/red4ext.sdk
git pull
/git fetch
git checkout master
- You can also generate the projects from command line, see the build.yml in .github/workflows/build.yml.