M .gitignore => .gitignore +1 -0
@@ 4,3 4,4 @@ obj/
riderModule.iml
/_ReSharper.Caches/
.idea
+.env<
\ No newline at end of file
M Config.cs => Config.cs +4 -10
@@ 1,5 1,4 @@
-using System.Runtime.InteropServices;
-using Mamoru.Utils;
+using Mamoru.Utils;
namespace Mamoru;
@@ 7,13 6,8 @@ public class Config {
public string Secret { get; set; } = Crypto.GenerateSecret();
public string AuthEndpoint { get; set; } = "https://mamoru-auth.furry.coffee";
- public string ServerConfigPath { get; set; } =
- RuntimeInformation.IsOSPlatform(OSPlatform.Linux)
- ? $"/home/{Environment.UserName}/.config/SCP Secret Laboratory/config/"
- : $@"C:\Users\{Environment.UserName}\AppData\Roaming\SCP Secret Laboratory\config\";
+ public string ServerConfigPath { get; set; } = FileManager.GetAppFolder(serverConfig: true);
- public string ExiledConfigPath { get; set; } =
- RuntimeInformation.IsOSPlatform(OSPlatform.Linux)
- ? $"/home/{Environment.UserName}/.config/EXILED/Configs/"
- : $@"C:\Users\{Environment.UserName}\AppData\Roaming\EXILED\Configs\";
+ public bool ManageExiled { get; set; } = false;
+ public string ExiledConfigPath { get; set; } = "";
}=
\ No newline at end of file