Skip to content

Instantly share code, notes, and snippets.

@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) {
@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 / 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 / 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
.─╖φφφφφφφφφφφφφφφφφφφφφφφφφφσφφφφσµφ-φφφφφφσφφφφφφφφφφφφφφφφφφφφφφφφφφφφφφφφ⌐
¿░┴┬┬²┴┴ⁿ░░░░░░░░░░░░░░░░░░ΦΦΦÑÄ╚Ñè≥▒▒▒░▒▒Ñ░░░ÑÑ░ΦΦ░░░░░░░░░░░░░░░░░░░░░░░░░░[
¿░▒╩╪▒╩╩▒░░░░░░░░░░░░░░░░░b▒▒▐░░▒░░▀╨╨▒░░▒╟▒▒▐░░░▒░▒░░░░░░░░░░░░░░░░░░░░░░░░░▒
)░░░░░░░░░░░░░░░░░░░░░░░µ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒
)░░ÉTT╨KR░░░╨╠░'^"░░╙''░▒░░É░Ü ├ ▐∩ ░░ 'Ü ²┴ ▒╙╜WKF▒T░░░░░░░░░░░░░░▒
)░░░░░░░░░░░░╠░░ ░▒░ ░▒ƒ░░╓Ü ├ ▐░' ░µ' .Ü ▒░░░░░░░░░░░░░░░░░░░░░▒
)▒░░░░░░▒░░░░░ÜÜ╬▒Ñ└└└█▓▓▓██▓▓▓▓┘▐Ü└└▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▌└Ü└ ░▓▓▓▓██▓▓▓▓ ⌠└ ▒░▒▒
)▒░░░░░░▒░░░░Ü░░╠░Ü ███▓███▓▓█∩▐⌐ ▓▓▓▓██▓█▓▓███▓▓▌'░ .██▓▓███▓▓█ │ ]░▒▒
)▒░░░░░░▒╪╪╪╪╪╪╪╬░Ü ▀▓▀▀▀▀▓▀▀▀ ▐ ▀▓▀▀▀▀▓▓▀▀▀▓▓▀▀▀'░ ▀▓▀▀▀▀▓▀▀▀ │ ]░▒▒
)▒░░░░░░░░░░░░░░░░Ü ╡ │ ▐ ]∩ ░∩ '╛ '░ Ü ╡ │ ]░▒▒
Metroid1.pak
1055715C 09 Main Ventilation Shaft Section F
31C44B23 10 Connection Elevator to Deck Beta
A8813FB6 12 Deck Beta Conduit Hall
3E05B8DC 13 Main Ventilation Shaft Section D
5BDC869C 15 Main Ventilation Shaft Section C
49C59925 16 Deck Beta Security Hall
6ED3231B 17 Connection Elevator to Deck Beta
093500E4 18 Subventilation Shaft Section A
E667B605 21 Deck Gamma Monitor Hall
<scheme name="Jacko" version="142" parent_scheme="Darcula">
<option name="FONT_SCALE" value="1.0" />
<metaInfo>
<property name="created">2017-07-11T23:00:41</property>
<property name="ide">CLion</property>
<property name="ideVersion">2017.1.3.0.0</property>
<property name="modified">2017-07-12T18:17:08</property>
<property name="originalScheme">Darcula</property>
</metaInfo>
<option name="EDITOR_FONT_SIZE" value="12" />
template <typename _CharTp>
class basic_string
{
struct COWData
{
uint32_t x0_capacity;
uint32_t x4_refCount;
_CharTp x8_data[];
};
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <pulse/xmalloc.h>
#include <pulsecore/namereg.h>
#include <pulsecore/sink.h>
#include <pulsecore/module.h>
#include <pulsecore/core-util.h>
#!/bin/bash
###############################################################
# Uses LXD to create an Ubuntu Xenial container and produce #
# a reasonably portable AppImage of PrimeWorldEditor. #
###############################################################
set -e
CMAKE_VERSION=3.15.5