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

From Final Fantasy Inside
< FF8
Jump to navigation Jump to search
my_wiki>MaKiPL
(Created page with "By MaKiPL ---- '''Custom name''': GetSingletonAddress_A '''Description''': Returns dynamic singleton address ---- '''Arguments''': Int32 A1 - Base address. Called by [[F...")
 
my_wiki>MaKiPL
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.
 

Revision as of 18:58, 23 April 2016

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]