Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetStoragePath() [1/2]

override string ReLogic.OS.Linux.PathService.GetStoragePath ( )
inline

Implements ReLogic.OS.IPathService.

Definition at line 10 of file PathService.cs.

11 {
12 string text = Environment.GetEnvironmentVariable("XDG_DATA_HOME");
13 if (string.IsNullOrEmpty(text))
14 {
16 if (string.IsNullOrEmpty(text))
17 {
18 return ".";
19 }
20 text += "/.local/share";
21 }
22 return text;
23 }
static ? string GetEnvironmentVariable(string variable)

References System.Environment.GetEnvironmentVariable(), and System.text.