Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main_SaveProjectEx is not loaded. #71

Open
Levitanus opened this issue Nov 15, 2022 · 2 comments
Open

Main_SaveProjectEx is not loaded. #71

Levitanus opened this issue Nov 15, 2022 · 2 comments

Comments

@Levitanus
Copy link
Contributor

Levitanus commented Nov 15, 2022

I'm not sure, where the issue corresponds to: reaper-low, CPP API or somewhere else.

I definitely used this function from Python 2-3 years ago. And I think, it exists with REAPER at least from the version 5. But now ApiExists("Main_SaveProjectEx") returns false and reaper_low falls by reason the function is not loaded. I'm not sure whether I'm able to investigate this issue.

update: I've checked, that REAPER exports this function on my machine, and it runs from Python.

@helgoboss
Copy link
Owner

I've never used "ApiExists()" and I think it's more intended for dynamic languages than for C++/Rust. In C++ you would simply check if the function pointer is not null. In Rust, this translates to: reaper.low().pointers().Main_SaveProjectEx.is_some()

Bonus: Unlike ApiExists(), it's type-safe :D

@Levitanus
Copy link
Contributor Author

But, the case is not in ApiExists, but in the MainSaveProjectEx, which does not work particularly in rust.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants