mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Bind the String::humanize_size method
The method signature is also changed to use `uint64_t` instead of `size_t` for it to be Variant-compatible.
This commit is contained in:
@@ -284,6 +284,7 @@ struct _VariantCall {
|
||||
VCALL_LOCALMEM0R(String, sha1_buffer);
|
||||
VCALL_LOCALMEM0R(String, sha256_buffer);
|
||||
VCALL_LOCALMEM0R(String, empty);
|
||||
VCALL_LOCALMEM1R(String, humanize_size);
|
||||
VCALL_LOCALMEM0R(String, is_abs_path);
|
||||
VCALL_LOCALMEM0R(String, is_rel_path);
|
||||
VCALL_LOCALMEM0R(String, get_base_dir);
|
||||
@@ -1561,6 +1562,7 @@ void register_variant_methods() {
|
||||
ADDFUNC0R(STRING, POOL_BYTE_ARRAY, String, sha1_buffer, varray());
|
||||
ADDFUNC0R(STRING, POOL_BYTE_ARRAY, String, sha256_buffer, varray());
|
||||
ADDFUNC0R(STRING, BOOL, String, empty, varray());
|
||||
ADDFUNC1R(STRING, STRING, String, humanize_size, INT, "size", varray());
|
||||
ADDFUNC0R(STRING, BOOL, String, is_abs_path, varray());
|
||||
ADDFUNC0R(STRING, BOOL, String, is_rel_path, varray());
|
||||
ADDFUNC0R(STRING, STRING, String, get_base_dir, varray());
|
||||
|
||||
Reference in New Issue
Block a user