Add core functionality for loading and processing game assets
- Implemented palette loading from binary files in `palette.cpp`.
- Added runtime utilities for reading text and JSON files in `runtime.cpp`.
- Created shape archive handling in `shape_archive.cpp`, including frame parsing and pixel decoding.
- Introduced type flag loading functionality in `type_flags.cpp`.
- Developed tests for combat tactics, entity dispatch entries, file system operations, fixed maps, flex archives, glob archives, map rendering, palette loading, shape archives, and type flags.
- Added a Python script for importing Ghidra-exported function slices with reporting capabilities.
2026-04-27 21:15:01 +02:00
|
|
|
cmake_minimum_required(VERSION 3.20)
|
|
|
|
|
|
|
|
|
|
project(remorse_rebuild LANGUAGES CXX)
|
|
|
|
|
|
|
|
|
|
add_library(remorse_core
|
2026-09-25 21:41:20 +02:00
|
|
|
src/animation_archive.cpp
|
Add core functionality for loading and processing game assets
- Implemented palette loading from binary files in `palette.cpp`.
- Added runtime utilities for reading text and JSON files in `runtime.cpp`.
- Created shape archive handling in `shape_archive.cpp`, including frame parsing and pixel decoding.
- Introduced type flag loading functionality in `type_flags.cpp`.
- Developed tests for combat tactics, entity dispatch entries, file system operations, fixed maps, flex archives, glob archives, map rendering, palette loading, shape archives, and type flags.
- Added a Python script for importing Ghidra-exported function slices with reporting capabilities.
2026-04-27 21:15:01 +02:00
|
|
|
src/combat_tactics.cpp
|
2026-09-25 21:41:20 +02:00
|
|
|
src/collision.cpp
|
Add core functionality for loading and processing game assets
- Implemented palette loading from binary files in `palette.cpp`.
- Added runtime utilities for reading text and JSON files in `runtime.cpp`.
- Created shape archive handling in `shape_archive.cpp`, including frame parsing and pixel decoding.
- Introduced type flag loading functionality in `type_flags.cpp`.
- Developed tests for combat tactics, entity dispatch entries, file system operations, fixed maps, flex archives, glob archives, map rendering, palette loading, shape archives, and type flags.
- Added a Python script for importing Ghidra-exported function slices with reporting capabilities.
2026-04-27 21:15:01 +02:00
|
|
|
src/entity_dispatch_entry.cpp
|
|
|
|
|
src/file_system.cpp
|
|
|
|
|
src/flex_archive.cpp
|
|
|
|
|
src/fixed_map.cpp
|
|
|
|
|
src/glob_archive.cpp
|
|
|
|
|
src/map_renderer.cpp
|
2026-09-25 21:41:20 +02:00
|
|
|
src/map_sorter.cpp
|
Add core functionality for loading and processing game assets
- Implemented palette loading from binary files in `palette.cpp`.
- Added runtime utilities for reading text and JSON files in `runtime.cpp`.
- Created shape archive handling in `shape_archive.cpp`, including frame parsing and pixel decoding.
- Introduced type flag loading functionality in `type_flags.cpp`.
- Developed tests for combat tactics, entity dispatch entries, file system operations, fixed maps, flex archives, glob archives, map rendering, palette loading, shape archives, and type flags.
- Added a Python script for importing Ghidra-exported function slices with reporting capabilities.
2026-04-27 21:15:01 +02:00
|
|
|
src/palette.cpp
|
|
|
|
|
src/runtime.cpp
|
|
|
|
|
src/shape_archive.cpp
|
|
|
|
|
src/type_flags.cpp
|
Add comprehensive tests for entity dispatch, file system, fixed map, flex archive, isometric controls, and crash setup
- Enhance `entity_dispatch_entry_tests.cpp` with additional assertions for event type checks, group ID increments, and error handling.
- Refactor `file_system_tests.cpp` to streamline probe execution and enhance output validation.
- Extend `fixed_map_tests.cpp` to cover retail map loading, item classification, and process creation scenarios.
- Introduce new checks in `flex_archive_tests.cpp` for usecode loading and event handling, ensuring robust validation of game data.
- Add tests in `isometric_controls_tests.cpp` for controller direction mapping based on scan codes.
- Implement `test_crash_setup.cpp` to initialize crash diagnostics for improved error handling during tests.
2026-09-26 15:36:11 +02:00
|
|
|
src/usecode_archive.cpp
|
2026-09-27 11:48:14 +02:00
|
|
|
src/usecode_vm.cpp
|
Add core functionality for loading and processing game assets
- Implemented palette loading from binary files in `palette.cpp`.
- Added runtime utilities for reading text and JSON files in `runtime.cpp`.
- Created shape archive handling in `shape_archive.cpp`, including frame parsing and pixel decoding.
- Introduced type flag loading functionality in `type_flags.cpp`.
- Developed tests for combat tactics, entity dispatch entries, file system operations, fixed maps, flex archives, glob archives, map rendering, palette loading, shape archives, and type flags.
- Added a Python script for importing Ghidra-exported function slices with reporting capabilities.
2026-04-27 21:15:01 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_compile_features(remorse_core PUBLIC cxx_std_17)
|
|
|
|
|
target_include_directories(remorse_core PUBLIC include)
|
|
|
|
|
|
|
|
|
|
add_executable(remorse_rebuild
|
|
|
|
|
src/main.cpp
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(remorse_rebuild PRIVATE remorse_core)
|
|
|
|
|
|
|
|
|
|
add_executable(remorse_map_preview
|
|
|
|
|
src/map_preview_main.cpp
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(remorse_map_preview PRIVATE remorse_core)
|
|
|
|
|
|
2026-09-25 21:41:20 +02:00
|
|
|
if(WIN32)
|
|
|
|
|
add_executable(remorse_game WIN32
|
|
|
|
|
src/windowed_game_main.cpp
|
|
|
|
|
)
|
|
|
|
|
target_link_libraries(remorse_game PRIVATE remorse_core user32 gdi32)
|
|
|
|
|
endif()
|
|
|
|
|
|
Add core functionality for loading and processing game assets
- Implemented palette loading from binary files in `palette.cpp`.
- Added runtime utilities for reading text and JSON files in `runtime.cpp`.
- Created shape archive handling in `shape_archive.cpp`, including frame parsing and pixel decoding.
- Introduced type flag loading functionality in `type_flags.cpp`.
- Developed tests for combat tactics, entity dispatch entries, file system operations, fixed maps, flex archives, glob archives, map rendering, palette loading, shape archives, and type flags.
- Added a Python script for importing Ghidra-exported function slices with reporting capabilities.
2026-04-27 21:15:01 +02:00
|
|
|
enable_testing()
|
|
|
|
|
|
|
|
|
|
add_executable(entity_dispatch_entry_tests
|
|
|
|
|
tests/entity_dispatch_entry_tests.cpp
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(entity_dispatch_entry_tests PRIVATE remorse_core)
|
|
|
|
|
|
|
|
|
|
add_test(NAME entity_dispatch_entry_tests COMMAND entity_dispatch_entry_tests)
|
|
|
|
|
|
|
|
|
|
add_executable(file_system_tests
|
|
|
|
|
tests/file_system_tests.cpp
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(file_system_tests PRIVATE remorse_core)
|
|
|
|
|
|
|
|
|
|
add_test(NAME file_system_tests COMMAND file_system_tests)
|
|
|
|
|
|
|
|
|
|
add_executable(palette_tests
|
|
|
|
|
tests/palette_tests.cpp
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(palette_tests PRIVATE remorse_core)
|
|
|
|
|
|
|
|
|
|
add_test(NAME palette_tests COMMAND palette_tests)
|
|
|
|
|
|
|
|
|
|
add_executable(flex_archive_tests
|
|
|
|
|
tests/flex_archive_tests.cpp
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(flex_archive_tests PRIVATE remorse_core)
|
|
|
|
|
|
|
|
|
|
add_test(NAME flex_archive_tests COMMAND flex_archive_tests)
|
|
|
|
|
|
|
|
|
|
add_executable(fixed_map_tests
|
|
|
|
|
tests/fixed_map_tests.cpp
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(fixed_map_tests PRIVATE remorse_core)
|
|
|
|
|
|
|
|
|
|
add_test(NAME fixed_map_tests COMMAND fixed_map_tests)
|
|
|
|
|
|
|
|
|
|
add_executable(glob_archive_tests
|
|
|
|
|
tests/glob_archive_tests.cpp
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(glob_archive_tests PRIVATE remorse_core)
|
|
|
|
|
|
|
|
|
|
add_test(NAME glob_archive_tests COMMAND glob_archive_tests)
|
|
|
|
|
|
|
|
|
|
add_executable(type_flags_tests
|
|
|
|
|
tests/type_flags_tests.cpp
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(type_flags_tests PRIVATE remorse_core)
|
|
|
|
|
|
|
|
|
|
add_test(NAME type_flags_tests COMMAND type_flags_tests)
|
|
|
|
|
|
|
|
|
|
add_executable(shape_archive_tests
|
|
|
|
|
tests/shape_archive_tests.cpp
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(shape_archive_tests PRIVATE remorse_core)
|
|
|
|
|
|
|
|
|
|
add_test(NAME shape_archive_tests COMMAND shape_archive_tests)
|
|
|
|
|
|
|
|
|
|
add_executable(map_renderer_tests
|
|
|
|
|
tests/map_renderer_tests.cpp
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(map_renderer_tests PRIVATE remorse_core)
|
|
|
|
|
|
|
|
|
|
add_test(NAME map_renderer_tests COMMAND map_renderer_tests)
|
|
|
|
|
|
2026-09-25 21:41:20 +02:00
|
|
|
add_executable(map_sorter_tests
|
|
|
|
|
tests/map_sorter_tests.cpp
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(map_sorter_tests PRIVATE remorse_core)
|
|
|
|
|
|
|
|
|
|
add_test(NAME map_sorter_tests COMMAND map_sorter_tests)
|
|
|
|
|
|
|
|
|
|
add_executable(isometric_controls_tests
|
|
|
|
|
tests/isometric_controls_tests.cpp
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(isometric_controls_tests PRIVATE remorse_core)
|
|
|
|
|
|
|
|
|
|
add_test(NAME isometric_controls_tests COMMAND isometric_controls_tests)
|
|
|
|
|
|
|
|
|
|
add_executable(animation_archive_tests
|
|
|
|
|
tests/animation_archive_tests.cpp
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(animation_archive_tests PRIVATE remorse_core)
|
|
|
|
|
|
|
|
|
|
add_test(NAME animation_archive_tests COMMAND animation_archive_tests)
|
|
|
|
|
|
|
|
|
|
add_executable(collision_tests
|
|
|
|
|
tests/collision_tests.cpp
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(collision_tests PRIVATE remorse_core)
|
|
|
|
|
|
|
|
|
|
add_test(NAME collision_tests COMMAND collision_tests)
|
|
|
|
|
|
Add core functionality for loading and processing game assets
- Implemented palette loading from binary files in `palette.cpp`.
- Added runtime utilities for reading text and JSON files in `runtime.cpp`.
- Created shape archive handling in `shape_archive.cpp`, including frame parsing and pixel decoding.
- Introduced type flag loading functionality in `type_flags.cpp`.
- Developed tests for combat tactics, entity dispatch entries, file system operations, fixed maps, flex archives, glob archives, map rendering, palette loading, shape archives, and type flags.
- Added a Python script for importing Ghidra-exported function slices with reporting capabilities.
2026-04-27 21:15:01 +02:00
|
|
|
add_executable(combat_tactics_tests
|
|
|
|
|
tests/combat_tactics_tests.cpp
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(combat_tactics_tests PRIVATE remorse_core)
|
|
|
|
|
|
|
|
|
|
add_test(NAME combat_tactics_tests COMMAND combat_tactics_tests)
|
|
|
|
|
|
Add comprehensive tests for entity dispatch, file system, fixed map, flex archive, isometric controls, and crash setup
- Enhance `entity_dispatch_entry_tests.cpp` with additional assertions for event type checks, group ID increments, and error handling.
- Refactor `file_system_tests.cpp` to streamline probe execution and enhance output validation.
- Extend `fixed_map_tests.cpp` to cover retail map loading, item classification, and process creation scenarios.
- Introduce new checks in `flex_archive_tests.cpp` for usecode loading and event handling, ensuring robust validation of game data.
- Add tests in `isometric_controls_tests.cpp` for controller direction mapping based on scan codes.
- Implement `test_crash_setup.cpp` to initialize crash diagnostics for improved error handling during tests.
2026-09-26 15:36:11 +02:00
|
|
|
add_library(remorse_test_crash_setup OBJECT tests/test_crash_setup.cpp)
|
|
|
|
|
target_link_libraries(remorse_test_crash_setup PRIVATE remorse_core)
|
|
|
|
|
foreach(test_target IN ITEMS
|
|
|
|
|
entity_dispatch_entry_tests file_system_tests palette_tests flex_archive_tests
|
|
|
|
|
fixed_map_tests glob_archive_tests type_flags_tests shape_archive_tests
|
|
|
|
|
map_renderer_tests map_sorter_tests isometric_controls_tests
|
|
|
|
|
animation_archive_tests collision_tests combat_tactics_tests)
|
|
|
|
|
target_sources(${test_target} PRIVATE $<TARGET_OBJECTS:remorse_test_crash_setup>)
|
|
|
|
|
endforeach()
|
|
|
|
|
|
Add core functionality for loading and processing game assets
- Implemented palette loading from binary files in `palette.cpp`.
- Added runtime utilities for reading text and JSON files in `runtime.cpp`.
- Created shape archive handling in `shape_archive.cpp`, including frame parsing and pixel decoding.
- Introduced type flag loading functionality in `type_flags.cpp`.
- Developed tests for combat tactics, entity dispatch entries, file system operations, fixed maps, flex archives, glob archives, map rendering, palette loading, shape archives, and type flags.
- Added a Python script for importing Ghidra-exported function slices with reporting capabilities.
2026-04-27 21:15:01 +02:00
|
|
|
if(MSVC)
|
|
|
|
|
target_compile_options(remorse_core PRIVATE /W4 /permissive-)
|
|
|
|
|
target_compile_options(combat_tactics_tests PRIVATE /W4 /permissive-)
|
|
|
|
|
target_compile_options(map_renderer_tests PRIVATE /W4 /permissive-)
|
2026-09-25 21:41:20 +02:00
|
|
|
target_compile_options(map_sorter_tests PRIVATE /W4 /permissive-)
|
|
|
|
|
target_compile_options(isometric_controls_tests PRIVATE /W4 /permissive-)
|
|
|
|
|
target_compile_options(animation_archive_tests PRIVATE /W4 /permissive-)
|
|
|
|
|
target_compile_options(collision_tests PRIVATE /W4 /permissive-)
|
Add core functionality for loading and processing game assets
- Implemented palette loading from binary files in `palette.cpp`.
- Added runtime utilities for reading text and JSON files in `runtime.cpp`.
- Created shape archive handling in `shape_archive.cpp`, including frame parsing and pixel decoding.
- Introduced type flag loading functionality in `type_flags.cpp`.
- Developed tests for combat tactics, entity dispatch entries, file system operations, fixed maps, flex archives, glob archives, map rendering, palette loading, shape archives, and type flags.
- Added a Python script for importing Ghidra-exported function slices with reporting capabilities.
2026-04-27 21:15:01 +02:00
|
|
|
target_compile_options(remorse_map_preview PRIVATE /W4 /permissive-)
|
2026-09-25 21:41:20 +02:00
|
|
|
if(WIN32)
|
|
|
|
|
target_compile_options(remorse_game PRIVATE /W4 /permissive-)
|
|
|
|
|
endif()
|
Add core functionality for loading and processing game assets
- Implemented palette loading from binary files in `palette.cpp`.
- Added runtime utilities for reading text and JSON files in `runtime.cpp`.
- Created shape archive handling in `shape_archive.cpp`, including frame parsing and pixel decoding.
- Introduced type flag loading functionality in `type_flags.cpp`.
- Developed tests for combat tactics, entity dispatch entries, file system operations, fixed maps, flex archives, glob archives, map rendering, palette loading, shape archives, and type flags.
- Added a Python script for importing Ghidra-exported function slices with reporting capabilities.
2026-04-27 21:15:01 +02:00
|
|
|
target_compile_options(remorse_rebuild PRIVATE /W4 /permissive-)
|
|
|
|
|
target_compile_options(entity_dispatch_entry_tests PRIVATE /W4 /permissive-)
|
|
|
|
|
target_compile_options(file_system_tests PRIVATE /W4 /permissive-)
|
|
|
|
|
target_compile_options(flex_archive_tests PRIVATE /W4 /permissive-)
|
|
|
|
|
target_compile_options(fixed_map_tests PRIVATE /W4 /permissive-)
|
|
|
|
|
target_compile_options(glob_archive_tests PRIVATE /W4 /permissive-)
|
|
|
|
|
target_compile_options(palette_tests PRIVATE /W4 /permissive-)
|
|
|
|
|
target_compile_options(shape_archive_tests PRIVATE /W4 /permissive-)
|
|
|
|
|
target_compile_options(type_flags_tests PRIVATE /W4 /permissive-)
|
|
|
|
|
else()
|
|
|
|
|
target_compile_options(remorse_core PRIVATE -Wall -Wextra -Wpedantic)
|
|
|
|
|
target_compile_options(combat_tactics_tests PRIVATE -Wall -Wextra -Wpedantic)
|
|
|
|
|
target_compile_options(map_renderer_tests PRIVATE -Wall -Wextra -Wpedantic)
|
2026-09-25 21:41:20 +02:00
|
|
|
target_compile_options(map_sorter_tests PRIVATE -Wall -Wextra -Wpedantic)
|
|
|
|
|
target_compile_options(isometric_controls_tests PRIVATE -Wall -Wextra -Wpedantic)
|
|
|
|
|
target_compile_options(animation_archive_tests PRIVATE -Wall -Wextra -Wpedantic)
|
|
|
|
|
target_compile_options(collision_tests PRIVATE -Wall -Wextra -Wpedantic)
|
Add core functionality for loading and processing game assets
- Implemented palette loading from binary files in `palette.cpp`.
- Added runtime utilities for reading text and JSON files in `runtime.cpp`.
- Created shape archive handling in `shape_archive.cpp`, including frame parsing and pixel decoding.
- Introduced type flag loading functionality in `type_flags.cpp`.
- Developed tests for combat tactics, entity dispatch entries, file system operations, fixed maps, flex archives, glob archives, map rendering, palette loading, shape archives, and type flags.
- Added a Python script for importing Ghidra-exported function slices with reporting capabilities.
2026-04-27 21:15:01 +02:00
|
|
|
target_compile_options(remorse_map_preview PRIVATE -Wall -Wextra -Wpedantic)
|
2026-09-25 21:41:20 +02:00
|
|
|
if(WIN32)
|
|
|
|
|
target_compile_options(remorse_game PRIVATE -Wall -Wextra -Wpedantic)
|
|
|
|
|
endif()
|
Add core functionality for loading and processing game assets
- Implemented palette loading from binary files in `palette.cpp`.
- Added runtime utilities for reading text and JSON files in `runtime.cpp`.
- Created shape archive handling in `shape_archive.cpp`, including frame parsing and pixel decoding.
- Introduced type flag loading functionality in `type_flags.cpp`.
- Developed tests for combat tactics, entity dispatch entries, file system operations, fixed maps, flex archives, glob archives, map rendering, palette loading, shape archives, and type flags.
- Added a Python script for importing Ghidra-exported function slices with reporting capabilities.
2026-04-27 21:15:01 +02:00
|
|
|
target_compile_options(remorse_rebuild PRIVATE -Wall -Wextra -Wpedantic)
|
|
|
|
|
target_compile_options(entity_dispatch_entry_tests PRIVATE -Wall -Wextra -Wpedantic)
|
|
|
|
|
target_compile_options(file_system_tests PRIVATE -Wall -Wextra -Wpedantic)
|
|
|
|
|
target_compile_options(flex_archive_tests PRIVATE -Wall -Wextra -Wpedantic)
|
|
|
|
|
target_compile_options(fixed_map_tests PRIVATE -Wall -Wextra -Wpedantic)
|
|
|
|
|
target_compile_options(glob_archive_tests PRIVATE -Wall -Wextra -Wpedantic)
|
|
|
|
|
target_compile_options(palette_tests PRIVATE -Wall -Wextra -Wpedantic)
|
|
|
|
|
target_compile_options(shape_archive_tests PRIVATE -Wall -Wextra -Wpedantic)
|
|
|
|
|
target_compile_options(type_flags_tests PRIVATE -Wall -Wextra -Wpedantic)
|
|
|
|
|
endif()
|