Difference between revisions of "FF8/Engine/RE/401000"

From QhimmWiki
Jump to navigation Jump to search
Qhimm>MaKiPL
(Created page with "By MaKiPL ---- '''Custom name''': GetSingletonAddress_A '''Description''': Returns dynamic singleton address ---- '''Arguments''': Int32 A1 - Base address. Called by [[F...")
 
ffrtt>BukTop
m (3 revisions imported)
 
(4 intermediate revisions by 2 users not shown)
Line 2: Line 2:


----
----
'''Custom name''': GetSingletonAddress_A
'''Custom name''': SetFF8Path


'''Description''': Returns dynamic singleton address
'''Description''': Builds and sets root FF8 ('\\ff8\') path. Do not mistake with [[FF8/Engine/RE/4011C0|0x004011C0]]!




Line 10: Line 10:
'''Arguments''':  
'''Arguments''':  


Int32 A1 - Base address. Called by [[FF8/Engine/RE/5081A0|0x005081A0]]. '''Always zero!''' (due to caller)
char[] string - Root path string. Example: ''""\\ff8""''




'''Algorithm''':


return 4 * A1 + 0x1A77410;
'''Edits''':


'''Final algorithm*''':
01A77830 - Paths_1[260]


return 0x1A77410
01A77934 - Paths_2[260]
 
*Because is called only by [[FF8/Engine/RE/5081A0|0x005081A0]], which pushes always 0. Therefore A1=0, and 4*0 is 0.

Latest revision as of 04:22, 23 May 2019

By MaKiPL


Custom name: SetFF8Path

Description: Builds and sets root FF8 ('\\ff8\') path. Do not mistake with 0x004011C0!



Arguments:

char[] string - Root path string. Example: ""\\ff8""


Edits:

01A77830 - Paths_1[260]

01A77934 - Paths_2[260]