Ticket #8129: simon-startup.diff

File simon-startup.diff, 1.3 KB (added by eriktorbjorn, 21 years ago)

Patch against a November 14 CVS snapshot

  • scummvm/simon/simon.cpp

    diff -ur ScummVM-cvs20021114/scummvm/simon/simon.cpp ScummVM-cvs20021114+hack/scummvm/simon/simon.cpp
    old new  
    47354735#endif
    47364736#ifdef USE_MAD
    47374737                        if (_voice_type == FORMAT_MP3) {
    4738                                 uint8 buf[2048];
    4739                                 uint32 pos = 0;
    4740                                 _voice_file->seek(0, SEEK_SET);
    4741                                 while ((_voice_file->read(buf, 2048)) > 0) {
    4742                                         if (pos == _voice_file->pos())
    4743                                                 break;
    4744                                         pos = _voice_file->pos();
    4745                                 }
    4746                                 _voice_offsets[gss->NUM_EFFECTS_RESOURCES] = pos;
     4738                                _voice_file->seek(0, SEEK_END);
     4739                                _voice_offsets[gss->NUM_EFFECTS_RESOURCES] = _voice_file->pos();
    47474740                        }
    47484741#endif
    47494742                }
     
    47894782#endif
    47904783#ifdef USE_MAD
    47914784                        if (_effects_type == FORMAT_MP3) {
    4792                                 uint8 buf[2048];
    4793                                 uint32 pos = 0;
    4794                                 _effects_file->seek(0, SEEK_SET);
    4795                                 while ((_effects_file->read(buf, 2048)) > 0) {
    4796                                         if (pos == _effects_file->pos())
    4797                                                 break;
    4798                                         pos = _effects_file->pos();
    4799                                 }
    4800                                 _effects_offsets[gss->NUM_EFFECTS_RESOURCES] = pos;
     4785                                _effects_file->seek(0, SEEK_END);
     4786                                _effects_offsets[gss->NUM_EFFECTS_RESOURCES] = _effects_file->pos();
    48014787                        }
    48024788#endif
    48034789                } else {