mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-29 08:20:02 -05:00
feat: Added support for writing scripts in Python
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
#include <loaders/loader.hpp>
|
||||
|
||||
#include <wolv/io/fs.hpp>
|
||||
|
||||
#include <functional>
|
||||
|
||||
namespace hex::script::loader {
|
||||
|
||||
class PythonLoader : public ScriptLoader {
|
||||
public:
|
||||
PythonLoader() : ScriptLoader("Python") {}
|
||||
~PythonLoader() override = default;
|
||||
|
||||
bool initialize() override;
|
||||
bool loadAll() override;
|
||||
|
||||
private:
|
||||
struct Script {
|
||||
void *module;
|
||||
void *mainFunction;
|
||||
};
|
||||
|
||||
std::vector<Script> m_scripts;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user