Skip to content

Instantly share code, notes, and snippets.

View Wunkolo's full-sized avatar
💻

Wunk Wunkolo

💻
View GitHub Profile
#pragma once
#include <cstdint>
#include <string>
#include <array>
#include <vector>
class BoyerMoore
{
public:
BoyerMoore(const std::string &Pattern)
@Wunkolo
Wunkolo / SimpWind.cpp
Created June 4, 2016 19:28
Simple Painting Window
#include "SimpWind.hpp"
#include <mutex>
bool SimpWind::WindowImplementation::PopEvent(Event & event)
{
if( Events.empty() )
{
// Populate Queue
ProcessEvents();
}
@Wunkolo
Wunkolo / MinBlit.hpp
Last active May 5, 2016 05:00
MinBlit
#pragma once
#include <stdint.h>
#include <initializer_list>
#include <memory>
#include <float.h>
/*
A Minimal 256 color index blitter
All images are 8-bit grayscale images
@Wunkolo
Wunkolo / compact.cpp
Last active March 15, 2023 02:36
Ascii Raymarcher(old)
#include <math.h>
#include <algorithm>
#include <string>
#include <immintrin.h>
using namespace std;typedef float R;
#define _W 79
#define _H 39
#define EP 0.01f
#define OP operator
#define C const
@Wunkolo
Wunkolo / Sai2.md
Last active December 30, 2015 03:24
Sai2 notes

Binary arithmetic mask: (0x00010001) Decrypt constant:

80 00 << Size (128 bytes)
83B0BCBC D161AEAE 3A646868 416DB3B3
4887BBBB D72BCACA 89CFC2C2 5C2EBBBB
45223A3A 9C86A7A7 A9058484 C0FA0D0D
03E7BABA 96329696 50A5BDBD EFFFA2A2
EC1FF9F9 39A23D3D 16D76161 DD966565
77B4FEFE 28632F2F 742C1D1D C083BDBD
@Wunkolo
Wunkolo / Field.hpp
Created September 14, 2015 18:48
Implementation of the Drunken Biship
#pragma once
#include <stdint.h>
#include <algorithm>
template<size_t Width, size_t Height, typename T>
class Field
{
public:
Field(size_t StartX = Width / 2, size_t StartY = Height / 2)
{
@Wunkolo
Wunkolo / CommandBankDump.py
Last active March 2, 2016 06:21
Some info from messing around with kero blaster
import struct
#used to quickly dump all the available commands from the executable
fIn = open("PinkHour.exe","rb")
fIn.seek(0xD2180)
for i in range(0,164):
magic = ''.join(struct.unpack("cccc",fIn.read(4)))
CmdNum = struct.unpack("I",fIn.read(4))[0]
argcount = struct.unpack("I",fIn.read(4))[0]
print "{0:<13} | {1:<14} | {2}".format('`'+magic+'`',argcount,CmdNum)
<!DOCTYPE html>
<head>
<title>{Title}{block:PostTitle} | {PostTitle}{/block:PostTitle}{block:PostSummary} | {PostSummary}{/block:PostSummary}</title>
<meta charset="utf-8">
<meta name="color:Text" content="#ddd" />
<meta name="color:Background" content="#111" />
<meta name="color:ContentBackground" content="#151515" />
<meta name="color:Trims" content="#444" />
<meta name="color:TrimsSecondary" content="#555" />
<meta name="color:Links" content="#fef248" />
@Wunkolo
Wunkolo / TinySHA1.hpp
Created April 10, 2015 05:38
Messy little program for salted Blam Engine SHA1 checksums.
/*
*
* TinySHA1 - a header only implementation of the SHA1 algorithm in C++. Based
* on the implementation in boost::uuid::details.
*
* SHA1 Wikipedia Page: http://en.wikipedia.org/wiki/SHA-1
*
* Copyright (c) 2012-22 SAURAV MOHAPATRA <mohaps@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
@Wunkolo
Wunkolo / ACNL.md
Last active January 15, 2024 14:22
Animal Crossing New Leaf research

Large player data struct, stores all patterns, letters, mayor info, mayor picture in what seems to be a JFIF stream with EXIF, and other data yet to be mapped out.

Generally in the 0x1FB8190 area of a FCRAM dump. Give or take a few offsets of 0x100.

Between me and troggs the offset seems to be 0x300

64EDD198 F8000200 Possible magic ints to look for to detect player info. Starts right before patterns. Common through-out. Patterns

Offset |Type |info