diff options
author | rexim <reximkut@gmail.com> | 2024-03-22 20:10:17 +0700 |
---|---|---|
committer | rexim <reximkut@gmail.com> | 2024-03-22 20:10:17 +0700 |
commit | 59972aee3a2a2d6524af1d8768699f5157cac23f (patch) | |
tree | d29a06de03009fe0392d5bdfe745057f2285845f /raylib.ads | |
parent | 266cd3f74f5e0aafe2868d7a84b144280af887ef (diff) |
Change working directory to the application directory
Diffstat (limited to 'raylib.ads')
-rw-r--r-- | raylib.ads | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -1,4 +1,5 @@ with Interfaces.C; use Interfaces.C; +with Interfaces.C.Strings; use Interfaces.C.Strings; with Raymath; use Raymath; package Raylib is @@ -209,4 +210,20 @@ package Raylib is type Vector2_Array is array (size_t range <>) of aliased Vector2; procedure Draw_Triangle_Strip(Points: Vector2_Array; C: Color); + + function Get_Working_Directory return chars_ptr + with + Import => True, + Convention => C, + External_Name => "GetWorkingDirectory"; + function Get_Application_Directory return chars_ptr + with + Import => True, + Convention => C, + External_Name => "GetApplicationDirectory"; + function Change_Directory(dir: chars_ptr) return C_Bool + with + Import => True, + Convention => C, + External_Name => "ChangeDirectory"; end Raylib; |