Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
executable file
·
88 lines (67 loc) · 2.2 KB

File metadata and controls

executable file
·
88 lines (67 loc) · 2.2 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/usr/bin/env bash
# Package the current Linux x86 build for release.
set -euo pipefail
VERSION="${1:-beta-7_1}"
BUILD_DIR="${BUILD_DIR:-build}"
DIST_DIR="${DIST_DIR:-dist}"
PACKAGE_NAME="ctr-native-${VERSION}-linux-x86"
PACKAGE_DIR="${DIST_DIR}/${PACKAGE_NAME}"
BINARY_PATH="${BUILD_DIR}/ctr_native"
if [[ ! -x "${BINARY_PATH}" ]]; then
echo "ERROR: missing executable: ${BINARY_PATH}" >&2
echo "Run ./build.sh first." >&2
exit 1
fi
rm -rf "${PACKAGE_DIR}"
mkdir -p "${PACKAGE_DIR}"
cp "${BINARY_PATH}" "${PACKAGE_DIR}/"
cp LICENSE "${PACKAGE_DIR}/"
cp THIRD_PARTY_NOTICES.md "${PACKAGE_DIR}/"
cat >"${PACKAGE_DIR}/README.txt" <<EOF
CTR Native Linux x86 ${VERSION} build
Game assets are not included.
Simple setup:
- Put your own NTSC-U retail CTR disc image at:
assets/
ctr-u.bin
- Run:
./ctr_native
The disc image must be the common single-track raw PSX BIN layout:
MODE2/2352 sectors, with the data track starting at byte 0.
A cooked 2048-byte ISO does not preserve the XA/STR sector data needed for
audio and video playback.
Extracted asset override:
Extracted files are optional and mostly useful for development, modding, and
debugging. If present, they override files from ctr-u.bin.
assets/
BIGFILE.BIG
SOUNDS/KART.HWL
TEST.STR
XA/
ENG.XNF
ENG/EXTRA/S00.XA ... S05.XA
ENG/GAME/S00.XA ... S20.XA
MUSIC/S00.XA ... S01.XA
XA files must preserve CD-XA sector data. Use 2336-byte Mode2/Form2 sector data
or 2352-byte raw sectors. 2048-byte cooked XA extractions are not suitable.
Linux requirements:
- x86_64 Linux capable of running 32-bit/i386 binaries
- 32-bit glibc runtime
- 32-bit OpenGL/Mesa or vendor OpenGL driver
- OpenGL 3.3 capable GPU/driver
- 32-bit X11 or Wayland runtime libraries
- 32-bit ALSA/PulseAudio/PipeWire runtime libraries
If the game does not launch, run it from a terminal and include:
- distro/version
- GPU/driver
- terminal output
- output of: ldd ./ctr_native
EOF
chmod +x "${PACKAGE_DIR}/ctr_native"
(
cd "${DIST_DIR}"
tar -czf "${PACKAGE_NAME}.tar.gz" "${PACKAGE_NAME}"
sha256sum "${PACKAGE_NAME}.tar.gz" >"${PACKAGE_NAME}.tar.gz.sha256"
)
echo "Wrote ${DIST_DIR}/${PACKAGE_NAME}.tar.gz"
echo "Wrote ${DIST_DIR}/${PACKAGE_NAME}.tar.gz.sha256"
Morty Proxy This is a proxified and sanitized view of the page, visit original site.