Wisi's docs archive.
From https://www.psx-place.com/threads/hdd-for-ps2-scph75000x-later-models.30696/page-2#post-254935
#!/usr/bin/env python3 | |
# SPDX-License-Identifier: MIT | |
# Attempting to figure out shader filenames for FDK (ED9 / Kuro no Kiseki) mdl format materials. | |
# Example: basic#3f0668ce.fxo | |
import os | |
import sys | |
import json | |
import zlib |
chr0000_00.dds | |
chr0000_01_n.dds | |
chr0000_01_q.dds | |
chr0000_c02_03.dds | |
chr0000_c02_03_n.dds | |
chr0000_c02_03_q.dds | |
chr0000_c07_03_q.dds | |
chr5001_00.dds | |
chr5001_01_a.dds | |
chr5001_01_n.dds |
#!/usr/bin/env python3 | |
# SPDX-License-Identifier: MIT | |
# This script will extract the PEF NDRV from 1S2_512.ROM | |
# as posted here: | |
# https://68kmla.org/bb/index.php?threads/silicon-image-sil3112-flashing-easier-way-using-flashrom.7013/ | |
a = [] | |
d = b"" | |
with open("1S2_512.ROM", "rb") as f: |
# SPDX-License-Identifier: MIT | |
def utf8_calculate_len(codepoint): | |
if codepoint < 0x7f: | |
return 1 | |
if codepoint < 0x7ff: | |
return 2 | |
if codepoint < 0xffff: | |
return 3 | |
return 4 |
Wisi's docs archive.
From https://www.psx-place.com/threads/hdd-for-ps2-scph75000x-later-models.30696/page-2#post-254935
# sceRm2CodeToStr / xRC_GetStr strings | |
ps2cmds = [ # subdevice=218 | |
"1", | |
"2", | |
"3", | |
"4", | |
"5", | |
"6", | |
"7", |
# SPDX-License-Identifier: MIT | |
import sys | |
import io | |
def read_items(in_bytes=None, in_items=None, in_dic=None, in_byteorder="little"): | |
total_offset = 0 | |
for x in in_items: | |
item_name = x[0] |
# PPC440x AUX instructions to dcread instructions | |
from idaapi import * | |
from idautils import * | |
def main(): | |
# Loop through all the segments and scan any marked as code. | |
seg = ida_segment.get_first_seg() | |
while seg is not None: |
cmake_minimum_required(VERSION 3.0) | |
project(csvParser) | |
list(APPEND SOURCES | |
Main.cpp | |
Krkr2DrawDeviceWrapper.cpp | |
BasicDrawDevice.cpp | |
) | |
list(APPEND INCFLAGS |
# SPDX-License-Identifier: MIT | |
# Decompress linux_p7.daz from SCPN-60160 | |
import zlib | |
import sys | |
import io | |
with open(sys.argv[1], "rb") as f: | |
iobj = zlib.decompressobj() | |
f.seek(0, 2) | |
sz = f.tell() |