Files
EVEngine/examples/native-plugin/smoke_load.nut
T
sunxfancyandCursor 8e0221c552 feat: enhance build system and documentation for SDK installation and shader support
- Updated .gitignore to include new build and output directories for SDK packaging.
- Modified CMakeLists.txt to include installation script for SDK.
- Enhanced Makefile to support new SDK targets for various platforms.
- Improved documentation to reflect new shader capabilities and 3D model support.
- Added new shader functions and updated rendering systems to utilize custom shaders.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-06 21:08:47 +08:00

19 lines
511 B
Plaintext

// Quick plugin load smoke (no window — may still init SDL via modules).
// Prefer running under example/ with a one-off script if needed.
function file_exists(path) {
try { file(path, "r").close(); return true; } catch (e) { return false; }
}
print("plugins smoke\n");
local plugins = eve.Plugins();
local path = "build/hello_plugin.dylib";
try {
plugins.load(path);
local hi = eve.HelloPlugin();
print(hi.greet() + "\n");
print("OK\n");
} catch (e) {
print("FAIL: " + e + "\n");
}