Giter Site home page Giter Site logo

Comments (4)

firthm01 avatar firthm01 commented on June 1, 2024

The above two commits will need reverting when this issue is resolved (warnings on website and on repo README)

from ear-production-suite.

merktj avatar merktj commented on June 1, 2024

The const char* LocalizeString(const char* src_string, const char* section, int flagsOptional function is not available in the currently used API v5.961/x64.
In the latest API version it's there.

Is there a reason for using the old API, respectively does something speak against updating it?

from ear-production-suite.

merktj avatar merktj commented on June 1, 2024

The const char* LocalizeString(const char* src_string, const char* section, int flagsOptional got introduced with API v6.10 and updating the API would not ensure backwards compatibility.

The probable easiest way to work around this is to insert the menues directly by their position index, without searching the index by string comparisons.

from ear-production-suite.

firthm01 avatar firthm01 commented on June 1, 2024

The reason we avoided using indexes originally is that anything else that adds menu options itself would throw this out (including new features in future versions of REAPER.)
I think hard-coded indexes would be a good fallback however for when the search strings are not found (rather than the crash it currently causes!) This way, at least if those searched menu items disappear/change name in future versions of REAPER, we still have some way to present our options even if they might end up in the wrong position.
It would probably be good to put in some asserts in there (or some other method of flagging an issue) so that if the search strings are found but the index does not match the hard-coded fallback index, we will be alerted to it and can update them.

from ear-production-suite.

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.