mirror of
https://github.com/WerWolv/ImHex-Patterns.git
synced 2026-03-28 07:47:02 -05:00
tests: Fixed more tests
This commit is contained in:
@@ -34,9 +34,11 @@ int main(int argc, char **argv) {
|
||||
return false;
|
||||
};
|
||||
|
||||
runtime.setDataSource([&](pl::u64 address, pl::u8 *data, size_t size) {
|
||||
pl::core::err::E0011.throwError("Include files should never read from memory directly!");
|
||||
}, 0x00, 0x100000);
|
||||
runtime.setDataSource(0x00, 0x100000,
|
||||
[&](pl::u64 address, pl::u8 *data, size_t size) {
|
||||
pl::core::err::E0011.throwError("Include files should never read from memory directly!");
|
||||
}
|
||||
);
|
||||
runtime.setDangerousFunctionCallHandler([]{ return true; });
|
||||
runtime.setIncludePaths({ includePath });
|
||||
|
||||
@@ -73,4 +75,4 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user