Added in sample plugin and tested things out. Works.

This commit is contained in:
Adam Harrison
2021-09-14 00:13:30 -04:00
parent a66a76f9c9
commit e9f48ce949
6 changed files with 37 additions and 9 deletions
+5 -1
View File
@@ -139,13 +139,17 @@ init_lua:
lua_pushstring(L, exename);
lua_setglobal(L, "EXEFILE");
#ifdef __APPLE__
lua_pushboolean(L, true);
#ifdef __APPLE__
lua_setglobal(L, "MACOS");
enable_momentum_scroll();
#ifdef MACOS_USE_BUNDLE
set_macos_bundle_resources(L);
#endif
#elsif _WIN32
lua_setglobal(L, "WINDOWS");
#else
lua_setglobal(L, "LINUX");
#endif
const char *init_lite_code = \