Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add patch addresses for DF 0.47.02 on Linux and Windows #94

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions patches.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,40 @@ static void apply_patch(MemoryPatcher *mp, patchdef &p)
0x10a2f30, 5, true, { 0x41, 0xc6, 0x00, 0x00, 0xc3 }
};
#endif
#elif defined(DF_04702)
#ifdef WIN32
#define A_LOAD_MULTI_PDIM 0x140c1e5d0
#define A_RENDER_MAP 0x1409d72d0
#define A_RENDER_UPDOWN 0x1406ef250

static patchdef p_display = { 0x140478aab, 5 };

static patchdef p_dwarfmode_render = { 0x14042c88a, 5 };

static patchdef p_advmode_render[] = {
{ 0x14037180a, 5+7+5 }, { 0x140371871, 5+7+5 }, { 0x1403718d7, 5+7+5 }, { 0x140371e02, 5+7+5 }
};

static patchdef p_render_lower_levels = {
0x140d72de0, 9, true, { 0x48, 0x8b, 0x44, 0x24, 0x28, 0xc6, 0x00, 0x00, 0xc3 }
};
#elif defined(__APPLE__)
#error Mac OSX not currently supported for 0.47.02
#else
#define A_RENDER_MAP 0xec8270
#define A_RENDER_UPDOWN 0xc87720
#define NO_DISPLAY_PATCH

static patchdef p_dwarfmode_render = { 0x774035, 5 };

static patchdef p_advmode_render[] = {
{ 0x740142, 5+5+5 }, { 0x74076a, 5+5+5 }, { 0x7407a9, 5+5+5 }, { 0x740802, 5+5+5 }
};

static patchdef p_render_lower_levels = {
0x1154050, 5, true, { 0x41, 0xc6, 0x00, 0x00, 0xc3 }
};
#endif
#else
#error Unsupported DF version
#endif