Skip to content

Instantly share code, notes, and snippets.

@jackoalan
jackoalan / cwfilt.py
Last active July 28, 2023 00:34
CodeWarrior C++ Symbol Demangler
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
def demangleNode(node):
pointer = False
ref = False
const = False
unsigned = False
@jackoalan
jackoalan / ANIM.c
Created May 2, 2015 19:28
MP1 ANIM-format extractor
/*
* ANIM.c
* rwk
*
* Created on 10/18/13.
*
*/
#include <stdio.h>
#include <math.h>
@jackoalan
jackoalan / jacko-qt-style.xml
Created May 1, 2015 06:09
My personal Qt-creator color theme
<?xml version="1.0" encoding="UTF-8"?>
<style-scheme version="1.0" name="jacko">
<style name="Text" foreground="#f6ebd6" background="#101839"/>
<style name="Link" foreground="#409090"/>
<style name="Selection" foreground="#ffffff" background="#4e4e8f"/>
<style name="LineNumber" foreground="#8b8bcd" background="#2e2e2e"/>
<style name="SearchResult"/>
<style name="SearchScope" foreground="#000000" background="#f8fafc"/>
<style name="Parentheses" foreground="#ffff00" background="#4e4e8f"/>
<style name="CurrentLine" foreground="#000000" background="#2d2d32"/>
@jackoalan
jackoalan / gen_dolphin_map.idc
Last active January 9, 2018 01:19
Generates a dolphin-emu compatible .map file from an IDA database
auto address = NextFunction(0);
auto filestr = AskFile(1, "*.map", "Dolphin MAP output file");
auto file = fopen(filestr, "w");
fprintf(file, ".text\n");
while (address != -1) {
auto name = GetFunctionName(address);
auto demangle_name = Demangle(name, GetLongPrm(INF_LONG_DN));
if (strlen(demangle_name) > 1)
name = demangle_name;
if (strlen(name) > 1) {