Created PSX Game template to use
This commit is contained in:
63
template/JabyEngine-PSX_Game/#{ProjectName}.code-workspace
Normal file
63
template/JabyEngine-PSX_Game/#{ProjectName}.code-workspace
Normal 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}",
|
||||
}
|
||||
}
|
5
template/JabyEngine-PSX_Game/.gitignore
vendored
Normal file
5
template/JabyEngine-PSX_Game/.gitignore
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
*.bin
|
||||
*.cue
|
||||
*.d
|
||||
*.o
|
||||
**/bin
|
18
template/JabyEngine-PSX_Game/application/Makefile
Normal file
18
template/JabyEngine-PSX_Game/application/Makefile
Normal 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
|
3
template/JabyEngine-PSX_Game/application/src/main.cpp
Normal file
3
template/JabyEngine-PSX_Game/application/src/main.cpp
Normal file
@@ -0,0 +1,3 @@
|
||||
int main() {
|
||||
return 0;
|
||||
}
|
19
template/JabyEngine-PSX_Game/iso/Config.xml
Normal file
19
template/JabyEngine-PSX_Game/iso/Config.xml
Normal 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>
|
4
template/JabyEngine-PSX_Game/iso/System.cnf
Normal file
4
template/JabyEngine-PSX_Game/iso/System.cnf
Normal file
@@ -0,0 +1,4 @@
|
||||
BOOT=cdrom:\SCES_003.90;1
|
||||
TCB=4
|
||||
EVENT=10
|
||||
STACK=801FFFF0
|
Reference in New Issue
Block a user