This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdlib.h> | |
| #include <coreinit/cache.h> | |
| #include <coreinit/foreground.h> | |
| #include <coreinit/memfrmheap.h> | |
| #include <coreinit/memheap.h> | |
| #include <coreinit/memory.h> | |
| #include <coreinit/screen.h> | |
| #include <coreinit/thread.h> | |
| #include <coreinit/time.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Implementation of: | |
| * - OSCalendarTimeToFSTime() | |
| * - FSTimeToCalendarTime() | |
| * to be used in Wii U homebrew. | |
| * | |
| * Copyright: 2025 Daniel K. O. | |
| * | |
| * Use it with any of these licenses: | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| std::string | |
| to_utf8(const std::u16string& input) | |
| { | |
| #if 0 | |
| // TODO: try using std::c16rtomb() | |
| #else | |
| std::string output; | |
| char32_t codepoint; | |
| for (auto i = input.begin(); i != input.end(); ++i) { | |
| auto ic = *i; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh -e | |
| # This script copies crash logs from a Wii U running Aroma with FTPiiU plugin. | |
| WIIU_ADDRESS=${1:-wiiu} | |
| # Note: choose your favorite command to do FTP downloads | |
| function download { | |
| URL="$1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### Usage (this will create an image named "test"): | |
| ### docker build -t test | |
| ### docker run -it test | |
| FROM fedora:latest | |
| RUN dnf update -y | |
| RUN dnf install -y cmake | |
| RUN dnf install -y mingw32-gcc-c++ mingw32-libstdc++ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/env python3 | |
| import sys | |
| import struct | |
| # tool to recalculate N64 rom checksums | |
| # reference code: | |
| # https://github.com/queueRAM/sm64tools/blob/master/n64cksum.c | |
| # https://github.com/queueRAM/sm64tools/blob/master/libsm64.c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| if [ $# -eq 0 ] | |
| then | |
| echo "Missing argument: device" | |
| exit 1 | |
| fi | |
| printf '\xAB' | dd of=$1 bs=1 seek=511 count=1 conv=notrunc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| for package in $(rpm -qa --queryformat "%{NAME}^%{VERSION}^%{RELEASE}^%{ARCH}\n" | grep "mga7") | |
| do | |
| IFS="^" read -a fields <<< "$package" | |
| name=${fields[0]} | |
| echo "downgrading $name" | |
| urpmi --auto --downgrade "$name" || exit 1 | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/env python3 | |
| import curses | |
| import curses.ascii | |
| import datetime | |
| import humanize | |
| import psutil | |
| def main(screen): |