Skip to content

Instantly share code, notes, and snippets.

View TBirdSoars's full-sized avatar
🦑

TBirdSoars

🦑
  • 09:32 (UTC -04:00)
View GitHub Profile
@iMoD1998
iMoD1998 / FixGPLR.py
Last active June 26, 2023 20:04
FixGPLR - Xbox 360 GPLR remover for IDA decompiler
import idautils
import ida_bytes
import ida_funcs
import ida_ida
import ida_kernwin
import ida_search
import ida_idp
import idaapi
import idc
import pprint
#!/usr/bin/env python3
"""
Converts between QD and FDS disk images
"""
import struct
def create_fds_header(side_count):
return b"FDS\x1A" + bytes([side_count & 0xFF]) + bytes(11)
@flibitijibibo
flibitijibibo / sa2unpak.c
Last active March 31, 2020 20:41
I wrote this because I really like Sonic Adventure 2, and I take games I like apart, nowadays to see how portable they might be. The shaders found in the PC version can be read and rebuilt by MojoShader! So that'd settle that part of it.
/* SA2UNPAK - Sonic Adventure 2 PC Shader obj.pak Extraction Program
* Written by Ethan "flibitijibibo" Lee
* http://www.flibitijibibo.com/
*
* Released under public domain.
* No warranty implied; use at your own risk.
*
* I wrote this to extract the D3D9 shader binary files for parsing
* in MojoShader. This may not work with any other file in the game.
* Also, I am not porting SA2 to Linux. Though I really would like to.