From fde7372e2f245401f515cf1e568747fe6576f8fd Mon Sep 17 00:00:00 2001 From: Mosch0512 Date: Sat, 9 May 2026 02:13:28 +0200 Subject: [PATCH] Move Windows-only resource files to Platform/Windows/ (#343) Group Windows-specific resource files into src/source/Platform/Windows/ so the source root no longer mixes platform-specific files with cross-platform code. Sets up the conventional Platform// layout used by Godot, Qt, SDL. Moved: - resource.h, resource.rc, resource.aps - icon1.ico, icon2.ico - Global Release/resource.res (also drops the stray-space folder) Updated: - Winmain.cpp: #include "Platform/Windows/resource.h" - src/CMakeLists.txt: target_sources path for the RC file --- src/CMakeLists.txt | 2 +- src/source/{ => Platform/Windows}/icon1.ico | Bin src/source/{ => Platform/Windows}/icon2.ico | Bin src/source/{ => Platform/Windows}/resource.aps | Bin src/source/{ => Platform/Windows}/resource.h | 0 src/source/{ => Platform/Windows}/resource.rc | 0 .../Windows}/resource.res | Bin src/source/Winmain.cpp | 2 +- 8 files changed, 2 insertions(+), 2 deletions(-) rename src/source/{ => Platform/Windows}/icon1.ico (100%) rename src/source/{ => Platform/Windows}/icon2.ico (100%) rename src/source/{ => Platform/Windows}/resource.aps (100%) rename src/source/{ => Platform/Windows}/resource.h (100%) rename src/source/{ => Platform/Windows}/resource.rc (100%) rename src/source/{Global Release => Platform/Windows}/resource.res (100%) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6894592c2..f0e20bcca 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -141,7 +141,7 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Windows") enable_language(RC) target_sources(Main PRIVATE - "${CMAKE_CURRENT_SOURCE_DIR}/source/resource.rc" + "${CMAKE_CURRENT_SOURCE_DIR}/source/Platform/Windows/resource.rc" ) endif() diff --git a/src/source/icon1.ico b/src/source/Platform/Windows/icon1.ico similarity index 100% rename from src/source/icon1.ico rename to src/source/Platform/Windows/icon1.ico diff --git a/src/source/icon2.ico b/src/source/Platform/Windows/icon2.ico similarity index 100% rename from src/source/icon2.ico rename to src/source/Platform/Windows/icon2.ico diff --git a/src/source/resource.aps b/src/source/Platform/Windows/resource.aps similarity index 100% rename from src/source/resource.aps rename to src/source/Platform/Windows/resource.aps diff --git a/src/source/resource.h b/src/source/Platform/Windows/resource.h similarity index 100% rename from src/source/resource.h rename to src/source/Platform/Windows/resource.h diff --git a/src/source/resource.rc b/src/source/Platform/Windows/resource.rc similarity index 100% rename from src/source/resource.rc rename to src/source/Platform/Windows/resource.rc diff --git a/src/source/Global Release/resource.res b/src/source/Platform/Windows/resource.res similarity index 100% rename from src/source/Global Release/resource.res rename to src/source/Platform/Windows/resource.res diff --git a/src/source/Winmain.cpp b/src/source/Winmain.cpp index dd3f96492..a2c6986ba 100644 --- a/src/source/Winmain.cpp +++ b/src/source/Winmain.cpp @@ -24,7 +24,7 @@ #include "ZzzLodTerrain.h" #include "DSPlaySound.h" -#include "resource.h" +#include "Platform/Windows/resource.h" #include #include "ZzzPath.h" #include "Local.h"