feat: Added cross-platform .NET scripts support (#1185)

This PR intends to add support for .NET scripts that can extend ImHex's
functionality in a portable and cross-platform way.

---------

Co-authored-by: Justus Garbe <55301990+Nowilltolife@users.noreply.github.com>
This commit is contained in:
Nik
2023-07-15 14:29:14 +02:00
committed by GitHub
parent 4e3b8111fd
commit 5171bea0bf
36 changed files with 1219 additions and 34 deletions

View File

@@ -0,0 +1,9 @@
#include <script_api.hpp>
#include <hex/api/imhex_api.hpp>
#define VERSION V1
SCRIPT_API(void createBookmark, u64 address, u64 size, u32 color, const char *name, const char *description) {
hex::ImHexApi::Bookmarks::add(address, size, name, description, color);
}