Add utility function for merging directory names with filenames, and fix issue in mj_addfileVFS where directory names without trailing filesystem separators won't append correctly.
PiperOrigin-RevId: 545450158 Change-Id: I550394f11ac2837d35f3d869f8718a119a9eac38
This commit is contained in:
committed by
Copybara-Service
parent
82e85e24e5
commit
95167fab2d
@@ -1046,7 +1046,8 @@ mj_addFileVFS
|
||||
|
||||
.. mujoco-include:: mj_addFileVFS
|
||||
|
||||
Add file to VFS, return 0: success, 1: full, 2: repeated name, -1: failed to load.
|
||||
Add file to VFS. The directory argument is optional and can be NULL or empty. Returns 0 on success, 1 when VFS is full,
|
||||
2 on name collision, or -1 when an internal error occurs.
|
||||
|
||||
.. _mj_makeEmptyFileVFS:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user