Skip to content

Commit 6e442cc

Browse files
committed
Improved boot CD
1 parent adaeb27 commit 6e442cc

File tree

9 files changed

+59
-34
lines changed

9 files changed

+59
-34
lines changed

.gitattributes

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Version: 2021.03.11.01
1+
# Version: 2021.05.25.01
22

33
# Force all text files to be LF
44
* text=auto eol=lf
@@ -9,6 +9,7 @@
99
*.conf text
1010
*.config text
1111
*.cmd text eol=crlf
12+
*.cnf text
1213
*.cs text diff=csharp
1314
*.csproj text diff=html
1415
*.css text

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
include variables.mk
55

66
PACKAGE_FILE = tonyhax-$(TONYHAX_VERSION).zip
7-
PACKAGE_CONTENTS = $(ENTRY_FILES:%=entrypoints/%) $(LOADER_FILES:%=loader/%) $(FREEPSXBOOT_IMAGES:%=freepsxboot/%) README.md LICENSE
7+
PACKAGE_CONTENTS = $(ENTRY_FILES:%=entrypoints/%) $(LOADER_FILES:%=loader/%) $(FREEPSXBOOT_IMAGES:%=freepsxboot/%) $(BOOT_CD_FILES:%=boot-cd/%) README.md LICENSE
88

99
.PHONY: modules clean
1010

@@ -20,9 +20,11 @@ modules:
2020
$(MAKE) -C entrypoints all
2121
$(MAKE) -C loader all
2222
$(MAKE) -C freepsxboot all
23+
$(MAKE) -C boot-cd all
2324

2425
clean:
2526
$(MAKE) -C entrypoints clean
2627
$(MAKE) -C loader clean
2728
$(MAKE) -C freepsxboot clean
29+
$(MAKE) -C boot-cd clean
2830
$(RM) tonyhax-*.zip

boot-cd/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
tonyhax-boot-cd.bin
2+
tonyhax-boot-cd.cue

boot-cd/Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
# Thanks to whoever made https://devhints.io/makefile!
3+
4+
include ../variables.mk
5+
6+
.PHONY: clean
7+
8+
all: $(BOOT_CD_FILES)
9+
10+
clean:
11+
$(RM) $(BOOT_CD_FILES)
12+
13+
$(BOOT_CD_FILES): ../loader/tonyhax.exe cd.xml licensee.dat system.cnf
14+
mkpsxiso -y cd.xml

boot-cd/cd.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<iso_project image_name="tonyhax-boot-cd.bin" cue_sheet="tonyhax-boot-cd.cue" no_xa="0">
3+
<track type="data">
4+
<identifiers
5+
system ="PLAYSTATION"
6+
application ="PLAYSTATION"
7+
volume ="TONYHAX"
8+
volume_set ="TONYHAX"
9+
publisher ="SOCRAM8888"
10+
data_preparer ="MKPSXISO"
11+
copyright ="WTFPL"
12+
/>
13+
14+
<!--
15+
Use the European license file.
16+
17+
This is important since the European consoles are the only ones that check the
18+
game's region, so this CD should be bootable by ever modded console.
19+
-->
20+
<license file="licensee.dat" />
21+
22+
<directory_tree>
23+
<!-- System configuration file -->
24+
<file name="SYSTEM.CNF" type="data" source="system.cnf" />
25+
26+
<!-- Main executable -->
27+
<file name="TONYHAX.EXE" type="data" source="../loader/tonyhax.exe" />
28+
29+
<!-- Generate a 16MB (8192 sectors) dummy file -->
30+
<dummy sectors="8192" />
31+
</directory_tree>
32+
</track>
33+
</iso_project>

boot-cd/licensee.dat

27.4 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
BOOT=cdrom:\THCD.EXE;1
1+
BOOT=cdrom:\TONYHAX.EXE;1
22
TCB=4
33
EVENT=10
44
STACK=801FFFF0

cd/cd.xml

Lines changed: 0 additions & 31 deletions
This file was deleted.

variables.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,7 @@ FREEPSXBOOT_IMAGES := \
8282
tonyhax_scph-101_v4.5.mcd \
8383
tonyhax_scph-102_v4.4.mcd \
8484
tonyhax_scph-102_v4.5.mcd
85+
86+
# Boot CD files
87+
88+
BOOT_CD_FILES := tonyhax-boot-cd.bin tonyhax-boot-cd.cue

0 commit comments

Comments
 (0)