Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

id tech cleanup #141

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions packages/emulators/libretro/idtech-lr/scripts/generate-idtech.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@
# This scripts scans the /storage/roms/idtech folder for idtech game files
# and creates the necessary idtech launcher scripts


RA_BIN="/usr/bin/retroarch"
RA_DIR="/usr/lib/libretro"
SCRIPT_DIR="/storage/.config/idtech"
GAME_DIR="/storage/roms/idtech"

### Create directories
### create .config/idtech if does not exist
if [ ! -d ${SCRIPT_DIR} ]; then
mkdir -p ${SCRIPT_DIR}
fi

### Create game directories
while read IDTECH_DIR; do
if [ ! -d "${GAME_DIR}/${IDTECH_DIR}" ]; then
mkdir -p ${GAME_DIR}/${IDTECH_DIR}
Expand Down Expand Up @@ -161,7 +165,7 @@ ${RA_BIN} -L ${RA_DIR}/vitaquake3_libretro.so ${GAME_DIR}/quake3/*
EOF
fi

### Wolf3D
### Wolfenstein 3D
if [[ -f "${GAME_DIR}/wolf3d/wolf3d/VSWAP.WL6" ]] && [[ ! -f ${SCRIPT_DIR}/Wolfenstein\ 3D.sh ]]; then
cat <<EOF >${SCRIPT_DIR}/Wolfenstein\ 3D.sh
#!/bin/bash
Expand All @@ -170,7 +174,7 @@ ${RA_BIN} -L ${RA_DIR}/ecwolf_libretro.so ${GAME_DIR}/wolf3d/wolf3d/*
EOF
fi

### Wolf3D - Spear of Destiny
### Wolfenstein 3D - Spear of Destiny
if [[ -f "${GAME_DIR}/wolf3d/sod/VSWAP.SOD" ]] && [[ ! -f ${SCRIPT_DIR}/Wolfenstein\ 3D\ -\ Spear\ of\ Destiny.sh ]]; then
cat <<EOF >${SCRIPT_DIR}/Wolfenstein\ 3D\ -\ Spear\ of\ Destiny.sh
#!/bin/bash
Expand Down
4 changes: 2 additions & 2 deletions packages/misc/modules/sources/gamelist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@
<image>./images/xemu.svg</image>
</game>
<game>
<path>./Generate id Tech Launchers.sh</path>
<name>Generate id Tech Launchers</name>
<path>./Create id Tech Launchers.sh</path>
<name>Create id Tech Launchers</name>
<desc>Creates launchers for id software games</desc>
<developer>ROCKNIX</developer>
<publisher>ROCKNIX</publisher>
Expand Down
2 changes: 1 addition & 1 deletion packages/virtual/emulators/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ makeinstall_target() {
### iD Software game engines
add_emu_core idtech retroarch idtech
add_es_system idtech
install_script "Generate id Tech Launchers.sh"
install_script "Create id Tech Launchers.sh"

### Apple Macintosh Plus
add_emu_core macintosh retroarch minivmac true
Expand Down
File renamed without changes.