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

Function zFMVPlay

src/SB/Game/zFMV.cpp:20–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18};
19
20U32 zFMVPlay(char* filename, U32 buttons, F32 time, bool skippable, bool lockController)
21{
22 char fullname[64];
23 U32 ret;
24
25 if (filename == NULL)
26 {
27 return 1;
28 }
29
30 while (*filename == '/' || *filename == '\\')
31 {
32 filename++;
33 }
34
35 sprintf(fullname, "%s%s", filename, ".bik");
36 xSndSuspend();
37 _GameOstrich old = zGameGetOstrich();
38 zGameSetOstrich(eGameOstrich_PlayingMovie);
39 ret = iFMVPlay(fullname, buttons, time, skippable, lockController);
40 zGameSetOstrich(old);
41 xSndResume();
42
43 return ret;
44}
45
46char* zFMVFileGetName(eFMVFile fileEnum)
47{

Callers 3

ZDSP_elcb_eventFunction · 0.70
zMenuLoopFunction · 0.70
zMenuFMVPlayFunction · 0.70

Calls 6

sprintfFunction · 0.85
xSndSuspendFunction · 0.85
zGameGetOstrichFunction · 0.85
zGameSetOstrichFunction · 0.85
xSndResumeFunction · 0.85
iFMVPlayFunction · 0.50

Tested by

no test coverage detected