From bf52adf76c9f5865b3197c6e30bdda067cc5f80b Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sun, 26 Mar 2023 00:18:13 +1100 Subject: [PATCH] Visual Studio: Include CCIcon.rc by default, so that executables compiled using Visual Studio have an icon --- doc/plugin-dev.md | 4 ++-- src/ClassiCube.vcxproj | 3 +++ src/ClassiCube.vcxproj.filters | 5 +++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/doc/plugin-dev.md b/doc/plugin-dev.md index 1da08baee..60f02f4ea 100644 --- a/doc/plugin-dev.md +++ b/doc/plugin-dev.md @@ -178,7 +178,7 @@ TODO more detailed when I have some more time... #### Setup -1) Compile the game, see `Cross compiling for windows` in main readme +1) Compile the game, see `Compiling - Windows > using Visual Studio` in main readme 2) Find the `ClassiCube.lib` that was generated when compiling the game. Usually it is in either `src\x64\Debug` or `src\x86\Debug`. 3) Add a new `Empty Project` to the ClassiCube solution, then add the plugin .c files to it @@ -188,7 +188,7 @@ Note: If the plugin provides a .vcxproj file, you can skip step 2 and just open The simplest way of linking to the `.lib` file is simply adding the following code to one of the plugin's `.c` files -`C +```C #ifdef _MSC_VER #ifdef _WIN64 #pragma comment(lib, "[GAME SRC FOLDER]/x64/Debug/ClassiCube.lib") diff --git a/src/ClassiCube.vcxproj b/src/ClassiCube.vcxproj index dfb1a69cf..83f42cab2 100644 --- a/src/ClassiCube.vcxproj +++ b/src/ClassiCube.vcxproj @@ -529,6 +529,9 @@ + + + diff --git a/src/ClassiCube.vcxproj.filters b/src/ClassiCube.vcxproj.filters index d8c46fbd2..fddbe0628 100644 --- a/src/ClassiCube.vcxproj.filters +++ b/src/ClassiCube.vcxproj.filters @@ -591,4 +591,9 @@ Source Files\Game + + + Resource Files + + \ No newline at end of file