Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
2b4a86e
feat: integrate SystemNNN Emberfall native runtime
Nov 17, 2026
8409b8b
ci: verify complete SystemNNN Android and iOS links
Nov 17, 2026
fe5765d
ci: locate Android command line SDK tools explicitly
Nov 17, 2026
3d216ed
feat: complete portable minigame frontend and harden runtime lifecycle
Nov 17, 2026
efff271
ci: enforce Android and iOS target compiler identity
Nov 17, 2026
35e3b82
test: exercise minigame completion through framebuffer and public input
Nov 17, 2026
dc70823
ci: install iOS whole-archive probe as raw executable
Nov 17, 2026
88f015e
ci: retain compiled mobile dependencies when adapter configure fails
Nov 17, 2026
1235c48
ci: chainload the Android NDK for actual target compilation
Nov 17, 2026
57e023f
docs: preserve Emberfall attribution and avoid publishing mobile prob…
Nov 17, 2026
cf406eb
ci: hold SystemNNN integration product uploads pending licensing review
Nov 17, 2026
f1dbb18
fix: match GNU iconv headers and archives for iOS runtime
Nov 17, 2026
de4a1f2
fix: preserve native dialogue timing and verify complete production i…
Nov 17, 2026
50d430e
docs: distinguish validated runtime execution from release acceptance
Nov 17, 2026
81c0962
ci: retain Windows port cache and preserve standard ZLIB discovery
Nov 17, 2026
1fd376c
test: deliver reproducible graphical and target validation contracts
Nov 17, 2026
84f9cc7
docs: clarify source delivery and native snapshot trust boundaries
Nov 17, 2026
64f08ed
ci: track selector changes in source contracts
Nov 17, 2026
4e96216
docs: finish native WebView and legacy build reading
Nov 17, 2026
7e74319
docs: qualify Paint rewards and sanitizer timeout evidence
Nov 17, 2026
7b5b484
docs: record complete platform export script reading
Nov 17, 2026
428fc23
docs: complete ONS embedded runtime source reading
Nov 17, 2026
18ef50a
docs: qualify validation snapshots and Windows Unicode failure
Nov 17, 2026
205661c
docs: record Windows Unicode failure after successful native link
Nov 17, 2026
b634edb
fix: preserve Windows Unicode paths through Emberfall asset IO
Nov 17, 2026
b72bdca
test: retain Windows fixtures while process logger remains open
Nov 17, 2026
761f0ef
docs: deliver verified SystemNNN desktop and mobile integration
Nov 17, 2026
2b254c6
Merge remote-tracking branch 'origin/main' into feat/systemnnn-emberfall
Nov 19, 2026
47c3f76
ci: integrate SystemNNN into the standard product builds
Nov 19, 2026
34bbe61
fix(tests): link Linux KiriKiri plugin archives once
Nov 19, 2026
6c38dd2
fix(tests): load plugin registrations before Linux archive scans
Nov 19, 2026
6281365
fix(ios): free build disk space before packaging
Nov 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/scripts/initialize-private-runtime-submodules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ git submodule update --init --recursive --depth 1 \
packages/AetherKrkr \
packages/AetherMAGES \
packages/AetherN2System \
packages/SystemNNN-Emberfall \
packages/AetherMinori \
packages/cmvs-rs \
packages/EntisGLS-SDL3 \
Expand Down
46 changes: 38 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ env:
# Only main publishes shared caches. Branches, PRs and release tags restore
# main's snapshots without uploading copies scoped to their own ref.
AETHERKIRI_VCPKG_CACHE_WRITE: ${{ github.ref == 'refs/heads/main' && github.actor != 'dependabot[bot]' }}
# Release artifacts exclude Emberfall pending redistribution clearance.
AETHERKIRI_ENABLE_SYSTEMNNN: 'OFF'
AETHERKIRI_RELEASE_VERSION: ${{ inputs.release_version || '' }}
AETHERKIRI_BUILD_NUMBER: ${{ inputs.release_build_number || github.run_number }}
AETHERKIRI_BUILD_ATTEMPT: ${{ github.run_attempt }}
Expand Down Expand Up @@ -164,6 +166,7 @@ jobs:
git submodule update --init --depth 1 packages/AetherKrkr
git submodule update --init --depth 1 packages/AetherMAGES
git submodule update --init --recursive --depth 1 packages/AetherN2System
git submodule update --init --recursive --depth 1 packages/SystemNNN-Emberfall
git submodule update --init --depth 1 packages/ruffle
git submodule update --init --recursive --depth 1 packages/xsystem4 packages/xsystem35 packages/system3

Expand Down Expand Up @@ -347,7 +350,7 @@ jobs:
- name: Prepare Android native dependencies
run: |
./build.sh android release --configure-only --jobs=4
./build.sh android debug --configure-only --jobs=4
AETHERKIRI_ENABLE_SYSTEMNNN=${{ github.event_name == 'pull_request' && 'ON' || 'OFF' }} ./build.sh android debug --configure-only --jobs=4

- name: Save Android dependency downloads
if: success() && env.AETHERKIRI_VCPKG_CACHE_WRITE == 'true' && steps.restore-android-vcpkg-downloads.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -421,6 +424,7 @@ jobs:
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
export NDK_CCACHE=ccache
./build.sh android release --jobs=4
grep -Fx 'AETHERKIRI_ENABLE_SYSTEMNNN:BOOL=OFF' out/android/arm64-v8a/release/CMakeCache.txt
if [[ "$AETHERKIRI_WITH_INTERNAL" == "true" ]]; then
grep -Fx 'AETHERKIRI_ENABLE_SOFTPAL_RUNTIME:BOOL=ON' \
out/android/arm64-v8a/release/CMakeCache.txt
Expand All @@ -429,13 +433,16 @@ jobs:
fi

- name: Build Android Debug
env:
AETHERKIRI_ENABLE_SYSTEMNNN: ${{ github.event_name == 'pull_request' && 'ON' || 'OFF' }}
run: |
set -euo pipefail
chmod +x ./build.sh
export CMAKE_C_COMPILER_LAUNCHER=ccache
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
export NDK_CCACHE=ccache
./build.sh android debug --jobs=4
grep -Fx "AETHERKIRI_ENABLE_SYSTEMNNN:BOOL=$AETHERKIRI_ENABLE_SYSTEMNNN" out/android/arm64-v8a/debug/CMakeCache.txt

- name: Verify exported APKs
run: |
Expand Down Expand Up @@ -563,6 +570,7 @@ jobs:
git submodule update --init --depth 1 packages/AetherKrkr
git submodule update --init --depth 1 packages/AetherMAGES
git submodule update --init --recursive --depth 1 packages/AetherN2System
git submodule update --init --recursive --depth 1 packages/SystemNNN-Emberfall
git submodule update --init --depth 1 packages/rfvp
git submodule update --init --depth 1 packages/ruffle
git submodule update --init --recursive --depth 1 packages/xsystem4 packages/xsystem35 packages/system3
Expand Down Expand Up @@ -622,22 +630,24 @@ jobs:
- name: Install Godot export tools
run: |
set -euo pipefail
mkdir -p .godot "${RUNNER_TEMP}/godot-templates"
mkdir -p .godot
curl --fail --location --retry 5 --retry-delay 5 --retry-all-errors \
-o "${RUNNER_TEMP}/godot-macos.zip" \
"https://github.com/godotengine/godot-builds/releases/download/${GODOT_RELEASE}/Godot_v${GODOT_RELEASE}_macos.universal.zip"
unzip -tq "${RUNNER_TEMP}/godot-macos.zip"
unzip -q "${RUNNER_TEMP}/godot-macos.zip" -d .godot
chmod +x ".godot/Godot.app/Contents/MacOS/Godot"
rm -f -- "${RUNNER_TEMP:?}/godot-macos.zip"

curl --fail --location --retry 5 --retry-delay 5 --retry-all-errors \
-o "${RUNNER_TEMP}/godot-export-templates.tpz" \
"https://github.com/godotengine/godot-builds/releases/download/${GODOT_RELEASE}/Godot_v${GODOT_RELEASE}_export_templates.tpz"
unzip -tq "${RUNNER_TEMP}/godot-export-templates.tpz"
unzip -q "${RUNNER_TEMP}/godot-export-templates.tpz" -d "${RUNNER_TEMP}/godot-templates"
template_dir="${HOME}/Library/Application Support/Godot/export_templates/${GODOT_TEMPLATE_VERSION}"
mkdir -p "${template_dir}"
cp -a "${RUNNER_TEMP}/godot-templates/templates/." "${template_dir}/"
# The Godot iOS exporter reads only ios.zip from this bundle.
unzip -oqj "${RUNNER_TEMP}/godot-export-templates.tpz" templates/ios.zip -d "${template_dir}"
test -s "${template_dir}/ios.zip"
rm -f -- "${RUNNER_TEMP:?}/godot-export-templates.tpz"

echo "GODOT_BIN=${GITHUB_WORKSPACE}/.godot/Godot.app/Contents/MacOS/Godot" >> "$GITHUB_ENV"
echo "GODOT_EXPORT_TEMPLATE=${template_dir}/ios.zip" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -679,6 +689,7 @@ jobs:
export CMAKE_C_COMPILER_LAUNCHER=ccache
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
./build.sh ios release --jobs=4 --package-ipa 2>&1 | tee "${RUNNER_TEMP}/ios-release-build.log"
grep -Fx 'AETHERKIRI_ENABLE_SYSTEMNNN:BOOL=OFF' out/ios/release/CMakeCache.txt
grep -Fx 'AETHERKIRI_ENABLE_RFVP:BOOL=ON' out/ios/release/CMakeCache.txt
test -s out/ios/release/bridge/rfvp_runtime/libaether_rfvp_runtime.a
if [[ "$AETHERKIRI_WITH_INTERNAL" == "true" ]]; then
Expand Down Expand Up @@ -761,12 +772,15 @@ jobs:
python3 .github/scripts/clean-apple-build-intermediates.py ios-release

- name: Build iOS Debug
env:
AETHERKIRI_ENABLE_SYSTEMNNN: ${{ github.event_name == 'pull_request' && 'ON' || 'OFF' }}
run: |
set -euo pipefail
chmod +x ./build.sh
export CMAKE_C_COMPILER_LAUNCHER=ccache
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
./build.sh ios debug --jobs=4 --package-ipa 2>&1 | tee "${RUNNER_TEMP}/ios-debug-build.log"
grep -Fx "AETHERKIRI_ENABLE_SYSTEMNNN:BOOL=$AETHERKIRI_ENABLE_SYSTEMNNN" out/ios/debug/CMakeCache.txt
grep -Fx 'AETHERKIRI_ENABLE_RFVP:BOOL=ON' out/ios/debug/CMakeCache.txt
test -s out/ios/debug/bridge/rfvp_runtime/libaether_rfvp_runtime.a
if grep -E "SCRIPT ERROR|Failed to load script|Can't open GDExtension|Can't open dynamic library" "${RUNNER_TEMP}/ios-debug-build.log"; then
Expand Down Expand Up @@ -929,6 +943,7 @@ jobs:
git submodule update --init --depth 1 packages/AetherKrkr
git submodule update --init --depth 1 packages/AetherMAGES
git submodule update --init --recursive --depth 1 packages/AetherN2System
git submodule update --init --recursive --depth 1 packages/SystemNNN-Emberfall
git submodule update --init --depth 1 packages/rfvp
git submodule update --init --depth 1 packages/ruffle
git submodule update --init --recursive --depth 1 packages/xsystem4 packages/xsystem35 packages/system3
Expand Down Expand Up @@ -1053,6 +1068,7 @@ jobs:
export CMAKE_C_COMPILER_LAUNCHER=ccache
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
./build.sh macos release --jobs=4
grep -Fx 'AETHERKIRI_ENABLE_SYSTEMNNN:BOOL=OFF' out/macos/release/CMakeCache.txt
grep -Fx 'AETHERKIRI_ENABLE_RFVP:BOOL=ON' out/macos/release/CMakeCache.txt
test -s out/macos/release/bridge/rfvp_runtime/libaether_rfvp_runtime.a
if [[ "$AETHERKIRI_WITH_INTERNAL" == "true" ]]; then
Expand All @@ -1075,12 +1091,15 @@ jobs:
python3 .github/scripts/clean-apple-build-intermediates.py macos-release

- name: Build macOS Debug
env:
AETHERKIRI_ENABLE_SYSTEMNNN: ${{ github.event_name == 'pull_request' && 'ON' || 'OFF' }}
run: |
set -euo pipefail
chmod +x ./build.sh
export CMAKE_C_COMPILER_LAUNCHER=ccache
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
./build.sh macos debug --jobs=4
grep -Fx "AETHERKIRI_ENABLE_SYSTEMNNN:BOOL=$AETHERKIRI_ENABLE_SYSTEMNNN" out/macos/debug/CMakeCache.txt
grep -Fx 'AETHERKIRI_ENABLE_RFVP:BOOL=ON' out/macos/debug/CMakeCache.txt
test -s out/macos/debug/bridge/rfvp_runtime/libaether_rfvp_runtime.a

Expand Down Expand Up @@ -1112,6 +1131,7 @@ jobs:

- name: Run complete public and integrated private unit tests
env:
AETHERKIRI_ENABLE_SYSTEMNNN: ${{ github.event_name == 'pull_request' && 'ON' || 'OFF' }}
# Exercise playback/completion without depending on the runner's
# CoreAudio output device to advance the audio clock.
ALSOFT_DRIVERS: 'null'
Expand All @@ -1127,6 +1147,7 @@ jobs:
-D BUILD_TOOLS=ON \
-D BUILD_ENGINE_API=OFF \
-D BUILD_GODOT_EXTENSION=OFF \
-D AETHERKIRI_ENABLE_SYSTEMNNN="$AETHERKIRI_ENABLE_SYSTEMNNN" \
-D AETHERKIRI_BUILD_ENTISGLS_TESTS=ON \
-D AETHERKIRI_BUILD_SYSTEMC_TESTS=ON \
-D AETHERKIRI_BUILD_ESCUDE_TESTS=ON \
Expand Down Expand Up @@ -1174,6 +1195,9 @@ jobs:
--require-executable bgi-runtime-provider
)
fi
if [[ "$AETHERKIRI_ENABLE_SYSTEMNNN" == "ON" ]]; then
required_suites+=(--require-executable systemnnn-provider-contract)
fi
python3 tools/check_ctest_inventory.py "$inventory_file" "${required_suites[@]}"
ctest \
--test-dir "$test_build_dir" \
Expand Down Expand Up @@ -1352,6 +1376,7 @@ jobs:
git submodule update --init --depth 1 packages/AetherKrkr
git submodule update --init --depth 1 packages/AetherMAGES
git submodule update --init --recursive --depth 1 packages/AetherN2System
git submodule update --init --recursive --depth 1 packages/SystemNNN-Emberfall
git submodule update --init --depth 1 packages/ruffle
git submodule update --init --recursive --depth 1 packages/xsystem4 packages/xsystem35 packages/system3

Expand Down Expand Up @@ -1452,6 +1477,7 @@ jobs:
- name: Build Linux Release
run: |
./build.sh linux release --jobs=2
grep -Fx 'AETHERKIRI_ENABLE_SYSTEMNNN:BOOL=OFF' out/linux/release/CMakeCache.txt
if [[ "$AETHERKIRI_WITH_INTERNAL" == "true" ]]; then
grep -Fx 'AETHERKIRI_ENABLE_SOFTPAL_RUNTIME:BOOL=ON' \
out/linux/release/CMakeCache.txt
Expand All @@ -1460,7 +1486,11 @@ jobs:
fi

- name: Build Linux Debug
run: ./build.sh linux debug --jobs=2
env:
AETHERKIRI_ENABLE_SYSTEMNNN: ${{ github.event_name == 'pull_request' && 'ON' || 'OFF' }}
run: |
./build.sh linux debug --jobs=2
grep -Fx "AETHERKIRI_ENABLE_SYSTEMNNN:BOOL=$AETHERKIRI_ENABLE_SYSTEMNNN" out/linux/debug/CMakeCache.txt

