Join Friend on Game Launch [Star / Riidefi]
#1
Join Friend on Game Launch [Star / Riidefi]

This code joins a specified friend on a specified license when the game is launched.

(NTSC-U)
C2008ED0 00000008
38800002 908D93E8
48000021 00000000
00000000 2D733133
32202D6C 30202D70
32373420 2D723000
7C8802A6 38A40008
90A40004 908D93EC
60000000 00000000

(PAL)
C2008F10 00000008
38800002 908D93E8
48000021 00000000
00000000 2D733133
32202D6C 30202D70
32373420 2D723000
7C8802A6 38A40008
90A40004 908D93EC
60000000 00000000

(NTSC-J)
C2008E6C 00000008
38800002 908D93E8
48000021 00000000
00000000 2D733133
32202D6C 30202D70
32373420 2D723000
7C8802A6 38A40008
90A40004 908D93EC
60000000 00000000

(NTSC-K)
C2009060 00000008
38800002 908D9408
48000021 00000000
00000000 2D733133
32202D6C 30202D70
32373420 2D723000
7C8802A6 38A40008
90A40004 908D940C
60000000 00000000

Code:
#============================================================#
#                           Source                           #
#------------------------------------------------------------#
# System::RKSystem::main(int argc, char*[] argv):            #
# RMCE - 0x80008ED0                                          #
# RMCP - 0x80008F10                                          #
# RMCJ - 0x80008E6C                                          #
# RMCK - 0x80009060                                          #
#============================================================#

.set region, ''

# argc
li        r4, 2

.if       (region == 'E' || region == 'P' || region == 'J')
          stw       r4, -0x6C18(r13)
.elseif   (region == 'K')
          stw       r4, -0x6BF8(r13)
.else     # Invalid region
          .abort
.endif

# argv
bl        branch_link_write_argv_data
.long     0x00000000
.long     0x00000000
.string   "-s132 -l0 -p274 -r0" # s = section; l = license; p = page; r = friend
branch_link_write_argv_data:
mflr      r4
addi      r5, r4, 8
stw       r5, 4(r4)

.if       (region == 'E' || region == 'P' || region == 'J')
          stw       r4, -0x6C14(r13)
.else     # NTSC-K
          stw       r4, -0x6BF4(r13)
.endif

Notes:
- The l argument specifies which license is to be used (0 - 3).
- The r argument specifies which friend is to be joined (0 - 29).

Code Creators: Star, Riidefi
[Image: GiVNKqR.png]
Reply
#2
How can I make it so it instantly goes online but doesn't join a friend?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)