GameScene: Difference between revisions
Jump to navigation
Jump to search
no edit summary
imported>Leoetlino mNo edit summary |
imported>Leoetlino No edit summary |
||
Line 64: | Line 64: | ||
*** KingEditor: Stubbed | *** KingEditor: Stubbed | ||
*** E3Mgr: init | *** E3Mgr: init | ||
== Initial state == | |||
The initial state the game launches into is determined by GameScene<ref>GameScene::initialize, 0x71007A86CC</ref>. | |||
<source lang="cpp"> | |||
const bool isFirstLaunch = SaveSystem::sInstance->isFirstLaunch(); | |||
State* state = isFirstLaunch ? &state_NewSave : &state_LunchTitle; | |||
if ( aocManager::sInstance && aocManager::sInstance->flags & 2 ) | |||
nn::err::ShowUnacceptableAddOnContentVersionError(); | |||
const bool isDemo = E3Mgr::sInstance && E3Mgr::sInstance->isDemoMode(); | |||
if (isDemo) | |||
state = &state_LunchTitle; | |||
if (!isDemo && isFirstLaunch) | |||
sIsFirstNonDemoLaunch = 1; | |||
StateMachine::changeState(&this->stateMachine, state); | |||
</source> | |||
<references/> | |||
[[Category:Internals]] | [[Category:Internals]] | ||
[[Category:Subsystems (BotW)]] | [[Category:Subsystems (BotW)]] |