Skip to content

Instantly share code, notes, and snippets.

@infval
infval / dxt_to_png.py
Last active March 27, 2025 23:28
[Wii] Coraline | dxt Converter / Unpacker / Packer / Extractor | Magic: 30 81 80 00 / \x30\x81\x80\x00 / 30818000 / 308180
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
[Wii] Coraline
.dxt <-> PNG
Requirements:
pip install -U pillow
Usage:
@infval
infval / index.html
Last active December 25, 2021 12:37
[NES] Alien 3 (U) / Alien3 / ALIEN³ - Fixes & Timer Editor
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>[NES] Alien 3 - Editor (v1.1)</title>
<style>
html {
font-family: sans-serif;
}
@infval
infval / get_mapper.c
Last active January 30, 2022 20:01
Get NES mapper
#include <stdio.h>
#include <stdint.h>
#define HEADER_SIZE 16
int IsNES20(uint8_t* header)
{
return (header[7] & 0x0C) == 0x08;
}