Skip to content

Instantly share code, notes, and snippets.

View Pokechu22's full-sized avatar

Pokechu22 Pokechu22

View GitHub Profile
@Pokechu22
Pokechu22 / NormalizeTest.c
Last active April 17, 2021 03:13
Dolphin normalization special case test - https://github.com/dolphin-emu/dolphin/pull/9315
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <malloc.h>
#include <math.h>
#include <gccore.h>
#include <ogc/tpl.h>
@Pokechu22
Pokechu22 / 15w51b_16w02a.diff
Last active July 12, 2020 03:09
1.8.9/1.9 BiomeGenBase
diff --git a/15w51b/aib.java b/16w02a/aic.java
index bf60267..204f2a6 100755
--- a/15w51b/aib.java
+++ b/16w02a/aic.java
@@ -1,278 +1,176 @@
import com.google.common.collect.Lists;
-import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import java.util.Collections;
import java.util.List;
@Pokechu22
Pokechu22 / .gitignore
Last active February 2, 2020 10:52
Wii/Gamecube DTK hardware test
build_gc/
build_wii/
*.elf
@Pokechu22
Pokechu22 / .gitignore
Last active February 2, 2020 10:51
Wii/Gamecube DI Inquiry hardware test
build_gc/
build_wii/
*.elf
@Pokechu22
Pokechu22 / !README.md
Last active January 22, 2020 22:20
Sample chunk packets

Some sample chunk data packets.

Format

The *.bin files are complete chunk data packet payloads (however, they do not have a packet length or ID specified, and are neither compressed nor encrypted).

The *.data.bin files are the data arrays within the packets, matching the data structure.

Most of these chunks have data only located in the bottom section, with a few exceptions. All of them have only the void biome set, and no block entities. The dimension is the overworld (skylight is present). All data is based on the format in 1.13.2.

@Pokechu22
Pokechu22 / Balance board addresses.md
Last active July 15, 2019 00:41
Wii balance board notes, based on Wii Fit (original)

Memory:

  • 80693348 through 8069335f: a bunch of shorts that contain the weight calibration values from 0x24 through 0x3b, as documented on https://wiibrew.org/wiki/Wii_Balance_Board#Calibration_Data.
  • 80693360 through 8069336f: 16 bytes that are used to temporarilly store data extension register stuff.
  • 80693370: the byte at 0x20
  • 80693371: the byte at 0x21
  • 80693372: the byte at 0x60
  • 80693373: the byte at 0x61
  • 80693374: the 4-byte checksum at 0x3c
@Pokechu22
Pokechu22 / DataVersions.csv
Last active March 3, 2019 03:41
All current Minecraft data versions (values for DataVersion)
Version Name DataVersion
17w50a 1457
17w49b 1455
17w49a 1454
17w48a 1453
17w47b 1452
17w47a 1451
17w46a 1449
17w45b 1448
17w45a 1447

Like most of my posts, this ended up being long and full of details that usually do not matter but may be useful as reference. Feel free to jump to the conclusion and/or to skip information on how I gathered data.

The change that caused this

18w01a fixed MC-122053, which was an issue where the amount that the mouse scrolled by was ignored. This meant that for some mouses, on windows, scrolling would scroll extremely fast and far; note that this issue was not reported for 1.13 but rather 1.12, and actually existed far before then.

Here are the changes relevant to that fix (MCP names):

--- a/src/main/java/net/minecraft/client/gui/GuiSlot.java
import com.google.gson.Gson;
import java.io.FileReader;
import java.util.Map;
import org.bukkit.Material;
public class MaterialChecker {
private static Burger burger;
public static void main(String[] args) throws Exception {
try (FileReader reader = new FileReader(args[0])) {
// Burger files contain an array of verisons; we want the first version