Support writable headless Xorg launch config

This commit is contained in:
Storm Dragon
2026-04-21 20:17:46 -04:00
parent b7473e99fe
commit 8aa2ac37e1
2 changed files with 48 additions and 0 deletions

View File

@@ -6,6 +6,26 @@ start_screen_reader() {
cthulhu &
}
check_architecture() {
local architecture
local supportedArch
architecture="$(uname -m)"
for supportedArch in "$@"; do
if [[ "$architecture" == "$supportedArch" ]]; then
return 0
fi
done
if [[ "$architecture" == "aarch64" && -d "${HOME}/.fex-emu/RootFS/ArchLinux" && "$*" == *"x86_64"* ]]; then
export fex="FEXLoader -- "
return 0
fi
printf 'This game is not compatible with %s.\n' "$architecture" >&2
return 1
}
fex_load() {
local gameDir="$1"
local exeName="$2"

View File

@@ -0,0 +1,28 @@
Section "Monitor"
Identifier "dummy_monitor"
HorizSync 28.0-80.0
VertRefresh 48.0-75.0
Modeline "1920x1080" 172.80 1920 2040 2248 2576 1080 1081 1084 1118
EndSection
Section "Device"
Identifier "dummy_card"
Driver "dummy"
VideoRam 256000
Option "UseFBDev" "false"
EndSection
Section "Screen"
Identifier "dummy_screen"
Device "dummy_card"
Monitor "dummy_monitor"
SubSection "Display"
Depth 24
Modes "1920x1080"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "dummy_layout"
Screen 0 "dummy_screen"
EndSection