Skip to content

Instantly share code, notes, and snippets.

View gocha's full-sized avatar

gocha gocha

View GitHub Profile
@gocha
gocha / ida-lorom-test.asm
Created April 24, 2015 14:38
IDA LoROM address test
.LOROM
; snes_header is actually broken
.SNESHEADER
ID "IDAX"
NAME "IDA LOROM TEST "
LOROM
FASTROM
CARTRIDGETYPE $02
ROMSIZE $0C
@gocha
gocha / ida-hirom-test.asm
Last active August 29, 2015 14:19
IDA HiROM address test
.HIROM
; snes_header is actually broken
.SNESHEADER
ID "IDAX"
NAME "IDA HIROM TEST "
HIROM
FASTROM
CARTRIDGETYPE $02
ROMSIZE $0C
@gocha
gocha / gist:11390609
Last active August 29, 2015 14:00
BizHawk: vargs support for LuaInterface (ported from NLua <https://github.com/NLua/NLua>, thanks a lot). Dirty test: <http://pastebin.com/d03N93z8>
Index: LuaInterface/LuaInterface/Metatables.cs
===================================================================
--- LuaInterface/LuaInterface/Metatables.cs (revision 6441)
+++ LuaInterface/LuaInterface/Metatables.cs (working copy)
@@ -745,6 +745,55 @@
LuaDLL.lua_pushnil(luaState);
return 1;
}
+ private static bool IsInteger(double x) {
+ return Math.Ceiling(x) == x;