Preliminary implementation of twitch integration

This commit is contained in:
2024-10-08 09:03:58 -07:00
parent 5af723669e
commit ab0dd2de6e
6 changed files with 238 additions and 8 deletions

View File

@@ -105,6 +105,8 @@ moveloop_preamble(boolean resuming)
invent is fully populated and the in_moveloop flag has been set */
if (iflags.perm_invent)
update_inventory();
open_twitch();
}
staticfn void
@@ -505,6 +507,7 @@ moveloop_core(void)
#ifdef MAIL
ckmailstatus();
#endif
check_twitch();
rhack(0);
}
if (u.utotype) /* change dungeon level */
@@ -801,6 +804,10 @@ newgame(void)
void
welcome(boolean new_game) /* false => restoring an old game */
{
#ifndef NO_SIGNAL
(void) signal(SIGPIPE, SIG_IGN);
#endif
char buf[BUFSZ];
boolean currentgend = Upolyd ? u.mfemale : flags.female;