frontend: update fx api usage
This commit is contained in:
+5
-4
@@ -190,9 +190,10 @@ static fx_path *create_path(const char *dir_path, const char *script_path)
|
|||||||
return paths[1];
|
return paths[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
fx_path *result = fx_path_join(
|
fx_path *result = fx_path_join_list(
|
||||||
(const fx_path **)paths,
|
2,
|
||||||
sizeof paths / sizeof paths[0]);
|
&FX_CSTR(dir_path),
|
||||||
|
&FX_CSTR(script_path));
|
||||||
fx_path_unref(paths[0]);
|
fx_path_unref(paths[0]);
|
||||||
fx_path_unref(paths[1]);
|
fx_path_unref(paths[1]);
|
||||||
|
|
||||||
@@ -210,7 +211,7 @@ enum bshell_status frontend_eval_file(
|
|||||||
}
|
}
|
||||||
|
|
||||||
struct bshell_file *file = NULL;
|
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);
|
fx_path_unref(path);
|
||||||
|
|
||||||
if (!FX_OK(ctx->ctx_status)) {
|
if (!FX_OK(ctx->ctx_status)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user