Skip to content

Instantly share code, notes, and snippets.

View uyjulian's full-sized avatar

Julian Uy uyjulian

View GitHub Profile
enum
{
_rSpuInit = 0x0001,
rSpuSetCore = 0x0002,
rSpuSetKey = 0x0005,
rSpuSetReverb = 0x0006,
rSpuClearReverbWorkArea = 0x0007,
rSpuSetReverbEndAddr = 0x0008,
rSpuSetReverbModeDepth = 0x000A,
rSpuSetReverbVoice = 0x000B,
/* Macros to set ADSR: i=increment, d=decrement */
enum
{
SD_ADSR_AR_LINEARi = 0,
SD_ADSR_AR_EXPi = 1,
};
enum
{
#if 0
if ( !has_symtab )
{
// Some modules have missing symtab/strtab section, so make our own
elf_syment **symp;
elf_section *sp_y;
unsigned int shdr_entrise = elf->ehp->e_shnum;
sp_y = (elf_section *)calloc(1, sizeof(elf_section));
sp_y->shr.sh_size = shdr_entrise * sizeof(Elf32_Sym);
sp_y->shr.sh_entsize = sizeof(Elf32_Sym);
loginctl enable-linger
podman run --name crystite-test -dit --network=host \
-v /mnt/data/crystite/var/lib/crystite:/var/lib/crystite:rw \
-v /mnt/data/crystite/etc/crystite:/etc/crystite:rw \
-v /mnt/data/crystite/data:/mnt/data:rw \
public.ecr.aws/docker/library/debian:12 /bin/bash -c 'trap : TERM INT; coproc { exec >&-; read; }; eval exec "${COPROC[0]}<&-"; wait'
podman exec -it crystite-test /bin/bash
apt-get update
apt-get install -y sudo wget screen
* PS2 IOP software base modules RE/reimplementation
[spoiler=status]
CDVDFSV - done
CDVDMAN - done
CLEARSPU - done
DMACMAN - done
EESYNC - done
EXCEPMAN - done
FILEIO - done
HEAPLIB - done
00 -> x
01 -> x
02 -> x
03=sio2man_1() -> x
04 sio2_ctrl_set() -> x
05 sio2_ctrl_get() -> x
06 sio2_stat6c_get() -> x
07 sio2_portN_ctrl1_set() -> x
08 sio2_portN_ctrl1_get() -> x
09 sio2_portN_ctrl2_set() -> x
ps2-0100j-20000117.bin.extracted/EECONF
ps2-0100j-20000117.bin.extracted/EELOAD
ps2-0100j-20000117.bin.extracted/EENULL
ps2-0100j-20000117.bin.extracted/FONTM
ps2-0100j-20000117.bin.extracted/FONTS
ps2-0100j-20000117.bin.extracted/IOPBOOT
ps2-0100j-20000117.bin.extracted/IOPBTCON2
ps2-0100j-20000117.bin.extracted/IOPBTCONF
ps2-0100j-20000117.bin.extracted/KERNEL
ps2-0100j-20000117.bin.extracted/KROM
# Install deps:
# python3 -m pip install pycryptodome
# This script decrypts
# pack:psml1/0.1.0/psml1script/system/serverlist.enc
# pack:psml1/0.1.0/psml1script/system/hostname_keypair.enc
from Crypto.Cipher import AES
import sys

DVRP AtaEmu proxied commands info

The task will enter an infinite loop if the following commands are encountered:
Queued 7h: 26h, 36h, C7h, CCh
Packet 8h: A0h, A2h
Special case unhandled 9h: B1h

Special handling for command 20h: will get translated to command C8h
Special handling for command 24h: will get translated to command 25h

-- from DefaultContents_0.5/__xcontents/gmm.db
BEGIN TRANSACTION;
CREATE TABLE GMM_Media (PK INTEGER PRIMARY KEY, path TEXT, parent INTEGER, type TEXT, user INTEGER, file_path TEXT, encryption INTEGER);
INSERT INTO GMM_Media VALUES(1,'/',0,1,0,'',0);
INSERT INTO GMM_Media VALUES(2,'/Shared',1,1,0,'',0);
INSERT INTO GMM_Media VALUES(3,'/Shared/Audio',2,1,0,'',0);
INSERT INTO GMM_Media VALUES(4,'/Shared/Audio/Albums',3,1,0,'',0);
INSERT INTO GMM_Media VALUES(5,'/Shared/Image',2,1,0,'',0);
INSERT INTO GMM_Media VALUES(6,'/Shared/Image/Photos',5,1,0,'',0);
INSERT INTO GMM_Media VALUES(7,'/Shared/Video',2,1,0,'',0);