| | 123 | } |
|---|
| | 124 | /// Add a location where themes should look for resource files to the beginning of |
|---|
| | 125 | /// the resource path. |
|---|
| | 126 | /// (e.g. images, textures, etc. The built-in themes look for some files |
|---|
| | 127 | /// relative to the luigi base directory, so you may need to add it to |
|---|
| | 128 | /// your path.) The current directory '.' is the only thing on the resource path |
|---|
| | 129 | /// by default. |
|---|
| | 130 | void prepend_resource_location(char[] path) { |
|---|
| | 131 | char[] workp = path.dup; |
|---|
| | 132 | if (workp[$-1..$] != std.path.sep) { workp ~= std.path.sep; } |
|---|
| | 133 | m_resource_path = workp ~ m_resource_path; |
|---|