blob: 7108f6312b594526cbdc3062ad5264f04eebffc4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
-- Programmed by Jedidiah Barber
-- Licensed under the Sunset License v1.0
-- See license.txt for further details
private with
Ada.Directories,
Here_I_Am;
package Misc is
pragma Elaborate_Body;
Origin, Image_Path, Level_Path : constant String;
private
package ADir renames Ada.Directories;
Origin : constant String := ADir.Containing_Directory (Here_I_Am.Executable);
Image_Path : constant String :=
ADir.Compose
(ADir.Compose
(ADir.Compose
(ADir.Compose (Origin, ".."), "share"), "sokoban"), "img");
Level_Path : constant String :=
ADir.Compose
(ADir.Compose
(ADir.Compose
(ADir.Compose (Origin, ".."), "share"), "sokoban"), "level");
end Misc;
|