2024-01-25 8:04 AM
I'm trying to develop a simple Flash tool for my company using the CubeProgrammer_API.dll.
I got most things working so far, but I can't get the External Loaders to work.
CubeProgrammer_API exposes some functions like:
But ther is no place to pass a specific loader to a function like 'downloadFile' or to select one of the 91 Loaders provided by CubeProgrammer.
How can I select one loader for my project using the CubeProgrammer_API?
2026-01-16 10:04 PM
First off, I understand that this is an old thread, but seeing as there is literally no other answer to this on the entire internet and the API documentation is awful at best. I have to respond with the solution after facing the same issue.
So the way you select an external loader file through the API is with the setExternalLoaderPath() function.
The documentation states that this function takes a folder path, which is incorrect, it takes a *.stldr file path.
Keep in mind that the function will NOT work if your path points to a file in the ExternalLoader directory (it didn't for me anyway, just returned null).
Your best bet is to keep your loader file in the same directory as your exe and then just pass "./Loader.stldr" to the function and check the externalLoader pointer for a null. You do not need to do anything else with the returning pointer. Just run your downloadFile function or anything else you need. call removeExternalLoader when you want to switch to another loader.