Three source patches the modern clang/C++ frontend requires: - graphics/window.cpp: strchr on const char* now returns const char* - filemap.cpp, prefs.cpp: C++11 forbids no-space concatenation of a string literal with an adjacent macro identifier Autotools state regenerated with autoreconf -fi against current autoconf/automake so configure can be run on macOS 26 / Apple Silicon. Added run-kobodl.sh to launch the binary from the source tree (the compiled-in data paths assume a .app bundle), and a .gitignore for build artifacts. Out-of-tree dependency: SDL_image 1.2 must be built with --disable-imageio. Apple's ImageIO backend in IMG_ImageIO.m yields SDL_Surfaces with all-zero pixel data on current macOS, leaving every sprite invisible; libpng decodes correctly. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
16 lines
442 B
Bash
Executable File
16 lines
442 B
Bash
Executable File
#!/bin/sh
|
|
# Wrapper to run kobodl from the source/build tree on macOS.
|
|
# The binary's compiled-in data path assumes a .app bundle layout, so
|
|
# pass explicit paths instead.
|
|
|
|
HERE="$(cd "$(dirname "$0")" && pwd)"
|
|
SCORES="${KOBODL_SCORES:-$HOME/Library/Application Support/KoboDeluxe/scores}"
|
|
mkdir -p "$SCORES"
|
|
|
|
exec "$HERE/kobodl" \
|
|
-files "$HERE" \
|
|
-gfx "$HERE/data/gfx" \
|
|
-sfx "$HERE/data/sfx" \
|
|
-scores "$SCORES" \
|
|
"$@"
|