按规划继续工作
结论:接入 LinuxCNC iniFindBool 到 INI WASM/SDK,并让 machine-session bridge 通过 vendored INI 解析 [EMCIO]RANDOM_TOOLCHANGER 后透传给 tooldata;native、WASM、OPFS 和浏览器 smoke 验证已通过。
This commit is contained in:
@@ -13,6 +13,19 @@ int lcini_get_string(const char *inipath,
|
||||
return iniFindString(inipath, tag, section, buf, static_cast<size_t>(bufsize));
|
||||
}
|
||||
|
||||
EMSCRIPTEN_KEEPALIVE
|
||||
int lcini_get_bool(const char *inipath,
|
||||
const char *section,
|
||||
const char *tag,
|
||||
int *result) {
|
||||
bool value = false;
|
||||
const int rc = iniFindBool(inipath, tag, section, &value);
|
||||
if (rc == 0 && result) {
|
||||
*result = value ? 1 : 0;
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
|
||||
EMSCRIPTEN_KEEPALIVE
|
||||
int lcini_tilde_expand(const char *path, char *buf, int bufsize) {
|
||||
return TildeExpansion(path, buf, static_cast<size_t>(bufsize));
|
||||
|
||||
Reference in New Issue
Block a user