Code Monkey home page Code Monkey logo

Comments (4)

jpcima avatar jpcima commented on August 20, 2024

There might be a defect in the save & load mechanism.
That depends whether the host uses a weird sequence to interact with the plugin (I've never tried OpenMPT before).

following a quick examination of source code, the following sequence might create a problem

  1. host does NOT initialize processor (prepareToPlay not called)
  2. host restores state data (OK)
  3. host requests current state data (FAIL when not initialized at step 1, returns empty)
  4. host restores state data again (FAIL, replacing last_state_information_ with empty from step 3)

So I would think step 3 needs fixing at this location;
the state data should be filled from previous state info from step 2.

Player *pl = player_.get();
if (!pl)
return;

All this is just guessing, but we can give a quick try.

from adlplug.

jpcima avatar jpcima commented on August 20, 2024

https://ci.appveyor.com/project/jpcima/adlplug/builds/41901596

Retry one of these builds if you don't mind.
Under one of the mingw 32 or 64-bit builds, artifacts tab.

from adlplug.

brickblock369 avatar brickblock369 commented on August 20, 2024

Ah, that version seems to fix it! Thanks!

from adlplug.

jpcima avatar jpcima commented on August 20, 2024

Great, thanks for the feedback.

from adlplug.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.