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

Method start

src/Osako/LANSelectMode.cpp:830–852  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

828}
829
830void LANSelectMode::start(bool p1) {
831 _4 = p1;
832
833 if (_4) {
834 GetGameAudioMain()->startSequenceBgm(0x1000002);
835 }
836
837 if (mItemIdx != 0) {
838 mItems[mItemIdx]->unselect();
839 mItemIdx = 0;
840 }
841 mItems[mItemIdx]->selectOut();
842 mState = 1;
843 mAnmFrame = 0;
844 gLANPlayInfo.resumeInfo(this);
845 for (int i = 0; i < 7; i++) {
846 mItems[i]->update();
847 directView(i);
848 }
849
850 MenuTitleLine::ptr()->drop(MenuTitleLine::mcSelectMode);
851 SYSTEM_StartFadeIn(15);
852}
853
854void LANSelectMode::setDisplayMax() {
855 if (NetGameMgr::ptr()->getNetworkCubes() > 4) {

Callers

nothing calls this directly

Calls 5

startSequenceBgmMethod · 0.80
unselectMethod · 0.45
selectOutMethod · 0.45
updateMethod · 0.45
dropMethod · 0.45

Tested by

no test coverage detected