Skip to content

Commit 597e363

Browse files
committed
Add split for text_00272F50, text_00296818
1 parent 591f8d3 commit 597e363

40 files changed

Lines changed: 664 additions & 556 deletions

configs/main.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ segments:
162162
- [0x170BA0, cpp, FGDK3/Code/Playstation2/sifManager]
163163
- [0x170FB8, cpp, text_0026FFB8] # shape.cpp?
164164
- [0x172A20, cpp, text_00271A20]
165+
- [0x173F50, cpp, text_00272F50] # beginning of RunPath.cpp?
165166
- [0x176FF8, cpp, text_00275FF8]
166167
- [0x1785D0, cpp, text_002775D0] # beginning of RelRecv.cpp?
167168
- [0x17A880, cpp, FGDK3/Code/NavGraphRes] # navgraph functions
@@ -175,6 +176,7 @@ segments:
175176
- [0x191F58, cpp, text_00290F58]
176177
- [0x1975D0, cpp, FGDK3/Code/Location]
177178
- [0x197670, cpp, FGDK3/Code/Playstation2/IOPMem]
179+
- [0x197818, cpp, text_00296818]
178180
- [0x198578, cpp, text_00297578]
179181
- [0x1A2D88, cpp, text_002A1D88]
180182
- [0x1A59A0, cpp, FGDK3/Code/Playstation2/GE_RenderHardware]
@@ -347,6 +349,7 @@ segments:
347349
- [0x33CAD0, .rodata, FGDK3/Code/Playstation2/sifManager]
348350
- [0x33CBC0, .rodata, text_0026FFB8]
349351
- [0x33CE40, .rodata, text_00271A20] # SavedGame
352+
- [0x33CE68, .rodata, text_00272F50]
350353
#- [0x33CE68, .rodata, FGDK3/Code/Playstation2/RunPath]
351354
#- [0x33CEE0]
352355
- [0x33D280, .rodata, text_00275FF8]
@@ -361,6 +364,7 @@ segments:
361364
- [0x33FAF0, .rodata, text_00290F58]
362365
- [0x33FC60, .rodata, FGDK3/Code/Location]
363366
- [0x33FC70, .rodata, FGDK3/Code/Playstation2/IOPMem]
367+
- [0x33FCB8, .rodata, text_00296818]
364368
- [0x33FE30, .rodata, text_00297578]
365369
- [0x340250, .rodata, text_002A1D88]
366370
- [0x340320, .rodata, FGDK3/Code/Playstation2/GE_RenderHardware]

configs/sym.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,6 +1105,7 @@ __19Resource_LayoutUnitP19Resource_LayoutUnit = 0x00273D08; // type:func
11051105
_$_19Resource_LayoutUnit = 0x00273D28; // type:func
11061106
_$_22Resource_LayoutOverlay = 0x00273F68; // type:func
11071107
func_00274200__22Resource_LayoutOverlay = 0x00274200; // type:func
1108+
func_00274400__22Resource_LayoutOverlay = 0x00274400; // type:func
11081109
_$_20Resource_LayoutGroup = 0x00274680; // type:func
11091110
//func_00275288 = 0x00275288; // type:func
11101111

@@ -1187,6 +1188,7 @@ __tf12CreateAction = 0x00288440;
11871188
__16MenuRegisterable = 0x002887E8; // type:func
11881189

11891190
// MultiStream SDK
1191+
SOUND_InitIOP = 0x00288B30; // type:func
11901192
SOUND_StartCommand = 0x00288D60; // type:func
11911193
SOUND_EndCommand = 0x00288DC0; // type:func
11921194
SOUND_AddData = 0x00288F50; // type:func

include/Dogs/Console.h

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@
55
#include <stdarg.h>
66
#include <eekernel.h>
77

8-
#include "Game.h"
8+
//
99

1010
typedef struct {
1111
/* 0x120 */ int m_lines;
1212
// 0x124 scroll
1313
/* 0x13C */ bool m_textEnabled;
14-
} consoleStruct;
14+
} s_func_001A0628; // consoleStruct
1515

