Move resources to submodule

This commit is contained in:
Hyper 2024-12-01 19:56:14 +00:00
parent 1821fae71e
commit 913f5a388b
7 changed files with 7 additions and 3 deletions

3
.gitmodules vendored
View file

@ -10,3 +10,6 @@
[submodule "thirdparty/libmspack"] [submodule "thirdparty/libmspack"]
path = thirdparty/libmspack path = thirdparty/libmspack
url = https://github.com/kyz/libmspack url = https://github.com/kyz/libmspack
[submodule "UnleashedRecompResources"]
path = UnleashedRecompResources
url = https://github.com/hedge-dev/UnleashedRecompResources.git

View file

@ -24,8 +24,8 @@ add_compile_definitions(
_CRT_SECURE_NO_WARNINGS) _CRT_SECURE_NO_WARNINGS)
# Generate icon bitmap header for SDL surface. # Generate icon bitmap header for SDL surface.
BIN2H(SOURCE_FILE "res/icon.bmp" HEADER_FILE "res/icon.h" ARRAY_TYPE "unsigned char" VARIABLE_NAME "g_icon") BIN2H(SOURCE_FILE "../UnleashedRecompResources/images/game_icon.bmp" HEADER_FILE "res/icon.h" ARRAY_TYPE "unsigned char" VARIABLE_NAME "g_icon")
BIN2H(SOURCE_FILE "res/icon_night.bmp" HEADER_FILE "res/icon_night.h" ARRAY_TYPE "unsigned char" VARIABLE_NAME "g_iconNight") BIN2H(SOURCE_FILE "../UnleashedRecompResources/images/game_icon_night.bmp" HEADER_FILE "res/icon_night.h" ARRAY_TYPE "unsigned char" VARIABLE_NAME "g_iconNight")
set(SWA_PRECOMPILED_HEADERS set(SWA_PRECOMPILED_HEADERS
"stdafx.h" "stdafx.h"
@ -133,7 +133,7 @@ set(SWA_CXX_SOURCES
if (WIN32) if (WIN32)
# Set up Win32 resources for application icon. # Set up Win32 resources for application icon.
set(ICON_PATH "${PROJECT_SOURCE_DIR}/res/win32/icon.ico") set(ICON_PATH "${PROJECT_SOURCE_DIR}/../UnleashedRecompResources/images/game_icon.ico")
configure_file("res/win32/res.rc" "${CMAKE_BINARY_DIR}/res.rc" @ONLY) configure_file("res/win32/res.rc" "${CMAKE_BINARY_DIR}/res.rc" @ONLY)
add_executable(UnleashedRecomp ${SWA_CXX_SOURCES} "${CMAKE_BINARY_DIR}/res.rc") add_executable(UnleashedRecomp ${SWA_CXX_SOURCES} "${CMAKE_BINARY_DIR}/res.rc")
else() else()

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 232 KiB

@ -0,0 +1 @@
Subproject commit 7183c6e0e90480fe0f2c270c87cea5cd5df7d5c3