Jump to content

kenzusik

Newbie
  • Posts

    6
  • Joined

  • Last visited

Posts posted by kenzusik

  1. 11 hours ago, Aizen_ said:

    Your game is crashing because of the way you patched the function. The instruction you used:

    MOV W0, #99999
    RET

    doesn’t work for values bigger than 65535 on ARM64. MOV W0, #imm can only handle 16‑bit immediates, so when you put 99999, the instruction isn’t encoded properly and the app blows up when it runs.

    If you want to force it to return 99999, you need to build that value in two steps using MOVZ and MOVK, like this:

    MOVZ W0, #34463       ; lower 16 bits of 99999 (0x869F)
    MOVK W0, #1, LSL #16  ; upper bits
    RET

    something like this i think
     

    Thank you, but this happens even if I add not 9999, but even if I add 10

  2. 10 hours ago, Aizen_ said:

    that because u may have patched it at the wrong place , patching things that is essential for game to run so thats why its crashing

    + yoi cannot just patch anywhere  it will casue crash

    I'm not patching random stuff — I'm specifically patching the DreamBlast.Inventory::GetCoins function

    Here’s how it looks in IDA:

    il2cpp:0000000001ADA504 ; DreamBlast.Inventory::GetCoins
    il2cpp:0000000001ADA504                 SUB     SP, SP, #0x40
    il2cpp:0000000001ADA508                 STP     X22, X21, [SP,#0x30+var_20]
    il2cpp:0000000001ADA50C                 STP     X20, X19, [SP,#0x30+var_10]
    ...
    il2cpp:0000000001ADA5B0                 RET

    It just returns the coin count using GetItemCount and Mathf.Max

    I try to patch it like this

    MOV     W0, #99999
    RET

    Or in hex:

    20 0B 80 D2   ; MOV W0, #99999
    C0 03 5F D6   ; RET

    But after patching, the app immediately crashes. The address is correct, and I’m only replacing the start of the function

×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines