Ai
1 Star 0 Fork 0

phy0292/cheat-engine

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
LuaCommonDialog.pas 858 Bytes
一键复制 编辑 原始数据 按行查看 历史
Dark Byte 提交于 2020-09-28 23:35 +08:00 . dealloc()/unregistersymbol()
unit LuaCommonDialog;
{$mode delphi}
interface
uses
Classes, SysUtils, dialogs, lua, lauxlib, lualib;
procedure commondialog_addMetaData(L: PLua_state; metatable: integer; userdata: integer );
implementation
uses LuaClass, LuaHandler, LuaComponent;
function commondialog_execute(L: Plua_State): integer; cdecl;
var
t: TCommonDialog;
begin
t:=luaclass_getClassObject(L);
lua_pushboolean(L, t.Execute);
result:=1;
end;
procedure commondialog_addMetaData(L: PLua_state; metatable: integer; userdata: integer );
begin
//only export "execute" the rest is already published
component_addMetaData(L, metatable, userdata);
luaclass_addClassFunctionToTable(L, metatable, userdata, 'execute', commondialog_execute);
end;
initialization
luaclass_register(TCommonDialog, commondialog_addMetaData);
end.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/phy0292/cheat-engine.git
git@gitee.com:phy0292/cheat-engine.git
phy0292
cheat-engine
cheat-engine
master

搜索帮助