main: fix game exiting after intro

Broken by bad copypaste in e6fffc6b5f
This commit is contained in:
Andrei Alexeyev 2023-05-19 20:17:18 +02:00
parent e75762c520
commit a842150d6d
No known key found for this signature in database
GPG key ID: 72D26128040B9690

View file

@ -401,6 +401,7 @@ static void main_post_vfsinit(CallChainResult ccr) {
#endif
CallChain cc_cleanup = CALLCHAIN(main_cleanup, ctx);
CallChain cc_mainmenu = CALLCHAIN(main_mainmenu, ctx);
if(ctx->cli.type == CLI_QuitLate) {
run_call_chain(&cc_cleanup, NULL);
@ -434,12 +435,12 @@ static void main_post_vfsinit(CallChainResult ccr) {
#endif
if(!progress_is_cutscene_unlocked(CUTSCENE_ID_INTRO) || ctx->cli.force_intro) {
cutscene_enter(cc_cleanup, CUTSCENE_ID_INTRO);
cutscene_enter(cc_mainmenu, CUTSCENE_ID_INTRO);
eventloop_run();
return;
}
run_call_chain(&CALLCHAIN(main_mainmenu, ctx), NULL);
run_call_chain(&cc_mainmenu, NULL);
eventloop_run();
}