1616
#ifdef __cplusplus
1717
extern "C" {
1818
#endif
1919
void func_001A0810(void);
2020
void func_001A0900(void);
2121
void func_001A0968(void*, int);
22-
void func_001A0B08(consoleStruct*, int, char*);
23-
void func_001A0D80(int, int, int);
24-
void func_001A0B90(int, char*, int);
22+
void func_001A0B08(s_func_001A0628*, int, char*);
23+
void func_001A0D80(s_func_001A0628*, int, int);
24+
void func_001A0B90(s_func_001A0628*, char*, int);
2525

2626

2727
void func_001A12A0(char arg0, int arg1);
@@ -91,17 +91,17 @@ int func_001AADF8(void);
9191

9292
class Console {
9393
public:
94-
void Help(consoleStruct*);
95-
void Time(consoleStruct*);
96-
void ListActors(consoleStruct*);
97-
void ToggleDebugConsole(consoleStruct*);
94+
void Help(s_func_001A0628*);
95+
void Time(s_func_001A0628*);
96+
void ListActors(s_func_001A0628*);
97+
void ToggleDebugConsole(s_func_001A0628*);
9898
void Break();
99-
void Save(consoleStruct*);
100-
void Load(consoleStruct*);
101-
void IsMediaReady(consoleStruct*);
102-
void DirMemCard(consoleStruct*);
103-
void FormatMemCard(consoleStruct*);
104-
void UnformatMemCard(consoleStruct*);
99+
void Save(s_func_001A0628*);
100+
void Load(s_func_001A0628*);
101+
void IsMediaReady(s_func_001A0628*);
102+
void DirMemCard(s_func_001A0628*);
103+
void FormatMemCard(s_func_001A0628*);
104+
void UnformatMemCard(s_func_001A0628*);
105105
void TestDoggyDoAnims();
106106
void Parse();
107107
void Patch();

include/Dogs/Dog.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Dog : public WorldObject/*, public Jump_IF, public AnimationMovedObject_IF
2828
int unk85C;
2929
float unk868; // status bone height
3030
// 0x86C float boneScale
31-
// 0x870 float boneRotation
31+
// 0x870 float boneRotation (radians)
3232

3333
union {int i;float f;} unkB0C; // shinyness/wetness? (set to 0 when entering water, increases when out of water)
3434
float unkB10; // time in water? (-1 when out of water)

include/Dogs/Game.h

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
#include "FGDK3/GameShell.h"
99
#include "Dogs/Lights.h"
1010

11+
#include "text_001B07A8.h"
12+
13+
#include "Dogs/Console.h"
14+
15+
#include "Dogs/GameState.h"
16+
#include "Dogs/Scent.h"
1117

1218
typedef struct {
1319
char unk0[0x4F8];
@@ -26,8 +32,8 @@ typedef struct {
2632
float unk24;
2733
float unk28;
2834
/* 0x2C */ int m_language;
29-
} s_Game_Document_584;
30-
// constructed by 001B1FA8
35+
} s_func_001B1FA8; // settings
36+
3137

3238
extern void * const Game_StdInit_UsedModules[];
3339

@@ -56,7 +62,9 @@ class Game_Document : public GameShell, public WorldObject_Universe, public DogS
5662
int unk1D8;
5763
int unk1DC;
5864
//
59-
s_0044EB68_1E0* unk1E0;
65+
s_func_0023E698* unk1E0;
66+
s_func_00154120* unk1E4;
67+
6068
//
6169
int unk1E8;
6270
bool unk1EC; // musicEnabled?
@@ -66,7 +74,8 @@ class Game_Document : public GameShell, public WorldObject_Universe, public DogS
6674
int unk1FC; // script thread profiling actorId
6775
int unk200;
6876
int unk204;
69-
// 0x3E0 GameDesktop (virtualdesktop)
77+
// 0018b528 unk210?
78+
GameDesktop* unk3E0;
7079
int unk3E8;
7180
int unk3EC;
7281
int unk3F0; // windowed mode?
@@ -88,13 +97,14 @@ class Game_Document : public GameShell, public WorldObject_Universe, public DogS
8897
/* 0x4F0 */ bool m_renderHitSpheres;
8998
int unk4F4; // navcells actorId
9099
int unk4F8; // navcells thing
91-
// 0x4FC GameStateReq?
100+
s_func_001D8328* unk4FC;
92101
int unk500;
93-
int unk504;
102+
s_func_001A0628* unk504;
94103
//
95104
ShapeInstance unk51C; // backdrop (sky)
96-
int* unk550;
97-
//
105+
s_func_001B07A8* unk550;
106+
s_func_001B0B90* unk554;
107+
s_func_001B11E0* unk558;
98108
bool unk55C; // makes speech/music quieter?
99109
int unk560;
100110
float unk564;
@@ -105,7 +115,8 @@ class Game_Document : public GameShell, public WorldObject_Universe, public DogS
105115
int unk578;
106116
int unk57C; // current collar
107117
int unk580;
108-
s_Game_Document_584* unk584; // settings
118+
s_func_001B1FA8* unk584; // settings
119+
109120
float unk588;
110121
float unk58C;
111122
float unk5A0;
@@ -133,12 +144,12 @@ class SimObj_FilterFlagsAndEq : public SimObj_Filter {
133144
/* virtual */ int func_001D6B40();
134145
};
135146

