Files
pokerfreak/client/relais/starten.sh
T
mmintel 5f68c71d5a Cash table selection, instant 4-grid tiling, modal suppression, and tournament relay stabilization (2026-11-10)
- Pre-filter lobby tables before bankroll selection, enforce single-table reserve floor on total bankroll, and expand cash pools via /get-cash-table-list including waitlist sub-tables
- Enforce strict stakes band for fallback picks, keep open/waitlisted/seated sub-tables alive across pool updates, and guard duplicate OS windows from blocking the target table count
- Trigger immediate 4-grid tiling with OS window fallback and align Cockpit Arrange button with the planned table count
- Reject premature layout probes on the table proxy during Unity boot and suppress Mega-Splash and Winner celebration popups in-stream without mouse clicks
- Stabilize top-up target sizing, CDP port routing, emergency stop behavior, tournament phantom filtering, and in-process tournament action relay
2026-11-10 11:09:25 +01:00

27 lines
1.3 KiB
Bash
Executable File

#!/bin/zsh
# CoinPoker MIT dem Relais starten - vollautomatisch:
# 1. Lib bauen, falls noetig (Quelle neuer als Binary).
# 2. Signatur oeffnen, falls das Spiel noch Hardened-signiert ist (nach einem Client-Update).
# 3. Client starten; DYLD_INSERT_LIBRARIES wird an die Tischprozesse vererbt.
# Die Lib legt je Tisch /tmp/<Raum>-mitte an - genau den Namen sucht hand/tischkanal schon
# (kanal_da True), also traegt der Zug-Kanal im Turnier ohne weiteren Umbau.
set -e
HIER="$(cd "$(dirname "$0")" && pwd)"
GAME="/Applications/CoinPoker.app/Contents/Resources/unity-resources-arm64/CoinPoker Game.app"
# 1. Lib bauen, wenn sie fehlt oder die Quelle neuer ist.
if [ ! -f "$HIER/relais.dylib" ] || [ "$HIER/relais.c" -nt "$HIER/relais.dylib" ]; then
"$HIER/bauen.sh"
fi
# 2. Automatisch patchen, wenn das Spiel Hardened-signiert ist (dann ignoriert dyld die Lib).
# Nach einem Client-Update ist die Original-Signatur zurueck -> hier einmal neu oeffnen.
if codesign -dv "$GAME/Contents/MacOS/CoinPoker" 2>&1 | grep -q "(runtime)"; then
echo "Spiel ist Hardened-signiert - oeffne die Signatur fuer das Relais ..."
"$HIER/signatur_oeffnen.sh"
fi
# 3. Client mit injizierter Lib starten.
export DYLD_INSERT_LIBRARIES="$HIER/relais.dylib"
exec "/Applications/CoinPoker.app/Contents/MacOS/CoinPoker" --remote-debugging-port=9333