/[svn]/libgig/trunk/src/gig.cpp
ViewVC logotype

Diff of /libgig/trunk/src/gig.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2599 by schoenebeck, Sat Jun 7 00:00:10 2014 UTC revision 2602 by schoenebeck, Sat Jun 7 22:28:04 2014 UTC
# Line 4094  namespace { Line 4094  namespace {
4094              for (int i = 0; i < nameSize; ++i)              for (int i = 0; i < nameSize; ++i)
4095                  Name[i] = ckScri->ReadUint8();                  Name[i] = ckScri->ReadUint8();
4096              // to handle potential future extensions of the header              // to handle potential future extensions of the header
4097              ckScri->SetPos(headerSize - 6*sizeof(int32_t) + nameSize, RIFF::stream_curpos);              ckScri->SetPos(sizeof(int32_t) + headerSize);
4098              // read actual script data              // read actual script data
4099              uint32_t scriptSize = ckScri->GetSize() - ckScri->GetPos();              uint32_t scriptSize = ckScri->GetSize() - ckScri->GetPos();
4100              data.resize(scriptSize);              data.resize(scriptSize);
# Line 4179  namespace { Line 4179  namespace {
4179          this->pGroup = pGroup;          this->pGroup = pGroup;
4180      }      }
4181    
4182        /**
4183         * Returns the script group this script currently belongs to. Each script
4184         * is a member of exactly one ScriptGroup.
4185         *
4186         * @returns current script group
4187         */
4188        ScriptGroup* Script::GetGroup() const {
4189            return pGroup;
4190        }
4191    
4192      void Script::RemoveAllScriptReferences() {      void Script::RemoveAllScriptReferences() {
4193          File* pFile = pGroup->pFile;          File* pFile = pGroup->pFile;
4194          for (int i = 0; pFile->GetInstrument(i); ++i) {          for (int i = 0; pFile->GetInstrument(i); ++i) {

Legend:
Removed from v.2599  
changed lines
  Added in v.2602

  ViewVC Help
Powered by ViewVC