- name: Run Linux access policy tests
env:
Expand Down Expand Up @@ -1502,7 +1532,7 @@ jobs:
env:
LD_LIBRARY_PATH: ${{ github.workspace }}/apps/godot_app/bin/linux/debug
run: |
for test in game_metadata game_launch_entry; do
for test in game_metadata game_launch_entry game_input_mapping; do
timeout 60 "$GODOT_BIN" --headless --path apps/godot_app \
--script "res://scripts/${test}_test.gd" \
2>&1 | tee "$RUNNER_TEMP/${test}.log"
Expand All @@ -1518,7 +1548,7 @@ jobs:
run: |
python3 -m unittest discover -s tests/python -p test_renpy_host.py
python3 -m unittest discover -s tests/python -p test_runtime_submodule_initialization.py -v
for test in android_tree_uri video_library_folders video_library_ui video_import_permissions flash_library tyrano_library tyrano_asar renpy_library xsystem4_library xsystem35_library system3_library rfvp_import; do
for test in android_tree_uri video_library_folders video_library_ui video_import_permissions flash_library tyrano_library tyrano_asar renpy_library xsystem4_library xsystem35_library system3_library systemnnn_library runtime_player_reopen rfvp_import; do
timeout 60 "$GODOT_BIN" --headless --path apps/godot_app \
--script "res://tests/${test}_test.gd" \
2>&1 | tee "$RUNNER_TEMP/${test}.log"
Expand Down
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,7 @@
path = packages/AetherN2System
url = https://github.com/AetherKiri/AetherN2System.git
branch = aether
[submodule "packages/SystemNNN-Emberfall"]
path = packages/SystemNNN-Emberfall
url = https://github.com/AetherKiri/SystemNNN-Emberfall.git
branch = feat/aether-integration
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ set(AETHERKIRI_MINORI_DIR
set(AETHERKIRI_ENTISGLS_DIR
"${CMAKE_CURRENT_SOURCE_DIR}/packages/EntisGLS-SDL3"
CACHE PATH "path to the EntisGLS-SDL3 aether branch checkout")
set(AETHERKIRI_SYSTEMNNN_DIR
"${CMAKE_CURRENT_SOURCE_DIR}/packages/SystemNNN-Emberfall"
CACHE PATH "path to a SystemNNN-Emberfall runtime checkout")
set(AETHERKIRI_N2SYSTEM_DIR
"${CMAKE_CURRENT_SOURCE_DIR}/packages/AetherN2System"
CACHE PATH "path to an AetherN2System runtime checkout")
Expand Down Expand Up @@ -408,6 +411,9 @@ if(AETHERKIRI_ENABLE_ENTISGLS AND (BUILD_GODOT_EXTENSION OR ENABLE_TESTS) AND
option(AETHERKIRI_BUILD_ENTISGLS_TESTS "Build asset-free EntisGLS regression tests" ${ENABLE_TESTS})
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/bridge/entisgls_runtime)
endif()
if(AETHERKIRI_ENABLE_SYSTEMNNN AND (BUILD_GODOT_EXTENSION OR ENABLE_TESTS))
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/bridge/systemnnn_runtime)
endif()
if(AETHERKIRI_ENABLE_N2SYSTEM AND (BUILD_GODOT_EXTENSION OR ENABLE_TESTS))
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/bridge/n2system_runtime)
endif()
Expand Down
15 changes: 15 additions & 0 deletions THIRD_PARTY_LICENSES.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,21 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

----------------------------------------------------------------------------
SystemNNN / Emberfall
----------------------------------------------------------------------------
Upstream: https://github.com/PorisRora/SystemNNN-Emberfall
Integration fork: https://github.com/AetherKiri/SystemNNN-Emberfall
Copyright © 2026 PorisRora.

Emberfall-owned code is declared GPL-2.0-only in the upstream README and
THIRD_PARTY_NOTICES.md. Its original license and dependency notices remain in
packages/SystemNNN-Emberfall/LICENSE and THIRD_PARTY_NOTICES.md. This attribution
does not relicense Emberfall or grant permission to combine it with GPL-3.0
components. The incompatible license declarations and product FFmpeg Bink 2
feature require resolution before distributing combined binaries, including
public CI artifacts. See doc/systemnnn_runtime.md for the build configuration.

----------------------------------------------------------------------------
AetherN2System / NitroSharp
----------------------------------------------------------------------------
Expand Down
6 changes: 4 additions & 2 deletions abi/src/engine_api_dispatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1381,7 +1381,8 @@ engine_result_t engine_tick(engine_handle_t public_handle, uint32_t delta_ms) {
}

