Skip to content

Commit

Permalink
gm7 support
Browse files Browse the repository at this point in the history
  • Loading branch information
skyfloogle committed Dec 20, 2021
1 parent 2fe1e5b commit b8a2c0f
Show file tree
Hide file tree
Showing 3 changed files with 532 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# gm8x_fix
gm8x_fix is a patcher that fixes certain issues in games made with
GameMaker 8.x. You can download the latest release from the
GameMaker 7.0, 8.0, and 8.1. You can download the latest release from the
[Releases](https://github.com/skyfloogle/gm8x_fix/releases/latest) tab.

# How do I use it?
Expand All @@ -25,6 +25,7 @@ For building, you can just build the C file with your favourite compiler, it
doesn't have any dependencies.

gm8x_fix currently supports games made in the following versions of GameMaker:
- 7.0
- 8.0
- 8.1.65
- 8.1.71
Expand Down
7 changes: 6 additions & 1 deletion gm8x_fix.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ Patch patches[] = {
{.bytes = upx_80, .name = "UPX unpacked header adjustment", .type = UPX},
{.bytes = mempatch, .name = "Memory patch", .type = MEM},

{.bytes = joypatch_70, .name = "GM7.0 joystick patch", .type = JOY},
{.bytes = schedpatch_70, .name = "GM7.0 scheduler patch", .type = SCHED},
{.bytes = inputlagpatch_70, .name = "GM7.0 input lag patch", .type = INPUTLAG},
{.bytes = dplaypatch_70, .name = "GM7.0 DirectPlay patch", .type = DPLAY},

{.bytes = joypatch_80, .name = "GM8.0 joystick patch", .type = JOY},
{.bytes = schedpatch_80, .name = "GM8.0 scheduler patch", .type = SCHED},
{.bytes = schedpatch_80upx, .name = "GM8.0 (UPX unpacked) scheduler patch", .type = SCHED},
Expand Down Expand Up @@ -374,7 +379,7 @@ int main(int argc, const char *argv[]) {

// list patches
if (!can_apply_any && !any_patch_applied) {
puts("This game cannot be patched. It may not be a GameMaker 8.0 or 8.1 game.");
puts("This game cannot be patched. It may not be a GameMaker 7.0, 8.0, or 8.1 game.");
fclose(f);
CLOSE_PATCHER;
}
Expand Down
Loading

0 comments on commit b8a2c0f

Please sign in to comment.