Skip to content

Instantly share code, notes, and snippets.

View ashquarky's full-sized avatar
🦊
???

Ash ashquarky

🦊
???
View GitHub Profile
diff --git src/audio/wiiu/SDL_wiiuaudio.c src/audio/wiiu/SDL_wiiuaudio.c
index 8004ff99d..fa01d2020 100644
--- src/audio/wiiu/SDL_wiiuaudio.c
+++ src/audio/wiiu/SDL_wiiuaudio.c
@@ -66,15 +66,43 @@ static int WIIUAUDIO_OpenDevice(_THIS, void* handle, const char* devname, int is
AXVoiceVeData vol = {
.volume = 0x8000,
};
- AXVoiceDeviceMixData drcmix = {
- .bus = {
@ashquarky
ashquarky / FSODM_PowerOnAuth.c
Last active April 6, 2021 04:38
Very loose RE of Wii U disc drive auth function
byte a[0x20]; //aka +40050
byte b[0x10]; //aka +40090
byte c[0x20]; //aka +40070
byte d[0x10]; //aka +400b0
byte final_key[unknown]; //aka +409cc
/* FSODM_CmdAuthATA always assumes 0x20 byte buffers, though the drive could be ignoring some bytes */
@ashquarky
ashquarky / tfnsw-to-osm-osmosis.xml
Last active February 25, 2020 10:35
Osmosis TagTransform file to convert TfNSW Cycleways data into OSM-ready tags
<?xml version="1.0"?>
<!--
Things to note:
- You may or may not want name= and alt_name= from this dataset, as name= has other sources
and standards (St. vs Street); while alt_name seems to be naming sidewalks after the
assosciated road
- name= and alt_name= are *stripped by default*. Scroll down and uncomment the appropriate
lines to output them.
- foot=designated on highway=cycleway is not accompanied by bicycle=designated by default
- SURFACE=Spray Seal and SURFACE=AC are translated as surface=asphalt
@ashquarky
ashquarky / midnight.py
Last active October 24, 2024 04:29
Barebones Riivolution ISO patcher (for Mario Kart Midnight). Must patch .dol seperately.
# to patch:
# wit x RMCP01.wbfs kart/
# python midnight.py riivolution/Mario_Kart_Midnight_1.2.xml P kart/DATA/files/
# cp ISO\ Patcher/Midnight/iso/P/main.dol kart/data/sys/ # borrowed from v1.1 ISO patcher
# nano kart/DATA/setup.txt # change "!part-id = RMCP01" -> "part-id = RMCPMN"
# wit cp --source kart/ RMCPMN.wbfs
import argparse
import os
import shutil
@ashquarky
ashquarky / drc_bruteforce.py
Created February 2, 2025 10:08
Brute-force the pairing code for a Wii U GamePad (using drc-sim/Vanilla compatible wifi chipsets)
# go get wpa_supplicant and wpa_cli from a Vanilla compile tree
# the wiiu will go out of pairing mode after a while and the brute will time out, update the starting code
# below, go back into pairing mode, and try again
# SPADE 0
# HEART 1
# DIMND 2
# CLUB 3
import time
import pexpect