136-
const char* func_001B2470(s_Game_Document_584*, int);
137-
const char* func_001B24F8(s_Game_Document_584*);
138-
const char* func_001B2578(s_Game_Document_584*);
139-
void func_001B25F8(s_Game_Document_584*);
140-
void func_001B2620(s_Game_Document_584*);
141-
void func_001B2640(s_Game_Document_584*, int);
147+
const char* func_001B2470(s_func_001B1FA8*, int);
148+
const char* func_001B24F8(s_func_001B1FA8*);
149+
const char* func_001B2578(s_func_001B1FA8*);
150+
void func_001B25F8(s_func_001B1FA8*);
151+
void func_001B2620(s_func_001B1FA8*);
152+
void func_001B2640(s_func_001B1FA8*, int);
142153

143154
#ifdef __cplusplus
144155
extern "C" {
@@ -149,6 +160,7 @@ s_func_001C6DC8* func_001C6DC8(Game_Document*);
149160
void func_001C8120(void);
150161
bool func_001C8128();
151162
void func_001C88D0(Game_Document*, int level, int gate);
163+
void func_001CA000(Game_Document*, bool);
152164
void func_001CCE58(Game_Document*);
153165
void func_001D1F70(Game_Document*);
154166
void func_001D22B0(Game_Document*, int level, int gate);

include/Dogs/GameState.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ class FadeOutReq : public GameState::GameStateReq {
110110
//func_001DA070
111111
};
112112

113+
typedef struct {
114+
115+
} s_func_001D8328; // inherits SwitchViewReq?
116+
113117
#ifdef __cplusplus
114118
extern "C" {
115119
#endif

include/Dogs/Scent.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33

44
#include "SimObj.h"
55

6+
typedef struct {
7+
8+
} s_func_00154120;
9+
610
class Scent : public SimObject {
711
public:
812
float unk114;

include/FGDK3/GameShell.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class GameShell {
1111
long unk8;
1212
/* 0x10 */ float m_deltaTime;
1313
/* 0x14 */ float m_gameSpeed; // normally set to 0.125f, see also 0x1C4 in Game_Document
14-
void* unk18;
14+
void* unk18; // s_func_002fa8e8?
1515
/* 0x1C */ bool m_disabled;
1616
// 0x20 float m_currentFps
1717
// 0x24 float m_frameTime

include/FGDK3/NavGraphRes.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
#define NAVGRAPHRES_H
33

44
#include "FGDK3/Playstation2/Thread.h"
5-
#include "ThrowCat.h"
6-
#include "RelRecv.h"
75

86
extern void * const NavGraphRes_StdInit_UsedModules[];
97

include/FGDK3/Playstation2/IOPMem.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,12 @@ void IOPMem_InternalFinalise();
1010
Status IOPMem_Initialise();
1111
void IOPMem_Finalise();
1212

13+
#ifdef __cplusplus
14+
extern "C" {
1315
#endif
16+
void func_002967C8(void* arg0, int arg1);
17+
#ifdef __cplusplus
18+
}
19+
#endif
20+
21+
#endif /* IOPMEM_H */

0 commit comments

Comments
 (0)