Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for both real and virtual filesystem #152

Merged
merged 22 commits into from
Aug 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
933387d
Decoupled devtools from the main project
dbeef Jun 17, 2024
4d2f62b
Introduced Assets module; Loading assets from filesystem
dbeef Jul 1, 2024
66a1c17
Removed all generated (resource-compiled) audio headers
dbeef Jul 1, 2024
6b6348c
Loading audio data through the Assets module
dbeef Jul 1, 2024
d175e97
Added shell script for spritesheet generation
dbeef Jul 2, 2024
7745bb6
Adjusted assets path; Added spritesheet paths
dbeef Jul 2, 2024
14a36a1
Removed all generated (resource-compiled) spritesheet headers
dbeef Jul 2, 2024
77e0748
Loading spritesheet data through the Assets module
dbeef Jul 2, 2024
286aef0
Rearranged structure of assets directory
dbeef Jul 2, 2024
43ba254
Added virtual filesystem generation script based on assets directory
dbeef Aug 18, 2024
f0d49aa
Changed the output format of resource-compiled formats
dbeef Aug 18, 2024
5a6fc9f
Explicitly passing 'SPELUNKY_PSP_USE_VIRTUAL_FILESYSTEM' during proje…
dbeef Aug 18, 2024
400a7c3
Introduced SPELUNKY_PSP_USE_VIRTUAL_FILESYSTEM option (defaulting to ON)
dbeef Aug 18, 2024
dbf7127
ASSETS_PATH -> SPELUNKY_PSP_ASSETS_PATH
dbeef Aug 18, 2024
690b738
Provided dual Assets module implementation (real/virtual filesystem)
dbeef Aug 18, 2024
b90bfc3
Added header files generated from resource-compiled assets
dbeef Aug 18, 2024
f29282f
Corrected tilesheets (previous ones would mistakenly contain tiles AN…
dbeef Aug 18, 2024
a792ff7
Setting CXX_STANDARD 17 and linking SDL_2_XX on imgui target (Darwin …
dbeef Aug 25, 2024
0cae815
Added OpenGL.framework to Dependencies target on Darwin
dbeef Aug 25, 2024
6e386db
Moved Imgui context creation into a dedicated file; Initializing imgu…
dbeef Aug 25, 2024
90665cc
Checking for cheat console activation on Darwin
dbeef Aug 25, 2024
158e9db
More idiomatic way of linking OpenGL framework
dbeef Aug 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 5 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
cmake_minimum_required(VERSION 3.10)
project(Spelunky_PSP)

option(WITH_DEV_TOOLS "Tools meant to be run only on host (development) system." FALSE)

include(cmake/CurrentPlatform.cmake)

option(SPELUNKY_PSP_USE_VIRTUAL_FILESYSTEM "Whether to resource-compile assets within the executable" ON)

spelunky_psp_detect_platform()
spelunky_psp_add_platform_dependencies()

if (WITH_DEV_TOOLS)
add_subdirectory(tools)
endif()

set(ASSETS_PATH ${CMAKE_CURRENT_SOURCE_DIR}/assets)
set(SPELUNKY_PSP_ASSETS_PATH ${CMAKE_CURRENT_SOURCE_DIR}/assets)

if (SPELUNKY_PSP_PLATFORM_ANDROID)
# On Android, libSpelunky_PSP.so is copied into the final .APK file and SDL2's Java activity
Expand All @@ -23,6 +19,7 @@ else()
endif ()

add_subdirectory(vendor)
add_subdirectory(src/assets)
add_subdirectory(src/entity-registry)
add_subdirectory(src/viewport)
add_subdirectory(src/video)
Expand All @@ -39,6 +36,7 @@ add_subdirectory(src/collisions)
add_subdirectory(src/patterns)

target_link_libraries(Spelunky_PSP PRIVATE
Assets
Logger
Video
Audio
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Loading