-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Promote cf_fs_init/destroy to public API
- Loading branch information
Showing
11 changed files
with
90 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
[](../header.md ':include') | ||
|
||
# cf_fs_destroy | ||
|
||
Category: [file](/api_reference?id=file) | ||
GitHub: [cute_file_system.h](https://github.com/RandyGaul/cute_framework/blob/master/include/cute_file_system.h) | ||
--- | ||
|
||
Destroys the [Virtual File System](https://randygaul.github.io/cute_framework/#/topics/virtual_file_system). | ||
|
||
```cpp | ||
void cf_fs_destroy(); | ||
``` | ||
|
||
Parameters | Description | ||
--- | --- | ||
argv0 | The first command-line argument passed into your `main` function. | ||
|
||
## Remarks | ||
|
||
Cleans up all static memory used by [cf_fs_init](/file/cf_fs_init.md). You probably don't need to call this function, | ||
as `cf_app_destroy` already does this for you. | ||
|
||
## Related Pages | ||
|
||
[cf_fs_init](/file/cf_fs_init.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[](../header.md ':include') | ||
|
||
# cf_fs_init | ||
|
||
Category: [file](/api_reference?id=file) | ||
GitHub: [cute_file_system.h](https://github.com/RandyGaul/cute_framework/blob/master/include/cute_file_system.h) | ||
--- | ||
|
||
Initializes the [Virtual File System](https://randygaul.github.io/cute_framework/#/topics/virtual_file_system). | ||
|
||
```cpp | ||
CF_Result cf_fs_init(const char* argv0); | ||
``` | ||
Parameters | Description | ||
--- | --- | ||
argv0 | The first command-line argument passed into your `main` function. | ||
## Remarks | ||
This function is automatically called by `cf_app_make`; for most use cases you do not | ||
need to call this function. However, sometimes it's convenient to make tools that crawl | ||
over files without the need for a full application window. In this case simply call this | ||
function to enable all the `cf_fs_` functions. | ||
## Related Pages | ||
[cf_fs_destroy](/file/cf_fs_destroy.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters