MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / AsMenuOption

Method AsMenuOption

Source/SysPSP/UI/MainMenuScreen.cpp:157–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157EMenuOption IMainMenuScreen::AsMenuOption( s32 option )
158{
159 s32 m( option % s32(NUM_MENU_OPTIONS) );
160 if( m < 0 )
161 m += NUM_MENU_OPTIONS;
162
163#ifdef DAEDALUS_ENABLE_ASSERTS
164 DAEDALUS_ASSERT( m >= 0 && m < (s32)NUM_MENU_OPTIONS, "Whoops" );
165#endif
166 return EMenuOption( m );
167}
168
169
170s32 IMainMenuScreen::GetPreviousValidOption() const

Callers

nothing calls this directly

Calls 1

EMenuOptionEnum · 0.70

Tested by

no test coverage detected