e410d82680
The built hacked binary segfaults on Linux the moment a native GTK3 dialog (file/folder browse) opens while a GLFW/OpenGL context is live: sqweek/dialog's Linux backend never calls XInitThreads() before gtk_init(), and GLFW's own X11 backend installs a process-wide Xlib error handler that collides with GTK's. Vendor a pinned copy of github.com/sqweek/dialog (New BSD) into modding/sqweek-dialog/ so it can be patched like every other vendored source here: sqweek-dialog-patches/01-xinitthreads.patch adds the missing XInitThreads() call, and hacked-patches/01-use-patched-dialog.patch adds a go.mod replace directive pointing hacked's own sqweek/dialog dependency at that local copy. build-hacked.sh now stages both hacked/ and sqweek-dialog/ into a scratch modding/build/ directory and applies their patch series before compiling, rather than building hacked/ in place; .gitignore picks up that new scratch directory. Also expand modding/README.md: number its existing sections and add a worked "Example: Editing a message" walkthrough covering Static World Data, the Messages window's clipboard-only text editing, saving the Mod Location, and the absolute-path requirement for run.sh's mod-folder argument.
50 lines
1.3 KiB
Plaintext
50 lines
1.3 KiB
Plaintext
# Android studio project files
|
|
/android/.idea
|
|
|
|
# Game assets are not included in the repo
|
|
/res/assets/setup_system_shock_enhanced*
|
|
/res/assets/setup_system_shock_classic*
|
|
/res/assets/*.zip
|
|
/res/assets/ss_ee/
|
|
|
|
# Build output
|
|
/dist/
|
|
/dist-win/
|
|
/build/
|
|
|
|
# Engine build artifacts (engine/ is committed as a source snapshot; these
|
|
# are generated by run-image.sh / build-image/build-engine.sh /
|
|
# build-image/build-engine-win.sh - the Windows cross-build's own scratch
|
|
# copy of engine/ lives under /build/win-engine/, already covered above)
|
|
/engine/build_ext/
|
|
/engine/.build-output/
|
|
/engine/.build-output-win/
|
|
/engine/CMakeCache.txt
|
|
/engine/CMakeFiles/
|
|
/engine/cmake_install.cmake
|
|
/engine/Makefile
|
|
/engine/systemshock
|
|
/engine/src/Libraries/CMakeFiles/
|
|
|
|
# Android build artifacts (generated by build-image/build-apk.sh - see
|
|
# android/engine-patches/ for why engine/ itself is never touched)
|
|
/android/engine.properties
|
|
/android/app/src/main/assets/
|
|
/android/app/src/main/jniLibs/
|
|
/android/app/build/
|
|
/android/.gradle/
|
|
/android/app/.cxx/
|
|
/android/local.properties
|
|
|
|
# Local registry credentials (see registry.env.example)
|
|
/registry.env
|
|
|
|
# Signing keys
|
|
*.jks
|
|
*.keystore
|
|
|
|
# modding/hacked build output and scratch, patched source copies (see
|
|
# modding/README.md)
|
|
/modding/dist/
|
|
/modding/build/
|