Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
PathService.cs
Go to the documentation of this file.
1using System;
3using System.IO;
5
6namespace ReLogic.OS.OSX;
7
8internal class PathService : ReLogic.OS.Base.PathService
9{
10 public override string GetStoragePath()
11 {
12 string environmentVariable = Environment.GetEnvironmentVariable("HOME");
13 if (string.IsNullOrEmpty(environmentVariable))
14 {
15 return ".";
16 }
17 return environmentVariable + "/Library/Application Support";
18 }
19
20 public override void OpenURL(string url)
21 {
22 Process.Start("open", "\"" + url + "\"");
23 }
24
25 public override bool MoveToRecycleBin(string path)
26 {
27 File.Delete(path);
28 return true;
29 }
30}
override void OpenURL(string url)
override bool MoveToRecycleBin(string path)
override string GetStoragePath()
static ? string GetEnvironmentVariable(string variable)
static void Delete(string path)
Definition File.cs:88