From be399abceea8da01cbcd2e5391bc6aead52cfcfe Mon Sep 17 00:00:00 2001 From: Saikari Date: Thu, 29 Jan 2026 12:24:27 +0300 Subject: Add is_pefile function to check for PE file signatures on Windows --- core/src/xmake/engine.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/src/xmake/engine.c') diff --git a/core/src/xmake/engine.c b/core/src/xmake/engine.c index a77cc4a9b..3356e4456 100644 --- a/core/src/xmake/engine.c +++ b/core/src/xmake/engine.c @@ -278,6 +278,7 @@ tb_int_t xm_winos_registry_query(lua_State *lua); tb_int_t xm_winos_registry_keys(lua_State *lua); tb_int_t xm_winos_registry_values(lua_State *lua); tb_int_t xm_winos_short_path(lua_State *lua); +tb_int_t xm_winos_is_pefile(lua_State *lua); #endif // the utf8 functions @@ -482,6 +483,7 @@ static luaL_Reg const g_winos_functions[] = { { "registry_keys", xm_winos_registry_keys }, { "registry_values", xm_winos_registry_values }, { "short_path", xm_winos_short_path }, + { "is_pe_file", xm_winos_is_pefile }, { tb_null, tb_null }, }; #endif -- cgit v1.3.1