diff options
| author | Jeffery Myers <[email protected]> | 2022-01-08 10:47:52 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-01-08 19:47:52 +0100 |
| commit | fbf34f7c0d41b7281b195a082b3370a72e193150 (patch) | |
| tree | eb23830ff33fc65a0c9865ca81543f6704367273 /src/raylib.h | |
| parent | 549ca669aa42462662a610ff240aa4d5736240e5 (diff) | |
| download | raylib-fbf34f7c0d41b7281b195a082b3370a72e193150.tar.gz raylib-fbf34f7c0d41b7281b195a082b3370a72e193150.zip | |
[CORE] Add a function to return the application directory. (#2256)
* Add a function to return the application directory.
* CI fixes
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/raylib.h b/src/raylib.h index 3805ba34..04795de5 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1047,6 +1047,7 @@ RLAPI const char *GetFileNameWithoutExt(const char *filePath); // Get filenam RLAPI const char *GetDirectoryPath(const char *filePath); // Get full path for a given fileName with path (uses static string) RLAPI const char *GetPrevDirectoryPath(const char *dirPath); // Get previous directory path for a given path (uses static string) RLAPI const char *GetWorkingDirectory(void); // Get current working directory (uses static string) +RLAPI const char* GetApplicationDirectory(void); // Get the directory if the running application (uses static string) RLAPI char **GetDirectoryFiles(const char *dirPath, int *count); // Get filenames in a directory path (memory should be freed) RLAPI void ClearDirectoryFiles(void); // Clear directory files paths buffers (free memory) RLAPI bool ChangeDirectory(const char *dir); // Change working directory, return true on success |
