Library rename, added HAL, added open function

This commit is contained in:
Add00
2023-08-04 23:13:43 -04:00
parent 36b4a494ae
commit 43b58eb421
12 changed files with 407 additions and 26 deletions

View File

@@ -3,8 +3,8 @@
#include "lib_standard.h"
#include "lib_random.h"
#include "lib_runner.h"
#include "lib_fileio.h"
#include "lib_math.h"
#include "lib_io.h"
#include "toy_console_colors.h"
@@ -117,8 +117,8 @@ void Toy_runBinary(const unsigned char* tb, size_t size) {
Toy_injectNativeHook(&interpreter, "standard", Toy_hookStandard);
Toy_injectNativeHook(&interpreter, "random", Toy_hookRandom);
Toy_injectNativeHook(&interpreter, "runner", Toy_hookRunner);
Toy_injectNativeHook(&interpreter, "fileio", Toy_hookFileIO);
Toy_injectNativeHook(&interpreter, "math", Toy_hookMath);
Toy_injectNativeHook(&interpreter, "io", Toy_hookIO);
Toy_runInterpreter(&interpreter, tb, (int)size);
Toy_freeInterpreter(&interpreter);