Skip to content

Instantly share code, notes, and snippets.

View aldelaro5's full-sized avatar
🏠
Working from home

aldelaro5 aldelaro5

🏠
Working from home
View GitHub Profile
@aldelaro5
aldelaro5 / thunderkit.md
Last active August 3, 2023 04:23
Thunderkit R&D first report

Thunderkit R&D report

This document will report on everything that was found while researching how I see thunderkit's role in Bug Fables modding moving forward. The short answer is it will become essential if at the very least due to the assets management, but it most likely will be for everything in general. This document isn't a guide, it's a technical report of everything that I observed while researching tk which is why it doesn't appear in my docs repos: it's reports of findings, but not documentation because there's more R&D to do. Think of them as "notes", but shared so people don't refind everything I spent so much to find.

What is thunderkit?

https://github.com/PassivePicasso/ThunderKit

Thunderkit is best described as a "meta" IDE for unity modding. It's a unity package that provides specialised editor scripts and assets for the sole purpose of simplifying the process of developping, building and distributing a mod. It does not do anything you can't do with other methods, but the major selli

@aldelaro5
aldelaro5 / ghidra_mgba_gdb.md
Last active October 4, 2023 07:56
Debugging with ghidra + mgba's GDB server

CURRENTLY WORKS MOSTLY FOR LINUX, WINDOWS INSTRUCTIONS WILL BE WRITTEN EVENTUALLY

Requirements

  • mgba BUILT FROM SOURCE, this is because you need some changes that as of this writting, aren't present in the lattest version (0.9.3). They will only be present in a release in 0.10.0+
  • Ghidra 10.0.3+ (you NEED 10.0.3+ due to fixes being applied that specifically impacts this process as well as a feature that allows to sync the static listing with the dynamic listing). I recommend however to install the lattest version at the time you are setting this up and upgrade as you feel like it (projects are usually upwards compatible, but the opposite isn't true).
  • gdb-multiarch. You need the multiarch version because it has every targets enabled includring armv4t which is the one we care about here.
  • GhidraGBA extension (you need to modify extension.properties in the zip to have the version say your ghidra's version (like "10.0.3" or "10.1") so it can be installed).
  • If you want better step over experi
@aldelaro5
aldelaro5 / test.cpp
Last active June 30, 2019 17:55
fps limiting tests
#include <algorithm>
#include <iostream>
#include <chrono>
#include <cmath>
#include <vector>
#include <Windows.h>
const int nbrSecondsToTest = 600;
const double milisecondsInSecond = 1000.0;
const double microsecondsInSecond = 1000000.0;
@aldelaro5
aldelaro5 / ImportSharSymbolsScript.java
Created April 18, 2019 03:31
SHAR leaked ps2 symbols import script
//@author aldelaro5
//@category Import
//@keybinding
//@menupath
//@toolbar
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileReader;
@aldelaro5
aldelaro5 / .clang-format
Last active May 4, 2018 04:50
Pokemon Colosseum RNG seed finder code
---
AlignAfterOpenBracket: 'true'
AllowAllParametersOfDeclarationOnNextLine: 'true'
AllowShortFunctionsOnASingleLine: None
AlwaysBreakBeforeMultilineStrings: 'true'
AlwaysBreakTemplateDeclarations: 'true'
BreakBeforeBraces: Allman
BreakStringLiterals: 'true'
FixNamespaceComments: 'true'
ColumnLimit: '100'