Skip to content

Instantly share code, notes, and snippets.

@Linblow
Linblow / tiltfx_id.c
Created April 2, 2025 07:32
Decrypt/encrypt TiltFX id.txt file contents
/* Compile this with PolarSSL */
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <polarssl/aes.h> // PolarSSL 0.13 is used in TiltFX
void idStrToBin(const char *idStr, uint8_t *id)
{
int i;
@Linblow
Linblow / mwOverlayHeader.h
Last active November 28, 2024 13:20
MetroWerks Overlay file header
/** Source: C:\Program Files (x86)\Metrowerks\CodeWarrior\PS2 Support\Runtime\Sources\CPP_Support\mwUtils_PS2.c */
typedef struct {
/** Header magic: "MWo". */
uint8_t identifier[3];
/** Overlay version (3). */
uint8_t version;
/** ID of this overlay. */
uint32_t overlayID; // off: 4
/** Load address (ie. address of this structure, followed by the data). */
uint32_t address; // off: 8
@Linblow
Linblow / pspheader.h
Last active October 2, 2023 03:25
Sony ~PSP file header clean reversed
/**
* @file pspheader.h
* @author Linblow (dev at linblow dot com)
* @version 1.0.7
* @date 2023-09-05
*
* Defines the structures ScePSPHeader, etc; for ~PSP header file data.
*/
#ifndef _SCE_KERNEL_PSP_HEADER_H