Skip to content

Instantly share code, notes, and snippets.

@kris7t
kris7t / gist:2850110
Created June 1, 2012 08:01
Patch S.W.I.N.E. v1.9 to support 800x600, 1366x768, 1920x1080, 1920x1200 (loses support for 1024x768, 1280x1024, 1600x1200).
This difference file has been created by IDA Pro
swine.exe
0012F735: 30 33
0012F736: 32 36
0012F737: 34 36
0012F741: 32 39
0012F742: 38 32
0012F747: 32 38
0012F748: 34 30
@kris7t
kris7t / FindInArchive.cxx
Created May 31, 2012 18:46
PACK file decompilation
SLibEntryRef __thiscall SFileSystem__FindInArchive(SFileSystem *this, int index, const char *str)
{
SLibEntryRef result; // qax@3
char name_offset; // ST13_1@14
const char *name; // ST18_4@14
unsigned __int8 name_length; // ST12_1@14
SFileSystem *self; // [sp+0h] [bp-14h]@1
int cmp; // [sp+8h] [bp-Ch]@14
SLibEntryHead *lib_entry; // [sp+Ch] [bp-8h]@13
SLibEntryRef *ref; // [sp+Ch] [bp-8h]@14