Created PSX Game template to use

This commit is contained in:
2022-08-21 21:00:00 +02:00
parent f7f43f50c6
commit 9ab4520b81
18 changed files with 108 additions and 563 deletions

View File

@@ -0,0 +1,63 @@
{
"folders": [
{
"path": ".",
"name": "#{ProjectName}"
}
],
"tasks": {
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "wsl make ${input:target} BUILD_PROFILE=${input:build profile} JABY_ENGINE_DIR=../${config:jaby_engine_path}",
"group": {
"kind": "build",
"isDefault": true
},
"options": {
"cwd": "application"
}
},
{
"label": "cdgen",
"type": "shell",
"command": "${config:jaby_engine_path}/bin/psxcdgen.exe iso/Config.xml",
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "build & generate cd",
"type": "shell",
"dependsOn": ["build", "cdgen"],
"dependsOrder": "sequence",
"group": {
"kind": "build",
"isDefault": true
}
}
],
"inputs": [
{
"id": "build profile",
"type": "pickString",
"options": ["debug", "release"],
"default": "release",
"description": "the build profile for #{ProjectName}"
},
{
"id": "target",
"type": "pickString",
"options": ["all", "clean", "rebuild"],
"default": "all",
"description": "the build target"
}
]
},
"settings": {
"jaby_engine_path": "#{JabyEnginePath}",
}
}

View File

@@ -0,0 +1,5 @@
*.bin
*.cue
*.d
*.o
**/bin

View File

@@ -0,0 +1,18 @@
ARTIFACT = #{ProjectName}
BUILD_DIR = bin
PSCX_REDUX_DIR = $(JABY_ENGINE_DIR)/lib/pcsx-redux
include $(JABY_ENGINE_DIR)/lib/Wildcard.mk
SRCS = $(call rwildcard, src, c cpp)
LIBS = -L$(JABY_ENGINE_DIR)/lib/PSX-$(BUILD_PROFILE) -lJabyEngine
include $(JABY_ENGINE_DIR)/lib/Makefile
#Rules section for default compilation and linking
all: $(TARGET).psexe
clean:
rm -fr $(OUTPUT_DIR)
rm -fr ../iso/*.bin
rm -fr ../iso/*.cue

View File

@@ -0,0 +1,3 @@
int main() {
return 0;
}

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<iso_project image_name="iso/#{ProjectName}.bin" cue_sheet="iso/#{ProjectName}.cue" no_xa="0">
<track type="data">
<identifiers
system = "PLAYSTATION"
application = "PLAYSTATION"
volume = "MYDISC"
volume_set = "MYDISC"
publisher = "JABY"
data_preparer = "MKPSXISO"
copyright = "COPYLEFT"
/>
<license file="D:/RetroGameDev/PSX/PSYQ/psyq/cdgen/LCNSFILE/LICENSEE.DAT"/>
<directory_tree>
<file name="SYSTEM.CNF" type="data" source="iso/System.cnf"/>
<file name="SCES_003.90" type="data" source="application/bin/PSX-release/#{ProjectName}.psexe"/>
</directory_tree>
</track>
</iso_project>

View File

@@ -0,0 +1,4 @@
BOOT=cdrom:\SCES_003.90;1
TCB=4
EVENT=10
STACK=801FFFF0