Skip to content

Instantly share code, notes, and snippets.

View SBird1337's full-sized avatar

Philipp AUER SBird1337

  • Vienna University of Technology
  • Vienna
View GitHub Profile
/*
* The Minimal snprintf() implementation
*
* Copyright (c) 2013,2014 Michal Ludvig <michal@logix.cz>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
/*
* The Minimal snprintf() implementation
*
* Copyright (c) 2013 Michal Ludvig <michal@logix.cz>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
/*
mgba.h
Copyright (c) 2016 Jeffrey Pfau
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation and/or
import os
import io
import argparse
import struct
layer_type_mask = 0xF000
layer_type_shift = 12
parser = argparse.ArgumentParser(description='Convert pokeemerald metatiles to use the triple layer system.' )
parser.add_argument('--tsroot', required=True,
/*
mgba.h
Copyright (c) 2016 Jeffrey Pfau
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation and/or
@SBird1337
SBird1337 / gritty.sh
Created April 24, 2019 11:13
grit wrapper for pokeemerald
#!/bin/sh
helpFunction()
{
echo ""
echo "Usage: $0 -i input -o output_directory"
echo "\t-i Input file to invoke grit with"
echo "\t-o Directory to write output files to"
exit 1 # Exit script after printing help
}
@SBird1337
SBird1337 / script_language.h
Created July 21, 2018 21:34
Script Language File Example
@@ Flag operands
.equ B_T, 0x0
.equ B_F, 0x1
@@ callstd alias
.equ ITEM_OBTAIN, 0x0
.equ ITEM_FIND, 0x1
.equ MSG_FACE, 0x2
.equ MSG_SIGN, 0x3
.equ MSG_KEYOPEN, 0x4