Rename internal project references to SONIC XA instead of Engine

This commit is contained in:
Lucas S. Vieira 2025-01-07 12:00:41 -03:00
parent 2314fbf2f1
commit ac420dc807
4 changed files with 21 additions and 21 deletions

View file

@ -3,10 +3,10 @@ cmake_minimum_required(VERSION 3.21)
project(PSXEngine
LANGUAGES C CXX ASM
VERSION 0.1.0
DESCRIPTION "Platformer Engine for PSX"
DESCRIPTION "Sonic The Hedgehog XA for PlayStation"
HOMEPAGE_URL "https://luksamuk.codes")
file(GLOB ENGINE_SRC
file(GLOB SONICXA_SRC
${CMAKE_CURRENT_LIST_DIR}/src/*.c
${CMAKE_CURRENT_LIST_DIR}/src/*.s)
@ -31,14 +31,14 @@ endif()
set(CMAKE_C_FLAGS "-Wall")
psn00bsdk_add_executable(engine
psn00bsdk_add_executable(sonic
GPREL
${ENGINE_SRC})
${SONICXA_SRC})
target_include_directories(engine PUBLIC
target_include_directories(sonic PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include/>)
psn00bsdk_add_cd_image(iso engine
psn00bsdk_add_cd_image(iso sonicxa
iso.xml
DEPENDS engine system.cnf)
DEPENDS sonic system.cnf)

View file

@ -16,28 +16,28 @@ OMPOUT := $(addsuffix .OMP,$(basename $(LVLSRC)))
MDLOUT := $(addsuffix .mdl,$(basename $(MDLSRC)))
PRLOUT := $(addsuffix PRL.PRL,$(dir $(PRLSRC)))
.PHONY: clean ./build/engine.cue run configure chd cook iso elf debug cooktest purge rebuild repack packrun
.PHONY: clean ./build/sonicxa.cue run configure chd cook iso elf debug cooktest purge rebuild repack packrun
# Final product is CUE+BIN files
all: iso
# Targets for producing ELF, CUE+BIN and CHD files
elf: ./build/engine.elf
iso: ./build/engine.cue
chd: engine.chd
elf: ./build/sonic.elf
iso: ./build/sonicxa.cue
chd: sonicxa.chd
# Target for running the image
run: ./build/engine.cue
run: ./build/sonicxa.cue
pcsx-redux-appimage \
-run -interpreter -fastboot -stdout \
-iso $<
# Target for running the image on Mednafen
run-mednafen: ./build/engine.cue
run-mednafen: ./build/sonicxa.cue
mednafen $<
# Target for running the image on PCSX-ReARMed
run-rearmed: ./build/engine.cue
run-rearmed: ./build/sonicxa.cue
pcsx -cdfile $<
# Run debugger
@ -48,7 +48,7 @@ debug:
release: purge cook
cmake --preset release .
cd build && make iso
tochd -d . -- ./build/engine.cue
tochd -d . -- ./build/sonicxa.cue
# =======================================
# Targets for executable building
@ -58,15 +58,15 @@ release: purge cook
./build: configure
# ELF PSX executable
./build/engine.elf: ./build
cd build && make engine
./build/sonic.elf: ./build
cd build && make sonic
# .CUE + .BIN (needs ELF and cooked assets)
./build/engine.cue: cook ./build/engine.elf
./build/sonicxa.cue: cook ./build/sonic.elf
cd build && make iso
# .CHD file (single-file CD image)
engine.chd: ./build/engine.cue
sonicxa.chd: ./build/sonicxa.cue
tochd -d . -- $<

View file

@ -14,7 +14,7 @@
<!-- <license file="${PROJECT_SOURCE_DIR}/LCNSFILE/LICENSEJ.DAT" /> -->
<directory_tree>
<file name="SYSTEM.CNF" type="data" source="${PROJECT_SOURCE_DIR}/system.cnf" />
<file name="ENGINE.EXE" type="data" source="engine.exe" />
<file name="SONIC.EXE" type="data" source="sonic.exe" />
<dir name="SPRITES">
<file name="SONIC.TIM"

View file

@ -1,4 +1,4 @@
BOOT=cdrom:\ENGINE.EXE;1
BOOT=cdrom:\SONIC.EXE;1
TCB=4
EVENT=10
STACK=801FFFF0