-
Notifications
You must be signed in to change notification settings - Fork 101
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
Open source launchpad.c to support C++ compilation #53
Comments
If you open it with a static analyzer (I use ghidra), the binary appears to have all symbols and function names inside (except for local variables) and is modifiable / probably decompilable. Given how slow the responses have been over time, this is probably the better, but tougher bet. |
Hey guys, this is pretty cool, I gave up on my mpk49 pads and purchased the lpp a few months ago and take it everywhere along with my mac book. @Kyran-C I was reading along in the enhancements comments and have modded the crap out of my mpk49 as well and pretty much haven't touched it since getting the lpp. Anyways I will be along for the ride, playing around with the firmware as well. Chat with ya all soon!! |
Didn't have any luck setting up the docker container environment using the info from this github, but this repo worked fine. |
I haven't tested it with the launchpad pro, but you can use extern "C" to as a bridge between the c and c++ code, as noted https://isocpp.org/wiki/faq/mixing-c-and-cpp#call-cpp edit: but +1 would totally love a full compilation without linking to that .a file. |
From what I understand this dude took my firmware and added C++ support to it, as well as his own tweaks. https://github.com/DarioDaF/lpp-performance-cfw |
From my understanding, in order to support C++,
main
needs to be compiled by the C++ compiler. As it stands now, that's precompiled intolaunchpad.a
and linked during build. Would it be possible to refactor things to havelaunchpad.c
compiled by us and maybe have it link to alaunchpad_lib.a
which would have the opaque guts you don't want open sourced? If there's proprietary stuff you don't want public, that could be put into the lib. Alternately, if it's just hidden for simplicity's sake it might be worth exposing so we can do some deeper tinkering.Either way, it'd be really amazing to be able to use templates and member functions and lambdas and bools and function overloads and...
The text was updated successfully, but these errors were encountered: