void Script::o_videofromstring1() { uint16 instStart = _currentInstruction; uint16 fileref = getVideoRefString(); // Show the debug information just when starting the playback if (fileref != _videoRef) { debugScript(0, true, "VIDEOFROMSTRING1 0x%04X", fileref); } // Play the video if (!playvideofromref(fileref)) { // Move _currentInstruction back _currentInstruction = instStart - 1; } }
void Script::o_videofromstring2() { uint16 instStart = _currentInstruction; uint32 fileref = getVideoRefString(); // Show the debug information just when starting the playback if (fileref != _videoRef) { debugScript(0, true, "VIDEOFROMSTRING2 0x%04X", fileref); } // Set bit 1 _bitflags |= 1 << 1; // Set bit 2 if _firstbit if (_firstbit) { _bitflags |= 1 << 2; } // Play the video if (!playvideofromref(fileref)) { // Move _currentInstruction back _currentInstruction = instStart - 1; } }