Change ISO image name to "Sonic The Hedgehog XA"

This commit is contained in:
Lucas S. Vieira 2025-01-11 23:54:01 -03:00
parent b081b067b2
commit e72cbe8667
2 changed files with 13 additions and 16 deletions

View file

@ -38,7 +38,7 @@ psn00bsdk_add_executable(sonic
target_include_directories(sonic PUBLIC target_include_directories(sonic PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include/>) $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include/>)
psn00bsdk_add_cd_image(iso sonicxa psn00bsdk_add_cd_image(iso "Sonic The Hedgehog XA"
iso.xml iso.xml
DEPENDS sonic system.cnf) DEPENDS sonic system.cnf)

View file

@ -1,6 +1,9 @@
export PATH := /opt/psn00bsdk/bin:$(PATH) export PATH := /opt/psn00bsdk/bin:$(PATH)
export PSN00BSDK_LIBS := /opt/psn00bsdk/lib/libpsn00b export PSN00BSDK_LIBS := /opt/psn00bsdk/lib/libpsn00b
CHD := ./Sonic\ The\ Hedgehog\ XA.chd
CUESHEET := ./build/Sonic\ The\ Hedgehog\ XA.cue
MAP16SRC := $(shell ls ./assets/levels/**/map16.json) MAP16SRC := $(shell ls ./assets/levels/**/map16.json)
COL16SRC := $(shell ls ./assets/levels/**/tiles16.tsx) COL16SRC := $(shell ls ./assets/levels/**/tiles16.tsx)
MAP128SRC := $(shell ls ./assets/levels/**/tilemap128.tmx) MAP128SRC := $(shell ls ./assets/levels/**/tilemap128.tmx)
@ -16,40 +19,34 @@ OMPOUT := $(addsuffix .OMP,$(basename $(LVLSRC)))
MDLOUT := $(addsuffix .mdl,$(basename $(MDLSRC))) MDLOUT := $(addsuffix .mdl,$(basename $(MDLSRC)))
PRLOUT := $(addsuffix PRL.PRL,$(dir $(PRLSRC))) PRLOUT := $(addsuffix PRL.PRL,$(dir $(PRLSRC)))
.PHONY: clean ./build/sonicxa.cue run configure chd cook iso elf debug cooktest purge rebuild repack packrun .PHONY: clean ${CUESHEET} run configure chd cook iso elf debug cooktest purge rebuild repack packrun
# Final product is CUE+BIN files # Final product is CUE+BIN files
all: iso all: iso
# Targets for producing ELF, CUE+BIN and CHD files # Targets for producing ELF, CUE+BIN and CHD files
elf: ./build/sonic.elf elf: ./build/sonic.elf
iso: ./build/sonicxa.cue iso: ${CUESHEET}
chd: sonicxa.chd chd: ${CHD}
# Target for running the image # Target for running the image
run: ./build/sonicxa.cue run: ${CUESHEET}
pcsx-redux-appimage \ pcsx-redux-appimage \
-run -interpreter -fastboot -stdout \ -run -interpreter -fastboot -stdout \
-iso $< -iso $<
# Target for running the image on Mednafen # Target for running the image on Mednafen
run-mednafen: ./build/sonicxa.cue run-mednafen: ${CUESHEET}
mednafen -force_module psx $< mednafen -force_module psx $<
# Target for running the image on PCSX-ReARMed # Target for running the image on PCSX-ReARMed
run-rearmed: ./build/sonicxa.cue run-rearmed: ${CUESHEET}
pcsx -cdfile $< pcsx -cdfile $<
# Run debugger # Run debugger
debug: debug:
gdb-multiarch gdb-multiarch
# Build on release target
release: purge cook
cmake --preset release .
cd build && make iso
tochd -d . -- ./build/sonicxa.cue
# ======================================= # =======================================
# Targets for executable building # Targets for executable building
# ======================================= # =======================================
@ -62,12 +59,12 @@ release: purge cook
cd build && make sonic cd build && make sonic
# .CUE + .BIN (needs ELF and cooked assets) # .CUE + .BIN (needs ELF and cooked assets)
./build/sonicxa.cue: cook ./build/sonic.elf ${CUESHEET}: cook ./build/sonic.elf
cd build && make iso cd build && make iso
# .CHD file (single-file CD image) # .CHD file (single-file CD image)
sonicxa.chd: ./build/sonicxa.cue ${CHD}: ${CUESHEET}
tochd -d . -- $< tochd -d . -- "$<"
# ======================================= # =======================================