Skip to content

Instantly share code, notes, and snippets.

View marijnvdwerf's full-sized avatar

Marijn van der Werf marijnvdwerf

View GitHub Profile
FROM ubuntu:18.04
RUN dpkg --add-architecture i386 \
&& apt-get update \
&& apt-get -y upgrade \
&& apt-get install --no-install-recommends -y \
clang \
cmake \
g++-multilib \
gcc-multilib \
git \
@marijnvdwerf
marijnvdwerf / .gitignore
Last active May 31, 2020 21:55
RCT Classic encryption
/vendor/
@marijnvdwerf
marijnvdwerf / gist:9a57c95e7e87f38384ffd2c7bb9e69f5
Created September 5, 2019 11:11
Nintendo Puzzle Collection ISO structure
P-GPZJ
├── align-files.txt
├── files
│   ├── Dr_MARIO.plf
│   ├── Dr_MARIO.rel
│   ├── PANEPON.plf
│   ├── __DEMO.BIN
│   ├── __LOGO.BIN
│   ├── __MENU.BIN
│   ├── __STORY_CAST.BIN
class Boost < Formula
desc "Collection of portable C++ source libraries"
homepage "https://www.boost.org/"
revision 1
head "https://github.com/boostorg/boost.git"
stable do
url "https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.bz2"
sha256 "2684c972994ee57fc5632e03bf044746f6eb45d4920c343937a465fd67a5adba"
.incbin "baserom.gba", 0x0, 0xDFBD1 @ unknown
kUnknown_80DFBD1:: @ 80DFBD1
.incbin "baserom.gba", 0xDFBD1, 0x3C @ null
kUnknown_80DFC0D:: @ 80DFC0D
.incbin "baserom.gba", 0xDFC0D, 0x5C @ null
kUnknown_80DFC69:: @ 80DFC69
.incbin "baserom.gba", 0xDFC69, 0x19D958 @ null
@marijnvdwerf
marijnvdwerf / mapdata.s
Created October 24, 2017 19:16
Emerald map data
This file has been truncated, but you can view the full file.
.incbin "baserom.gba", 0x0, 0xA0B21
MetatileAttributes_80A0B21:: @ 80A0B21
@ 20 tiles
MetatileAttributes_80A0B49:: @ 80A0B49
@ 146 tiles
MetatileAttributes_80A0C6D:: @ 80A0C6D
@ 20 tiles
@marijnvdwerf
marijnvdwerf / unk.s
Created October 23, 2017 18:04
Emerald
_860D450:: @ 860D450
.incbin "baserom.gba", 0x60D450, 0x10
_860D460:: @ 860D460
.incbin "baserom.gba", 0x60D460, 0x1C
_860D47C:: @ 860D47C
.incbin "baserom.gba", 0x60D47C, 0x2C
@marijnvdwerf
marijnvdwerf / animcmds.s
Last active October 9, 2017 17:56
Emerald pokemon animations
.incbin "baserom.gba", 0x0, 0x2FF538
gAnimCmd_NONE_0:: @ 82FF538
obj_image_anim_frame 0, 0
obj_image_anim_end
.incbin "baserom.gba", 0x2FF540, 0x688C
gUnknown_08305DCC:: @ 8305DCC
.incbin "baserom.gba", 0x305DCC, 0x19C
#include "global.h"
#include "asm.h"
#include "sprite.h"
#include "string_util.h"
#include "text.h"
extern void *gUnknown_0820A804[];
extern void *gUnknown_0820A80C[];
extern void *gUnknown_0820A814[];
void doesntCrash_1() {
log_error("⇢ %s",__FUNCTION__);
auto fs = FileStream("/nonexistant.png", FILE_MODE_WRITE);
UNUSED(fs);
log_error("⇠ %s",__FUNCTION__);
}
void doesntCrash_2() {
log_error("⇢ %s",__FUNCTION__);
auto fs = FileStream("/nonexistant.png", FILE_MODE_WRITE);