external/: simdjson v5.1.1; the game reads JSON that an import tool makes from the player's install

Config and .anm2 data are converted from the install's XML (and packed archives) into a gitignored resources/ by a
tool in the gitignored tools/, as in smack-a-brother. The game has no XML parser.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-11-19 21:27:08 -05:00
1 parent 199c3d3d2b
commit 0b86c1071f
5 files changed
+16 -3

No files matched your search

+2
View File
@@ -18,3 +18,5 @@ __pycache__/
/.tmp/
/CLAUDE.md
/build*/
/tools/
/resources/
+4
View File
@@ -6,3 +6,7 @@
path = external/lua
url = https://github.com/lua/lua.git
shallow = true
[submodule "external/simdjson"]
path = external/simdjson
url = https://github.com/simdjson/simdjson.git
shallow = true
+6 -1
View File
@@ -30,10 +30,15 @@ add_library(lua STATIC ${LUA_SOURCES})
target_include_directories(lua SYSTEM PUBLIC external/lua)
target_compile_definitions(lua PRIVATE LUA_USE_POSIX)
# simdjson: its single-file build, static, without exceptions, for the JSON the import tool writes into resources/.
add_library(simdjson STATIC external/simdjson/singleheader/simdjson.cpp)
target_include_directories(simdjson SYSTEM PUBLIC external/simdjson/singleheader)
target_compile_definitions(simdjson PUBLIC SIMDJSON_EXCEPTIONS=0)
# The curated game: src/*.cpp, written on top of the declarations generated-src/classes.h holds for every class.
# generated-src/'s own bodies stay out until they compile (scripts/source_tree.py --check reports how many do).
file(GLOB SOURCES CONFIGURE_DEPENDS src/*.cpp)
add_library(isaac STATIC ${SOURCES})
target_include_directories(isaac PRIVATE src)
target_include_directories(isaac SYSTEM PRIVATE generated-src)
target_link_libraries(isaac PRIVATE SDL3::SDL3-static lua)
target_link_libraries(isaac PRIVATE SDL3::SDL3-static lua simdjson)
+3 -2
View File
@@ -36,8 +36,9 @@ jdk/ ghidra_12.2_PUBLIC/ Temurin 21 (system java is 8, too old) and Ghidra
The goal is a C++ source tree that builds a native 64-bit Linux game: `git submodule update --init --recursive`, then
`cmake -B build && cmake --build build`. SDL3 (window, OpenGL context, input, audio) and Lua 5.3 (mods) are submodules
in `external/`, built statically. Online features (Steam, EOS, curl) are offline stubs. The game's resources are read
from the player's own install at runtime; nothing from the game ships here.
in `external/`, built statically, with simdjson for data. Online features (Steam, EOS, curl) are offline stubs. The game
reads JSON, not XML: an import tool in `tools/` converts the player's own install (XML, packed archives) and mods into
`resources/` (both gitignored). Nothing from the game ships here.
`generated-src/` is the whole decompiled game as C++, regenerated every build and never edited. `src/` is the readable
game, written by hand on top of it one function at a time:
Vendored Submodule
+1
Submodule external/simdjson added at 40a686ab89.