This commit is contained in:
HolographicHat
2022-05-31 11:31:00 +08:00
parent c12d376e21
commit b76e8e3cd2
4 changed files with 8 additions and 10 deletions

View File

@@ -3,12 +3,10 @@
{
"target_name": "native",
"sources": [
"src/homu.h",
"src/main.cc",
"src/utils.h",
"src/utils.cc",
"src/define.h",
"src/homu.cpp",
"src/wmi/wmi.cpp",
"src/wmi/wmi.hpp",
"src/wmi/unistd.h",
@@ -47,4 +45,4 @@
}
}
]
}
}

View File

@@ -1,4 +1,4 @@
#include "homu.h"
//#include "homu.h"
#include "utils.h"
#include "define.h"
#include "wmi/wmi.hpp"
@@ -232,7 +232,7 @@ namespace native {
Object init(Env env, Object exports) {
exports.Set("pause", Function::New(env, Pause));
exports.Set("openUrl", Function::New(env, OpenUrl));
exports.Set("homuInit", Function::New(env, Initialize));
//exports.Set("homuInit", Function::New(env, Initialize));
exports.Set("getDeviceID", Function::New(env, GetDeviceID));
exports.Set("getMACAddress", Function::New(env, GetMACAddress));
exports.Set("getDeviceInfo", Function::New(env, GetDeviceInfo));