mirror of
https://github.com/ayka-667/SysDVRClient-PS4.git
synced 2026-10-29 04:00:25 +01:00
Streams a Nintendo Switch running the SysDVR sysmodule (TCP Bridge mode) to a jailbroken PS4: UDP auto-discovery, protocol 02/03 handshake, FFmpeg H.264 software decoding, swscale to the sceVideoOut framebuffer, sceAudioOut audio, DS4 settings UI. Includes a fake Switch and a native test harness. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
544 B
Bash
Executable File
15 lines
544 B
Bash
Executable File
#!/bin/sh
|
|
# clang wrapper targeting the PS4 (OpenOrbis): compiles with -c/-E/-S, otherwise links a PS4 ELF.
|
|
TC="${OO_PS4_TOOLCHAIN:-$HOME/ps4build/oo}"
|
|
link=1
|
|
for a in "$@"; do
|
|
case "$a" in -c|-E|-S|-M|-MM) link=0 ;; esac
|
|
done
|
|
CF="--target=x86_64-pc-freebsd12-elf -fPIC -funwind-tables -isysroot $TC -isystem $TC/include"
|
|
if [ "$link" = 1 ]; then
|
|
exec clang $CF -fuse-ld=lld -nostdlib -Wl,-m,elf_x86_64 -Wl,-pie -Wl,--script,"$TC/link.x" -Wl,--eh-frame-hdr \
|
|
-L"$TC/lib" "$TC/lib/crt1.o" "$@" -lc -lkernel
|
|
else
|
|
exec clang $CF "$@"
|
|
fi
|