X-Hax / sa2-mod-loader

Sonic Adventure 2 PC Mod Loader
47 stars 16 forks source link

Add Kart Missions Ranks to SA2Variables.h #28

Closed AlexOxorn closed 3 years ago

AlexOxorn commented 3 years ago

Added variable in SA2Variables.h for the LevelRankTimes of Routes 101 and 280. It is represented as an array of length 10, with the indexes representing as followed [0 - 4]: 101 Mission 1 - 5 [5 - 9]: 280 Mission 1 - 5

kellsnc commented 3 years ago

I think it's 2 arrays of 5 elements

The asm code directly accesses 173B3A5:

v3 = stru_173B3A5;
if ( !v2 )
{
    v3 = stru_173B378;
}

Can you split your table in two? Thanks :)

AlexOxorn commented 3 years ago

If you don't mind me asking, how did you get/find the assembler snippet?

kellsnc commented 3 years ago

Thanks!

I use IDA to look at the assembly code, pressing x on the table address brings you to where it's used.