MCPcopy Create free account
hub / github.com/doldecomp/mkdd / DoPort

Method DoPort

src/Yamamoto/kartCamera.cpp:170–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170void KartCam::DoPort(int camNo)
171{
172
173 if (RaceMgr::getCurrentManager()->isCrsDemoMode())
174 {
175 mPtr = 0;
176 SetStartDemoPort();
177 }
178 else if (RaceMgr::getCurrentManager()->isAwardDemoMode())
179 {
180 mPtr = 0;
181 SetAwardDemoPort();
182 }
183 else
184 {
185 switch (RaceMgr::getCurrentManager()->getCameraNumber())
186 {
187 case 1:
188 {
189 mPtr = 0;
190 SetOneScreenPort();
191 break;
192 }
193 case 2:
194 {
195 if (RaceMgr::getCurrentManager()->isSubScrExist())
196 {
197 switch (camNo)
198 {
199 case 0:
200 mPtr = 0;
201 SetOneScreenPort();
202 break;
203 case 1:
204 mPtr = 7;
205 SetSubScreenPort();
206 break;
207 }
208 }
209 else
210 {
211 switch (camNo)
212 {
213 case 0:
214 mPtr = 1;
215 SetTwoScreenPort(0);
216 break;
217 case 1:
218 mPtr = 2;
219 SetTwoScreenPort(1);
220 break;
221 }
222 }
223 break;
224 }
225 case 3:
226 case 4:
227 {

Callers 2

DynamicsInitMethod · 0.80
DynamicsResetMethod · 0.80

Calls 15

get2DScisWFunction · 0.85
get2DScisHFunction · 0.85
get2DScisXFunction · 0.85
get2DScisYFunction · 0.85
get2DVpWFunction · 0.85
get2DVpHFunction · 0.85
get2DVpXFunction · 0.85
get2DVpYFunction · 0.85
getOrthoLFunction · 0.85
getOrthoRFunction · 0.85
getOrthoTFunction · 0.85
getOrthoBFunction · 0.85

Tested by

no test coverage detected