Skip to content

Instantly share code, notes, and snippets.

@indivisible
Created March 1, 2020 10:23
Show Gist options
  • Save indivisible/4a3f697c66316e650cdab7e1b180e66f to your computer and use it in GitHub Desktop.
Save indivisible/4a3f697c66316e650cdab7e1b180e66f to your computer and use it in GitHub Desktop.
tentative untested twbt windows and linux patch for 0.47.04 (the linux patch for p_render_lower_levels might be broken!)
#elif defined(DF_04704)
#ifdef WIN32
#define A_LOAD_MULTI_PDIM 0x140c1f670
#define A_RENDER_MAP 0x1409d8200
#define A_RENDER_UPDOWN 0x1406f0090
static patchdef p_display = { 0x140479beb, 5 };
static patchdef p_dwarfmode_render = { 0x14042d93a, 5 };
static patchdef p_advmode_render[] = {
{ 0x14037283a, 5+7+5 }, { 0x1403728a1, 5+7+5 }, { 0x140372907, 5+7+5 }, { 0x140372e32, 5+7+5 }
};
static patchdef p_render_lower_levels = {
0x140d747c0, 9, true, { 0x48, 0x8b, 0x44, 0x24, 0x28, 0xc6, 0x00, 0x00, 0xc3 }
};
#elif defined(__APPLE__)
#error Mac OSX not currently supported for 0.47.03
#else
#define A_RENDER_MAP 0xec9420
#define A_RENDER_UPDOWN 0xc895f0
#define NO_DISPLAY_PATCH
static patchdef p_dwarfmode_render = { 0x774cf5, 5 };
static patchdef p_advmode_render[] = {
{ 0x740fb2, 5+5+5 }, { 0x7415da, 5+5+5 }, { 0x741619, 5+5+5 }, { 0x741672, 5+5+5 }
};
static patchdef p_render_lower_levels = {
0x1156420, 5, true, { 0x41, 0xc6, 0x00, 0x00, 0xc3 }
};
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment