void Track::Zero() { this->trackId = -1; this->state.reset(); this->num = this->prio = 0; this->ply = nullptr; this->startPos = this->pos = nullptr; std::fill_n(&this->stack[0], FSS_TRACKSTACKSIZE, StackValue()); this->stackPos = 0; memset(this->loopCount, 0, sizeof(this->loopCount)); this->overriding() = false; this->lastComparisonResult = true; this->wait = 0; this->patch = 0; this->portaKey = this->portaTime = 0; this->sweepPitch = 0; this->vol = this->expr = 0; this->pan = 0; this->pitchBendRange = 0; this->pitchBend = this->transpose = 0; this->a = this->d = this->s = this->r = 0; this->modType = this->modSpeed = this->modDepth = this->modRange = 0; this->modDelay = 0; this->updateFlags.reset(); }
void OpcodeC001::_run() { int value = _script->script()->readValue(); // Skip 4 bytes for readed integer value _script->setProgramCounter(_script->programCounter() + 4); _script->dataStack()->push(StackValue(value)); auto& debug = Logger::debug("SCRIPT"); debug << "[C001] [*] push_d integer" << std::endl; debug << " value: " << std::to_string(value) << std::endl; }
void Stack::push(int value) { push(StackValue(value)); }
void Stack::push(const std::string &value) { push(StackValue(value)); }
void Stack::push(Game::Object* value) { push(StackValue(value)); }
void Stack::push(float value) { push(StackValue(value)); }