~ubuntu-branches/ubuntu/trusty/rlvm/trusty

« back to all changes in this revision

Viewing changes to src/MachineBase/RLMachine.cpp

  • Committer: Package Import Robot
  • Author(s): Ying-Chun Liu (PaulLiu)
  • Date: 2013-11-02 02:57:13 UTC
  • mfrom: (10.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20131102025713-yzg31grxr8i7xerh
Tags: 0.13-1
* New upstream release
  - rlvm will now warn on startup when it detects Japanese save data, but
    English patched game files, and offer to reset the save data.
  - Much better support for Little Busters. Most graphical glitches during
    the Little Busters Refrain have been fixed.
  - TCC tone curve effects have been reverse-engineered and implemented
    (thanks to lurkmoar)
  - Sepia scenes (and other graphical filters) should look much better.
  - Simple shake commands implemented (fancy per-layer shaking still
    unimplemented).
  - Make animations smooth: data should be uploaded to the graphics card
    before an animation loop starts, not while the animation loop is
    running.
  - Fixes finding system fonts on Linux
  - Thanks to Elliot Glaysher <glaysher@umich.edu>
* Remove upstreamed patches:
  - debian/patches/002_675426ad62bccf1de10b0ae31dd46331ec47aacb.patch
  - debian/patches/003_5dafabf5448635c4d4526d6e35ea7ec664a27261.patch
  - debian/patches/004_boost-drop-mt.patch
  - debian/patches/005_missing-include.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
193
193
  memory_->setStringValue(type, number, value);
194
194
}
195
195
 
 
196
void RLMachine::HardResetMemory() {
 
197
  memory_.reset(new Memory(*this, system().gameexe()));
 
198
}
 
199
 
196
200
void RLMachine::markSavepoint() {
197
201
  savepoint_call_stack_ = call_stack_;
198
202
  memory_->takeSavepointSnapshot();
337
341
  if (it != modules_.end()) {
338
342
    it->second->dispatchFunction(*this, f);
339
343
  } else {
340
 
    throw rlvm::UnimplementedOpcode(f.modtype(), f.module(), f.opcode(),
341
 
                                    f.overload());
 
344
    throw rlvm::UnimplementedOpcode(*this, f);
342
345
  }
343
346
}
344
347
 
546
549
  return call_stack_.back().scenario->encoding();
547
550
}
548
551
 
 
552
int RLMachine::getProbableEncodingType() const {
 
553
  return archive_.getProbableEncodingType();
 
554
}
 
555
 
549
556
void RLMachine::performTextout(const TextoutElement& e) {
550
557
  std::string unparsed_text = e.text();
551
558
  if (boost::starts_with(unparsed_text, SeenEnd)) {
573
580
  // Display UTF-8 characters
574
581
  auto_ptr<TextoutLongOperation> ptr(new TextoutLongOperation(*this, utf8str));
575
582
 
576
 
  if (system().fastForward() || ts.messageNoWait())
 
583
  if (system().fastForward() || ts.messageNoWait() || ts.scriptMessageNowait())
577
584
    ptr->setNoWait();
578
585
 
579
586
  pushLongOperation(ptr.release());