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 /test.adb | |
parent | 266cd3f74f5e0aafe2868d7a84b144280af887ef (diff) |
Change working directory to the application directory
Diffstat (limited to 'test.adb')
-rw-r--r-- | test.adb | 33 |
1 files changed, 3 insertions, 30 deletions
@@ -1,39 +1,12 @@ -with Ada.Text_IO; with Text_IO; use Text_IO; -with Ada.Strings.Fixed; use Ada.Strings.Fixed; -with Ada.Strings; use Ada.Strings; -with Ada.Containers.Vectors; -with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; -with Ada.Numerics.Discrete_Random; with Raylib; use Raylib; with Interfaces.C; use Interfaces.C; -with Interfaces.C.Pointers; +with Interfaces.C.Strings; use Interfaces.C.Strings; with Ada.Unchecked_Conversion; -with Raylib; use Raylib; -with Raymath; use Raymath; function Test return Integer is - type Palette is ( - COLOR_BACKGROUND, - COLOR_FLOOR, - COLOR_WALL, - COLOR_BARRICADE, - COLOR_PLAYER, - COLOR_DOOR_KEY, - COLOR_BOMB, - COLOR_LABEL, - COLOR_GUARD, - COLOR_URMOM, - COLOR_GNOME, - COLOR_CHECKPOINT, - COLOR_EXPLOSION, - COLOR_HEALTHBAR, - COLOR_NEW_GAME, - COLOR_EYES, - COLOR_FINAL); begin - for C in Palette loop - Put_Line(To_Unbounded_String(C'Image)); - end loop; + Put_Line("Working Directory: " & To_Ada(Value(Get_Working_Directory))); + Put_Line("Application Directory: " & To_Ada(Value(Get_Application_Directory))); return 0; end; |