summaryrefslogtreecommitdiff
path: root/oldStuff/kamek_ntsc_OLD.x
blob: 8e68f21a0a214a62a1d78a91fa72615674b54c45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
OUTPUT_FORMAT ("binary")
SECTIONS {
	_Z15FindActorByType6ActorsP5Actor = 0x80162D50;
	_Z19RetrieveFileFromArcPvPcS0_ = 0x800DF180;
	_Z8OSReportPKcz = 0x8015F730;
	_Z7OSFatal7GXColorS_PKc = 0x801AF5D0;
	
	Player_Active = 0x80354E50;
	Player_ID = 0x80354E60;
	Player_Powerup = 0x80354E70;
	Player_Flags = 0x80354E80;
	Player_Lives = 0x80354E90;
	Player_Coins = 0x80354EA0;
	
	//AllocateMemoryBlock = 0x80162A00;
	EnsureAllArcsAreLoaded = 0x800DF4E0;
	FindRotationController = 0x8002AC00;
	GetObjectName = 0x801017B0;
	GetObjectParent = 0x80162590;
	OSReport = 0x8015F730;
	_Z20CreateParentedObjectsPvic = 0x80162B00;
	_Z47CheckIfMenuShouldBeCancelledForSpecifiedWiimotei = 0x800B53A0;
	_Z21StartTitleScreenStagebi = 0x801017D0;
	_Z17CreateChildObjectsPviii = 0x8006CBA0;
	ObjCreate1 = 0x80162B00;
	ObjCreate2 = 0x80162B20;
	RestoreObjectState = 0x800B0FD0;
	//QueueArcLoad = 0x800DF930;
	RetrieveFileFromArc = 0x800DF180;
	//RetrieveFileFromArcAlt = 0x800DF4B0;
	SearchForItemByClassType = 0x80162D50;
	SpawnSprite = 0x80064610;
	StoreObjectState = 0x800B1100;
	
	_ZN8SaveFile14CheckIfWritingEv = 0x800E0450;
	_Z8SaveGamePvb = 0x8092F5F0;
	
	_Z9DVD_Startv = 0x8006A6F0;
	_Z12DVD_LoadFilePvPcS0_S_ = 0x800DF840;
	_Z12DVD_FreeFilePvPc = 0x800DF130;
	_Z16DVD_StillLoadingPv = 0x800DF4E0;
	_Z7DVD_Endv = 0x8006A760;
	
	_Z22BgTexMng__LoadAnimTilePvisPcS0_c = 0x80087B60; /* same for pal */
	
	_Z12ActivateWipei = 0x800B0DB0;
	
	CurrentDrawFunc = 0x80429F58;
	_Z20GameSetup__LoadScenePv = 0x80919560;
	_Z9FreeScenei = 0x801648B0;
	_Z17GameSetupDrawFuncv = 0x80917990;
	
	memcpy = 0x80004364;
	memset = 0x800046B4;
	strncat = 0x802E1A68;
	strncpy = 0x802E19F8;
	strcmp = 0x802E1AB4;
	sprintf = 0x802E17DC;
	
	wcslen = 0x802E441C;
	
	/* Note: subtracting 0x140 from a PAL code address USUALLY works
	 * but check it in IDA first
	 */
	
	//IOS_Open = 0x80224DB0;
	//IOS_Close = 0x80224FA0;
	//IOS_Seek = 0x80225550;
	//IOS_Read = 0x80225150;
	//IOS_Write = 0x80225360;
	
	_Z23QueryPlayerAvailabilityi = 0x800B4710;
	_Z12DoStartLevelPvP10StartLevel = 0x800BB780;
	_Z20SetSomeConditionShitiij = 0x801026D0;
	_Z8WpadShiti = 0x8016F640;
	_Z32CheckIfContinueShouldBeActivatedv = 0x800B52F0;
	_Z24SearchForIndexOfPlayerIDi = 0x80060110;
	
	_Z18AllocFromGameHeap1j = 0x801628C0;
	_Z17FreeFromGameHeap1Pv = 0x80162920;
	
	_Z24DVDConvertPathToEntrynumPKc = 0x801CA680;
	_Z11DVDFastOpeniP9DVDHandle = 0x801CA990;
	_Z11DVDReadPrioP9DVDHandlePviii = 0x801CAB20;
	_Z8DVDCloseP9DVDHandle = 0x801CAA00;
	
	_ZN8SaveFile8GetBlockEi = 0x800E0380;
	_ZN8SaveFile10GetQSBlockEi = 0x800E03B0;
	
	_ZN9SaveBlock17GetLevelConditionEii = 0x800CE3A0;
	
	_Z20CheckIfWeCantDoStuffv = 0x8076DB90;
	_Z15QueryGlobal5758j = 0x800B3B50;
	
	_Z16EGG__Heap__allocmiPv = 0x802B8CC0;
	_Z15EGG__Heap__freePvS_ = 0x802B8F70;
	
	_Z19lyt__Layout__LayoutPv = 0x802ACB40;
	_Z15lyt__Layout__dtPvi = 0x802ACB80;
	_Z18lyt__Layout__BuildPvPKvS_ = 0x802ACCB0;
	
	_Z23lyt__DrawInfo__DrawInfoPv = 0x802B4D30;
	_Z17lyt__DrawInfo__dtPvi = 0x802B4DB0;
	
	_Z47nsmbw__ArcResourceAccessor__ArcResourceAccessorPv = 0x802B6620;
	_Z30nsmbw__ArcResourceAccessor__dtPvi = 0x80006930;
	_Z31nsmbw__ArcResourceAccessor__SetPvS_PKc = 0x802B6680;
	_Z39nsmbw__ArcResourceAccessor__GetResourcePvmPKcPm = 0x80006A50;
	
	_Z8IOS_OpenPKcj = 0x80224C70;
	_Z9IOS_WriteiPKvi = 0x80225410;
	_Z9IOS_Closei = 0x80224E60;
	
	LayoutHelper_Link = 0x80163660;
	
	_Z19EmbeddedLayout_ctorP6Layout = 0x800C8950;
	_Z19EmbeddedLayout_dtorP6Layoutb = 0x800C89A0;
	_Z19EmbeddedLayout_FreeP6Layout = 0x800C9930;
	_Z25EmbeddedLayout_LoadBrlansP6LayoutPPKci = 0x800C8FB0;
	_Z25EmbeddedLayout_LoadGroupsP6LayoutPPKcPii = 0x800C90F0;
	_Z38EmbeddedLayout_ResetAnimToInitialStateP6Layoutib = 0x800C93D0;
	_Z22EmbeddedLayout_ProcessP6Layout = 0x800C9560;
	_Z28EmbeddedLayout_AddToDrawListP6Layout = 0x80163850;
	_Z32EmbeddedLayout_EnableNonLoopAnimP6Layoutib = 0x800C92F0;
	_Z29EmbeddedLayout_EnableLoopAnimP6Layouti = 0x800C9380;
	_Z30EmbeddedLayout_DisableAllAnimsP6Layout = 0x800C9500;
	_Z35EmbeddedLayout_CheckIfAnimationIsOnP6Layouti = 0x800C9610;
	_Z29EmbeddedLayout_FindPaneByNameP6LayoutPKc = 0x80007300;
	_Z32EmbeddedLayout_FindTextBoxByNameP6LayoutPKc = 0x80007320;
	
	_Z7sprintfPcPKcz = 0x802E17DC;
	_Z8snprintfPciPKcz = 0x802E16E8;
	
	.text : {
		FILL (0)
		
		__text_start = . ;
		*(.init)
		*(.text)
		*(.ctors)
		*(.dtors)
		*(.rodata)
		*(.sdata)
		*(.sbss)
		*(.fini)
		*(.rodata.*)
		__text_end  = . ;
	}
}