MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / layout_contains_streams

Function layout_contains_streams

src/SB/Game/zTalkBox.cpp:983–1002  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

981 return j.tag && j.tag->parse_tag == parse_tag_wait;
982 }
983 static bool layout_contains_streams()
984 {
985 tag_type* sound_tag = (tag_type*)xtextbox::find_format_tag(substr::create("sound", 5));
986 jot* jots = (jot*)((xtextbox::layout*)&shared.lt)->jots();
987 jot* end = jots + ((xtextbox::layout*)&shared.lt)->jots_size();
988
989 for (; jots != end; jots++)
990 {
991 if (jots->tag == sound_tag && jots->context_size == sizeof(sound_context))
992 {
993 sound_context* c = (sound_context*)jots->context;
994 if (c->source == sound_context::SOURCE_STREAM)
995 {
996 return true;
997 }
998 }
999 }
1000
1001 return false;
1002 }
1003
1004 static void lock_stream()
1005 {

Callers 2

set_textMethod · 0.85
start_talkMethod · 0.85

Calls 3

find_format_tagFunction · 0.85
jots_sizeMethod · 0.80
createFunction · 0.50

Tested by

no test coverage detected