engine_result_t engine_pause(engine_handle_t public_handle) {
return Route(public_handle, "pause", LegacyServices()->pause,
return Route(public_handle, "pause",
[](engine_handle_t legacy) { return LegacyServices()->pause(legacy); },
[](DispatchHandle* handle) {
handle->provider_resume_pending = false;
return PROVIDER_HAS(handle->provider, pause)
Expand All @@ -1391,7 +1392,8 @@ engine_result_t engine_pause(engine_handle_t public_handle) {
}

engine_result_t engine_resume(engine_handle_t public_handle) {
return Route(public_handle, "resume", LegacyServices()->resume,
return Route(public_handle, "resume",
[](engine_handle_t legacy) { return LegacyServices()->resume(legacy); },
[](DispatchHandle* handle) {
if (!PROVIDER_HAS(handle->provider, resume)) {
return ENGINE_RESULT_NOT_SUPPORTED;
Expand Down
2 changes: 1 addition & 1 deletion apps/godot_app/scripts/game_input_mapping.gd
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ static func input_surface_size(
content_size: Vector2,
requested_surface: Vector2
) -> Vector2:
if runtime_kind in ["cmvs", "advhd", "entisgls", "minori", "n2system", "onscripter", "rfvp", "siglus", "softpal", "xsystem4", "xsystem35", "system3", "systemc", "wa2", "yuris"]:
if runtime_kind in ["cmvs", "advhd", "entisgls", "minori", "n2system", "systemnnn", "onscripter", "rfvp", "siglus", "softpal", "xsystem4", "xsystem35", "system3", "systemc", "wa2", "yuris"]:
return content_size
if requested_surface.x > 0.0 and requested_surface.y > 0.0:
return requested_surface
Expand Down
2 changes: 1 addition & 1 deletion apps/godot_app/scripts/game_input_mapping_test.gd
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func _initialize() -> void:
# rather than the presentation surface. Using the shell surface moves
# clicks out of the logical frame and makes controls appear unresponsive.
var native_frame := Vector2(1024, 640)
for runtime_kind in ["cmvs", "advhd", "entisgls", "minori", "n2system", "onscripter", "rfvp", "siglus", "softpal", "systemc", "wa2", "yuris"]:
for runtime_kind in ["cmvs", "advhd", "entisgls", "minori", "n2system", "systemnnn", "onscripter", "rfvp", "siglus", "softpal", "systemc", "wa2", "yuris"]:
var input_surface := GameInputMapping.input_surface_size(
runtime_kind, native_frame, requested_surface
)
Expand Down
1 change: 1 addition & 0 deletions apps/godot_app/scripts/game_launch_entry.gd
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const DIRECTORY_RUNTIME_KINDS := [
"catsystem2",
"mages",
"n2system",
"systemnnn",
"minori",
"cmvs",
"onscripter",
Expand Down
5 changes: 5 additions & 0 deletions apps/godot_app/scripts/game_launch_entry_test.gd
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ func _init() -> void:
root,
"EntisGLS provider receives the archive root"
)
_expect_equal(
GameLaunchEntry.resolve_for_runtime({"path": root, GameLaunchEntry.FIELD: "game.exe"}, "systemnnn"),
root,
"SystemNNN provider receives the game directory"
)
_expect_equal(
GameLaunchEntry.resolve_for_runtime({"path": root, GameLaunchEntry.FIELD: "AdvHD.exe"}, "advhd"),
root,
Expand Down
15 changes: 15 additions & 0 deletions apps/godot_app/scripts/game_metadata.gd
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const RUNTIME_TYRANO := "tyranoscript"
const RUNTIME_RENPY := "renpy"
const RUNTIME_MAGES := "mages"
const RUNTIME_N2SYSTEM := "n2system"
const RUNTIME_SYSTEMNNN := "systemnnn"
const RUNTIME_XSYSTEM4 := "xsystem4"
const RUNTIME_XSYSTEM35 := "xsystem35"
const RUNTIME_SYSTEM3 := "system3"
Expand Down Expand Up @@ -63,6 +64,9 @@ static func inspect(path: String) -> Dictionary:
var title_match := pattern.search(options)
if title_match != null:
candidates.append(title_match.get_string(1))
elif is_systemnnn_directory(root):
result.engine = RUNTIME_SYSTEMNNN
result.signals.append("systemnnn-spt-sys")
elif is_n2system_directory(root):
result.engine = RUNTIME_N2SYSTEM
result.signals.append("n2system-profile-or-npa")
Expand Down Expand Up @@ -387,6 +391,17 @@ static func _is_mages_package(files: PackedStringArray) -> bool:
or files.has("model.mpk")
)

static func is_systemnnn_directory(root: String) -> bool:
# Require the exact boot-script path; arbitrary SPT files are insufficient.
# Preserve original case when opening files on case-sensitive platforms.
var directory := DirAccess.open(root)
if directory == null:
return false
for name in directory.get_directories():
if name.to_lower() == "spt" and _file_names(root.path_join(name)).has("sys.spt"):
return true
return false

static func is_n2system_directory(root: String) -> bool:
# An explicit Aether profile opts this directory into NitroSharp. Generic
# profiles.json files need engine-specific fields; NPA extensions alone
Expand Down
Loading
Loading