diff --git a/CMakeLists.txt b/CMakeLists.txt index a1b8296..0c29faf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 $) -psn00bsdk_add_cd_image(iso engine +psn00bsdk_add_cd_image(iso sonicxa iso.xml - DEPENDS engine system.cnf) + DEPENDS sonic system.cnf) diff --git a/Makefile b/Makefile index 271fbe7..c8b2f99 100644 --- a/Makefile +++ b/Makefile @@ -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 . -- $< diff --git a/iso.xml b/iso.xml index 6826086..4196a49 100644 --- a/iso.xml +++ b/iso.xml @@ -14,7 +14,7 @@ - +