add dedicated stopAll()

should not change abi
This commit is contained in:
Green Sky
2025-04-11 20:46:50 +02:00
parent e25ee67e42
commit d03d2dae67
4 changed files with 27 additions and 9 deletions

View File

@@ -22,6 +22,8 @@ struct Plugin {
void* _fn_tick = nullptr;
void* _fn_render = nullptr;
bool _running = false;
void* loadSymbol(const char* name);
// loads lib and gets name (and version)
@@ -32,12 +34,11 @@ struct Plugin {
// unloads the plugin
~Plugin(void);
// runs the start function
uint32_t start(SolanaAPI* solana_api) const;
uint32_t start(SolanaAPI* solana_api);
// stop function
void stop(void) const;
void stop(void);
// update functions
float tick(float delta) const;