frontend: update fx api usage

This commit is contained in:
2026-06-15 17:41:26 +01:00
parent c68b1d2b26
commit b8a5bd7338
+5 -4
View File
@@ -190,9 +190,10 @@ static fx_path *create_path(const char *dir_path, const char *script_path)
return paths[1];
}
fx_path *result = fx_path_join(
(const fx_path **)paths,
sizeof paths / sizeof paths[0]);
fx_path *result = fx_path_join_list(
2,
&FX_CSTR(dir_path),
&FX_CSTR(script_path));
fx_path_unref(paths[0]);
fx_path_unref(paths[1]);
@@ -210,7 +211,7 @@ enum bshell_status frontend_eval_file(
}
struct bshell_file *file = NULL;
ctx->ctx_status = bshell_file_open(fx_path_ptr(path), &file);
ctx->ctx_status = bshell_file_open(fx_path_get_cstr(path), &file);
fx_path_unref(path);
if (!FX_OK(ctx->ctx_status)) {