From 302de15c7562cdf5a487fad9ad410eb87f393169 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Mon, 2 Sep 2024 23:35:31 -0700 Subject: [PATCH] write ep3 version of chat patch --- .../ChatFeatures/ChatFeatures.3SE0.patch.s | 32 +++++++++++++++++++ .../ChatFeatures/ChatFeatures.3SJ0.patch.s | 32 +++++++++++++++++++ .../ChatFeatures/ChatFeatures.3SJT.patch.s | 32 +++++++++++++++++++ .../ChatFeatures/ChatFeatures.3SP0.patch.s | 32 +++++++++++++++++++ 4 files changed, 128 insertions(+) create mode 100644 system/client-functions/ChatFeatures/ChatFeatures.3SE0.patch.s create mode 100644 system/client-functions/ChatFeatures/ChatFeatures.3SJ0.patch.s create mode 100644 system/client-functions/ChatFeatures/ChatFeatures.3SJT.patch.s create mode 100644 system/client-functions/ChatFeatures/ChatFeatures.3SP0.patch.s diff --git a/system/client-functions/ChatFeatures/ChatFeatures.3SE0.patch.s b/system/client-functions/ChatFeatures/ChatFeatures.3SE0.patch.s new file mode 100644 index 00000000..eb465c22 --- /dev/null +++ b/system/client-functions/ChatFeatures/ChatFeatures.3SE0.patch.s @@ -0,0 +1,32 @@ +.meta name="Chat" +.meta description="Enables extended\nWord Select and\nstops the Log\nWindow from\nscrolling with L+R" +# Original code by Ralf @ GC-Forever and Aleron Ives +# https://www.gc-forever.com/forums/viewtopic.php?t=2050 +# https://www.gc-forever.com/forums/viewtopic.php?t=2049 + +entry_ptr: +reloc0: + .offsetof start +start: + .include WriteCodeBlocksGC + + .data 0x8000D6A0 + .data 0x0000001C + lis r3, 0x804A + lhz r3, [r3 + 0x0098] + andi. r0, r3, 0x0003 + cmplwi r0, 3 + beqlr + stfs [r28 + 0x0084], f1 + blr + + .data 0x8016FC9C + .data 0x00000004 + .data 0x4BE9DA05 + + .data 0x801C7D88 + .data 0x00000004 + li r3, 0x0000 + + .data 0x00000000 + .data 0x00000000 diff --git a/system/client-functions/ChatFeatures/ChatFeatures.3SJ0.patch.s b/system/client-functions/ChatFeatures/ChatFeatures.3SJ0.patch.s new file mode 100644 index 00000000..e6bfa33a --- /dev/null +++ b/system/client-functions/ChatFeatures/ChatFeatures.3SJ0.patch.s @@ -0,0 +1,32 @@ +.meta name="Chat" +.meta description="Enables extended\nWord Select and\nstops the Log\nWindow from\nscrolling with L+R" +# Original code by Ralf @ GC-Forever and Aleron Ives +# https://www.gc-forever.com/forums/viewtopic.php?t=2050 +# https://www.gc-forever.com/forums/viewtopic.php?t=2049 + +entry_ptr: +reloc0: + .offsetof start +start: + .include WriteCodeBlocksGC + + .data 0x8000D6A0 + .data 0x0000001C + lis r3, 0x804A + lhz r3, [r3 - 0x0D88] + andi. r0, r3, 0x0003 + cmplwi r0, 3 + beqlr + stfs [r28 + 0x0084], f1 + blr + + .data 0x8016FDE8 + .data 0x00000004 + .data 0x4BE9D8B9 + + .data 0x801C7CFC + .data 0x00000004 + li r3, 0x0000 + + .data 0x00000000 + .data 0x00000000 diff --git a/system/client-functions/ChatFeatures/ChatFeatures.3SJT.patch.s b/system/client-functions/ChatFeatures/ChatFeatures.3SJT.patch.s new file mode 100644 index 00000000..24a46321 --- /dev/null +++ b/system/client-functions/ChatFeatures/ChatFeatures.3SJT.patch.s @@ -0,0 +1,32 @@ +.meta name="Chat" +.meta description="Enables extended\nWord Select and\nstops the Log\nWindow from\nscrolling with L+R" +# Original code by Ralf @ GC-Forever and Aleron Ives +# https://www.gc-forever.com/forums/viewtopic.php?t=2050 +# https://www.gc-forever.com/forums/viewtopic.php?t=2049 + +entry_ptr: +reloc0: + .offsetof start +start: + .include WriteCodeBlocksGC + + .data 0x8000D6A0 + .data 0x0000001C + lis r3, 0x8048 + lhz r3, [r3 + 0x1238] + andi. r0, r3, 0x0003 + cmplwi r0, 3 + beqlr + stfs [r28 + 0x0084], f1 + blr + + .data 0x8017F51C + .data 0x00000004 + .data 0x4BE8E185 + + .data 0x801D9B30 + .data 0x00000004 + li r3, 0x0000 + + .data 0x00000000 + .data 0x00000000 diff --git a/system/client-functions/ChatFeatures/ChatFeatures.3SP0.patch.s b/system/client-functions/ChatFeatures/ChatFeatures.3SP0.patch.s new file mode 100644 index 00000000..5df07f77 --- /dev/null +++ b/system/client-functions/ChatFeatures/ChatFeatures.3SP0.patch.s @@ -0,0 +1,32 @@ +.meta name="Chat" +.meta description="Enables extended\nWord Select and\nstops the Log\nWindow from\nscrolling with L+R" +# Original code by Ralf @ GC-Forever and Aleron Ives +# https://www.gc-forever.com/forums/viewtopic.php?t=2050 +# https://www.gc-forever.com/forums/viewtopic.php?t=2049 + +entry_ptr: +reloc0: + .offsetof start +start: + .include WriteCodeBlocksGC + + .data 0x8000D6A0 + .data 0x0000001C + lis r3, 0x804A + lhz r3, [r3 + 0x24B8] + andi. r0, r3, 0x0003 + cmplwi r0, 3 + beqlr + stfs [r28 + 0x0084], f1 + blr + + .data 0x80170148 + .data 0x00000004 + .data 0x4BE9D559 + + .data 0x801C83FC + .data 0x00000004 + li r3, 0x0000 + + .data 0x00000000 + .data 0x00000000